
function ZeigeGrossBild(p_filename, p_x, p_y, p_title)
{
	var win;
	var sWidth;
	var sHeight;
	var NS = (document.layers) ? 1 : 0;
	
	win = window.open("","imageviewer","left=10,top=10,screenX=10,screenY=10,width="+p_x+",height="+p_y+",menubar=no,toolbar=no");
	
	if (NS)
	{
		sWidth  = win.innerWidth;
		sHeight = win.innerHeight;
	}
	else
	{
		sWidth  = win.document.body.clientWidth;
		sHeight = win.document.body.clientHeight;
	}

	/*
	
	if (sWidth !=p_x || sHeight != p_y)
	{
		win.close();
		setTimeout("ZeigeGrossBild('"+p_filename+"',"+p_x+","+p_y+",'"+p_title+"')", 750);
		return;
	}

	*/
	
	
	win.document.open();
	win.document.write("<html><head><title>"+p_title+"</title>");
	win.document.write("</head><body>");
	win.document.write('<div style="position:absolute;width:'+p_x+'px;height:'+p_y+'px;left:0px;top:0px">');
	win.document.write('<a href="javascript:this.close()"><img src='+p_filename+' border="0" alt="zum schliessen klicken"></a></div>');
	win.document.write("</body></html>");
	win.document.close();
}

