function openPictureWindow(imageName,alt) {
  newWindow = window.open("","newWindow","scrollbars=no");
  newWindow.document.open();
  newWindow.document.write('<html>');
  newWindow.document.write('<script language="javascript">\n');
  newWindow.document.write('var NS = (navigator.appName=="Netscape")?true:false;\n');
  newWindow.document.write('function FitPic(){iWidth = (NS)?window.innerWidth:document.body.clientWidth; iHeight = (NS)?window.innerHeight:document.body.clientHeight; iWidth = document.images[0].width - iWidth; iHeight = document.images[0].height - iHeight; window.resizeBy(iWidth, iHeight); self.focus(); };')
  newWindow.document.write('</script>');
  newWindow.document.write('<title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginheight="0" marginwidth="0" onLoad="FitPic()" onBlur="self.close()">'); 
  newWindow.document.write('<img src=\"'+imageName+'\" alt=\"'+alt+'\" name=\"imgz\">');
  newWindow.document.write('</body></html>');
  newWindow.document.close();
  newWindow.focus();
}
function ChiudiPop(){
  if(newWindow && !newWindow.closed)newWindow.close();
}
