<!-- Beginning of JavaScript code --//
function imageWindow(cPicture,description) 
 { 
      img = new Image(); 
      img.src=(cPicture);
      Check(cPicture,description);
 }

function Check(cPicture,description)
 { 
 if((img.width!=0)&&(img.height!=0))
  { 
  viewFoto(cPicture,description); 
  } 
  else
  { 
  checkFunction="Check('"+cPicture+"','"+description+"')"; 
  interval=setTimeout(checkFunction,20); 
  } 
 }

function viewFoto(cPicture,description)
{
      largh=img.width; 
      altez=img.height;
      NewWin=window.open('','pop','HEIGHT='+altez+',WIDTH='+largh+',scrollbars=no,resizable=yes,top=0,left=0');

      NewWin.document.write ("<html><head><title>");
      NewWin.document.write ("Asperia - " + description); 
      NewWin.document.write ("</title>"); 
      NewWin.document.write ("</head>\n"); 
      NewWin.document.write ("<body BGCOLOR='#FFFFFF' OnLoad='this.focus("); 

      NewWin.document.write (")' BGCOLOR='#ffffff' MARGINWIDTH='0' MARGINHEIGHT='0' TOPMARGIN='0' LEFTMARGIN='0'>\n"); 
      NewWin.document.write ("<center><img src=\""); 
      NewWin.document.write (cPicture); 
      NewWin.document.write ("\"/>"); 
      NewWin.document.write ("</center></body></html>"); 
      NewWin.document.close(); 
 } 
// -- End of JavaScript code ---------------->


