function ShowImage(imageURL,imageTitle){
	imgWindow = window.open('','imgWindow','scrollbars=no,width=400,height=400,left=100,top=100');
	with (imgWindow.document){
		writeln('<html><head><title>Loading...</title><style type="text/css">body{margin:0px;}</style>');
		writeln('<sc'+'ript>');
		writeln('var isNN,isIE;');
		writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
			writeln('isNN=(navigator.appName=="Netscape")?1:0;');
			writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
		writeln('function fitToImage(){');
			writeln('var img = document.getElementById("imgProduct");');
			writeln('var imgWidth = img.width;');
			writeln('var imgHeight = img.height;');
			writeln('if(isIE){');
				writeln('var windowWidth = document.body.clientWidth;');
				writeln('var windowHeight = document.body.clientHeight;}');
			writeln('if(isNN){');
				writeln('var windowWidth = window.innerWidth;');
				writeln('var windowHeight = window.innerHeight;');
			writeln('}');
			writeln('window.resizeBy((windowWidth - imgWidth)*-1, (windowHeight - imgHeight)*-1);}'); 
		writeln('function updateTitle(){document.title = "'+imageTitle+'";}');
		writeln('</sc'+'ript>');
		writeln('</head><body onload="fitToImage();updateTitle();self.focus()" onblur="self.close()">');
		writeln('<div align="center"><img id="imgProduct" src="'+imageURL+'"></div></body></html>');
		close();
	}
	return false;
}