imagewindow = 0;

function ShowImage(src,w,h) {

  if ( imagewindow == 0 || imagewindow.closed) { 
    imagewindow = window.open ('','imagewindow','toolbar=0,menubar=0,width='+w+',height='+h);
  }

  imagewindow.resizeTo (w+8,h+28);
  var doc = imagewindow.document; 

  doc.open ();
  doc.write ('<body topmargin=0 leftmargin=0 marginwidth="0" marginheight="0">');
  doc.write ('<center><img src="'+src+'" _width='+w+' _height='+h+'></center>');
  doc.close ();

  imagewindow.focus ();
//  return false
}

function popup(fileName,width,height) {
	 if (typeof myFloater != 'undefined' && !myFloater.closed) 
	 	{
	     myFloater.resizeTo(width+10,height+25);
		 myFloater.location.href = fileName;
		 myFloater.focus();
		 }
		 else
		 {
   	     myFloater = window.open('','myWindow','scrollbars=no,status=no,width='+width+',height='+height);
			  myFloater.location.href = fileName;
			 myFloater.focus();
		}
}

