var Fenster = null;
function popImage(bildUrl,fensterName,w,h,bildunterschrift)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	myProps = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizeable=no,statusbar=no'

    var Ausgabe = '<html><head>\n';
	Ausgabe += '<title>'+bildunterschrift+'</title>\n';
	Ausgabe += '<style type="text/css">body { margin: 0; padding: 0; }</style>\n';
	Ausgabe += '</head>\n<body>\n';
	Ausgabe += '<a href="javascript:self.close()"><img src="'+bildUrl+'" border="0" alt="Fenster schliessen" title="'+bildunterschrift+'"></a>\n';
	Ausgabe += '</body>\n</html>\n';

	var Fenster = window.open(bildUrl,fensterName,myProps);
	Fenster.document.open("text/html");
	Fenster.document.write( Ausgabe );
	Fenster.document.close();
	
	Fenster.focus();
}
