	function openWindow(imageName,imageWidth,imageHeight,alt) {
		if (self.screen) {     
		        s_width = screen.width
		        s_height = screen.height
		} else {
			s_width = imageWidth;
			s_height = imageHeight;
		}
			if (s_width < imageWidth || s_height < imageHeight) {
				var scroll;
				scroll = 'yes';
			} else {
				var scroll;
				scroll = 'no';
			}
			if (s_width < imageWidth)
				{ imageWidth = s_width-50; }
			if (s_height < imageHeight)
				imageHeight = s_height-100;


	 newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars="+scroll+",left=25,top=5");
	 newWindow.document.open();
	 newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	 newWindow.document.write('<a href="javascript:self.close()"><img src="'+imageName+'" alt="'+alt+'" border="0"></a>'); 
	 newWindow.document.write('</body></html>');
	 newWindow.document.close();
	 newWindow.focus();
	}
