<!-- Minus AutoDato -->

function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}

function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}

function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
	/* 040216: GjB01 
  	Overrule the image size with hardcoded settings
   */
	largh=600;
	altez=500;

  stringa="width="+largh+",height="+altez;
	/* 040216: GJB01:  
		Add scrollbars
 	*/
  stringa="width="+largh+",scrollbars=yes,resizable=1";
  finestra=window.open(img,"",stringa);
}
