function Foto(img){
    foto1= new Image();
    foto1.src=(img);
    Kontrolle(img);
}
function Kontrolle(img){
    if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
    }
    else{
    funktion="Kontrolle('"+img+"')";
    intervall=setTimeout(funktion,20);
    }
}
function viewFoto(img){
    breite=foto1.width+20;
    hoehe=foto1.height+33;
    uebergabe="width="+breite+",height="+hoehe;
    imgperl="/cgi-bin/show-image.pl?"+img;
    fertig=window.open(imgperl,"",uebergabe);
}
