Hallo,
function viewFoto(img){
largh=foto1.width+20;
altez=foto1.height+20;
//Ermitteln x und y-Position
scrheight=screen.availHeight;
scrwidth=screen.availWidth;
posx=floor((scrwidth-largh)/2);
posy=floor((scrheight-altez)/2);
stringa="width="+largh+",height="+altez;
stringa=stringa+",top="+posy+",left="+posx;
finestra=window.open(img,"",stringa);
}
Gruss Ralf