function Showpopup(Bild,Breite,Hoehe) {
    // GIFs müssen mit Dateierweiterung angegeben werden, JPGs ohne.
    if (Bild.indexOf(".gif",0)+Bild.indexOf(".png",0) < 0) Bild=Bild + ".jpg";
    MarginLeft    = (screen.width  - Breite      ) /2;
    MarginTop     = (screen.height - Hoehe) /2;

    Optionen      = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,left='+MarginLeft+',top='+MarginTop+',height='+Hoehe+',width='+Breite;
    Popup         = window.open('','',Optionen)

    with (Popup) {
        document.writeln('<html><head><title>' + Bild + '</title>');
        document.writeln('</head>');
        document.writeln('<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">'+
                         '<center><a href="#" onclick="self.close();">'+
                         '<img src="'+Bild+'" alt="'+Bild+'" Border="0">'+
                         '</a></center></body></html>');
    }

}


