var image, width, height, Scroll
var Widthcon, Heightcon
	function popview(image, width, height) {
	   if (width==0) Widthcon=" "
	     else Widthcon="width="+(width+20)+" "
	   if (height==0) {Heightcon=" "; Scroll=1;}
	     else {Heightcon="height="+(height+75)+" "; Scroll=0;}
var markup="<HTML><BODY><TITLE>Picture</TITLE><CENTER><IMG SRC='"+image+"' BORDER=0><P><FORM><INPUT TYPE='BUTTON' VALUE='Close Window' onClick='self.close()'></P></FORM></CENTER></BODY></HTML>"
        ImageWindow=window.open("", "newwin", "toolbar=no, scrollbars='Scroll', menubar=no, "+Widthcon+", "+Heightcon+", screenX=150, screenY=0, left=150, top=0")
        ImageWindow.document.write(markup)
        ImageWindow.document.close()
	}

