// JavaScript Document

function ventanaPhoto(theimage){
  foto1= new Image();
  foto1.src=(theimage);
  Controlla(theimage);
}
function Controlla(theimage){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(theimage);
  }
  else{
    funzione="Controlla('"+theimage+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(theimage){
  largh=foto1.width+30;
  altez=foto1.height+30;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(theimage,"",stringa);
}
//  End -->