
//function ZoomImgNoPag(img,incremx,incremy){
//  var clientHt = window.screen.height;
//  var clientWt = window.screen.width;	
//  foto1= new Image();
//  foto1.src=(img);
//  largh=foto1.width + incremx;
//  altez=foto1.height + incremy ;
//  if((foto1.width!=0)&&(foto1.height!=0)&&(largh < clientWt - 20)&&(altez < clientHt - 20))
//  {
//    stringa="width="+largh+",height="+altez+",resizable=no,location=no, toolbar=no, menubar=no";
//	finestra=window.open(img,"",stringa);
//	finestra.moveTo( (clientWt/2)-(largh/2) , (clientHt/2)-(altez/2));
//  }
  
// }
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){
  var clientHt = window.screen.height;
  var clientWt = window.screen.width;
  largh=foto1.width+20;
  altez=foto1.height+20;  
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
  finestra.moveTo( (clientWt/2)-(largh/2) , (clientHt/2)-(altez/2) );
}


 