
function popImage(imageURL,imageTitle){
  var ie=document.all;
  var ns6=document.getElementById && !document.all;
  if (ns6) { var opt='scrollbars=no,width=500,height=400,left=200,top=140';}
  else if (ie) {var opt='scrollbars=no,width=150,height=100,left=200,top=140';}
  imgWin=window.open('about:blank','',opt);
  with (imgWin.document){
  //  alert ('ci siamo url:'+imageURL+" su:"+imageTitle);
  writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');
  writeln('<sc'+'ript>');
  writeln('var ie=document.all;var ns6=document.getElementById && !document.all;');
  writeln('function reSizeToImage(){');
  writeln('if (ie) {window.resizeTo(100,100);w=document.images[0].width;h=document.images[0].height;width=100-(document.body.clientWidth-w);height=100-(document.body.clientHeight-h);window.resizeTo(width,height);}');
  writeln('else if (ns6) {w=document.images["George"].width;h=document.images["George"].height;window.innerWidth=w;window.innerHeight=h;}');
  writeln('w=Math.min(w,screen.width-60);h=Math.min(h,screen.height-60);window.moveTo((screen.width-w)/2,(screen.height-h)/2);}');
  writeln('function doTitle(){document.title="'+imageTitle+'";}');
  writeln('</sc'+'ript>');
  writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
  writeln('<img name="George" src="'+imageURL+'" style="display:block"></body></html>');
  close();
  }
}