function zoom(pfad, text)
{
/*
	Info: …ffnet ein Bild in einem neuen Fensterund passt dessen Grš§e der des Bildes an 
	Autor: Anderas JŠhrling
	Erstellt: verdammt lang her
	Letzte €nderung: 29.03.2004 / Diverse Korrekturen
*/

	neues_fenster = window.open('', "Window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=50,height=50,screenX=50,screenY=50,top=50,left=50");
	neues_fenster.document.open();
	
	with(neues_fenster.document)
	{	
		writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
		writeln('<html>');
		writeln('<head>');
		writeln('<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">');
	
		writeln('<style type="text/css" type="text/css" media="screen"><!--');
		writeln('.zoombild { border: solid 1px gray; background-color: white; padding: 7px }');
		writeln('--></style>');
		writeln('<title>Zoom</title>');
		writeln('</head>');

		writeln('<body onload="resize();" bgcolor=#E6E6E6  leftmargin="0" marginheight="0" marginwidth="0" topmargin="5">');
		writeln('<div align="center"><a href="#" onclick="window.close();"><img class="zoombild" id="bild"  src="'+pfad+'" border="0" alt="" title=""></a></div>');
		
		writeln('<script language="javascript"><!--');
		writeln('function resize(){');
					
			writeln('var abstand_x = 50;');
			writeln('var abstand_y = 50;');
			writeln('var ausgleich = 0;');
		
			writeln('p_width=document.getElementById("bild").width;');
			writeln('p_height=document.getElementById("bild").height;');
			
			writeln('if (document.images[0]) window.resizeTo(p_width+abstand_x, p_height+abstand_y);');
			writeln('self.focus();}');
		
				writeln('setTimeout("resize()", 100);');//--------- muss wegen Safari rein :(
		
		writeln('//--></script>');

		

		writeln('</body>');
		writeln('</html>');
	}
		
	neues_fenster.document.close();
	
}

