function PopImage(imageURL){ 

   var defaultWidth  = 100;
   var defaultHeight = 100;
   var PositionX =(screen.width/2)-(defaultWidth/2);
   var PositionY =(screen.height/2)-(defaultHeight/2);

   imgWin=window.open('about:blank','','scrollbars=0,resizable=1,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY);

   with (imgWin.document){
      writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');
      writeln('<sc'+'ript>');
      writeln('function ResizeToImage(){');   
      writeln('  width=document.images[0].width+60;');
      writeln('  height=document.images[0].height+110;');     
      writeln('  window.moveTo((screen.width/2)-(width/2),(screen.height/2)-(height/2));');
      writeln('  window.resizeTo(width,height);');
      writeln('}');  
      writeln('function doTitle(){document.title="Zoom";}');
      writeln('</sc'+'ript>');
      writeln('</head><body scroll="no" onload="ResizeToImage(); doTitle(); self.focus()">')      
      writeln('<table width="100%" height="100%" border=0 cellspacing=0 cellpadding=0><tr><td width="100%" height="100%" align=center><img name="George" border=1 src="'+imageURL+'" style="display:block;border-color: #000000;border-width: 1px"></td></tr></table></body></html>');
      close();		
   }

}