
f1=false
function fenster(Bild,w,h)
{
if(f1&&f1==false)
f1.close();
leftPosition=(window.opera)? (screen.width-w)/2-30:(screen.width-w)/2;
topPosition=(window.opera)? (screen.height-h)/2-30:(screen.height-h)/2;
marg=(document.layers)? -8 : 0
f1=window.open("","","width="+w+",height="+h+",left="+leftPosition+",top="+topPosition);
with (f1.document)
{
writeln('<html>');
writeln('<head><title>Zum Schließen des Fensters bitte auf das Bild klicken<\/title>');
writeln('<style type="text/css">');
writeln('body { margin: '+marg+'px; padding: 0px; }');
writeln('<\/style>');
writeln('<\/head>');
writeln('<body>');
writeln('<a href="javascript:void(0)" onclick="self.close()"><img src="'+Bild+'" border="0"><\/a>');
writeln('<\/body>');
writeln('<\/html>');
close();
}
}

