function Foto(img){ foto1= new Image(); foto1.src=(img); Control(img);}
function Control(img){ if((foto1.width!=0)&&(foto1.height!=0)){ view(img); } else{ funzione="Control('"+img+"')"; intervallo=setTimeout(funzione,20);}}
function view(img){largh=foto1.width+20;altez=foto1.height+20;stringa="width="+largh+",height="+altez;finestra=window.open(img,"",stringa);}

