var strImageTitle
var imgWin

function DisplayImage(imageURL, imageWidth, imageHeight, imageTitle)
{
	DisplayWebCamPage(imageURL, imageTitle)
}

function DisplayWebCamPage(imageURL, imageTitle)
{
	var image		= new Image();
	image.src		= imageURL;
	strImageTitle	= imageTitle;
	
	image.onload	= DisplayWebCamPage.prototype.onload;
	
	imgWin=window.open('../statisch/BildWirdGeladen.htm', '', 'menubar=no,scrollbars=no,width='+image.width+',height='+image.height);
	with (imgWin.document)
	{
		writeln('<html>');
		writeln('	<head>');
		writeln('		<title>');
		writeln('			'+strImageTitle);
		writeln('		</title>');	
		writeln('	</head>');
		writeln('	<body topmargin="0" leftmargin="0">');
		writeln('		<a href="javascript:location.reload()"><img border="0" src="'+image.src+'"></a>');
		writeln('	</body>');
		writeln('</html>');
	}
}

DisplayWebCamPage.prototype.onload = function()
{
	imgWin.resizeBy(this.width - imgWin.document.body.clientWidth, this.height - imgWin.document.body.clientHeight)
}

function ALTDisplayImageALT(imageURL, imageWidth, imageHeight, imageTitle)
{
	imgWin=window.open('about:blank','', 'menubar=no,scrollbars=no,width='+imageWidth+',height='+imageHeight);
	with (imgWin.document)
	{
		writeln('<html><head><title>'+imageTitle+'</title><body topmargin="0" leftmargin="0"><img border="0" src="'+imageURL+'" width="'+imageWidth+'" height="'+imageHeight+'"></body></html>');
	}
}