// JavaScript Document

function openpopup(thiswidth,thisheight,thispic) {
	
	wbreite = screen.width;
			hpos = (wbreite/2)-(thiswidth/2);
			whoehe = screen.height;
			vpos = (whoehe/2)-(thisheight/2);
	
	nw=window.open("", "zoom", "status=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,width="+thiswidth+",height="+thisheight+",top="+vpos+", left="+hpos)
	nw.focus();
	nw.document.write("<html><head><title>zoom</title>")
	nw.document.write("</head>")
	nw.document.write("<body marginwidht=0 marginheight=0 leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 bgcolor='white'>")
	nw.document.write("<div id='rahmen'>")
	nw.document.write('<a href=\"javascript:self.close()\" title=\"schliessen\">');
	nw.document.write("<img src='"+thispic+"'  border=\"0\"></div>")
	nw.document.write("</a>")
	nw.document.write("</body></html>")
	nw.document.close() 
}
