function popImage(imageURL,imageTitle){ 

   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+50;');
      writeln('  height=document.images[0].height+80;');
      writeln('  window.resizeTo(width,height);');
      writeln('  window.moveTo((screen.width/2)-(width/2),(screen.height/2)-(height/2));');
      writeln('}');     
      writeln('function doTitle(){document.title="'+imageTitle+'";}');
      writeln('</sc'+'ript>');
      writeln('</head><body background="../image/sfondo.gif" 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();		
   }

}
