function openPictureWindow(imageName, imageWidth, imageHeight, altText, posLeft, posTop) {
	if (imageWidth>800 || imageHeight>600) {
		var bigImage = ", scrollbars, resizable";
	} else {
		var bigImage = "";
	}
	newWindow = window.open("", "newWindow", "width="+imageWidth+", height="+imageHeight+", left="+posLeft+", top="+posTop+bigImage);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+altText+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\" alt=\"'+altText+'\" onClick=\"window.close()\">'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}