function Foto(img){
foto1= new Image();
foto1.src=(img);
Controll(img);
}
function Controll(img){
if((foto1.width!=0)&&(foto1.height!=0)){
viewFoto(img);
}
else{
aktion="Controll('"+img+"')";
intervallo=setTimeout(aktion,20);
}
}
function viewFoto(img){
breite=foto1.width+50;
hoehe=foto1.height+20;
string="width="+breite+",height="+hoehe+",scrollbars=yes";
anzeige=window.open(img,"",string);
}
