image_popup = function(image){
  OpenWindow=window.open("", "Image", "resizable=1,height=300, width=300,toolbar=no,scrollbars="+scroll+",menubar=no");
  OpenWindow.document.write("<html><head><title>Large Image</title>")
  OpenWindow.document.write("<script language='javascript'>\n\
			var temp=self.location.href.split(\"?\");\n\
			var picUrl = (temp.length>1)?temp[1]:\"\";\n\
			var NS = (navigator.appName==\"Netscape\")?true:false;\n\
			function scaletofit() {\n\
				iWidth = (NS)?window.innerWidth:document.body.clientWidth;\n\
				iHeight = (NS)?window.innerHeight:document.body.clientHeight;\n\
				iWidth = document.images[0].width - iWidth + 15;\n\
				iHeight = document.images[0].height - iHeight + 29;\n\
				window.resizeBy(iWidth, iHeight-1);\n\
				self.focus();\n\
			};\n\
		</script>\n ")
  OpenWindow.document.write("<head><body onLoad='scaletofit()'>")
  OpenWindow.document.write("<img src='"+image+"' name=imgobj>")
  OpenWindow.document.write("</body></html>")
  OpenWindow.document.close()
}