// JavaScript Document
function newwin(title,name,width,height){
	<!-- Centers the new window-->
	var left = Math.floor( (screen.width - 800) / 2);
	var top = Math.floor( (screen.height - 600) / 2);
	width = parseInt(width) + 40;
	if (height > screen.height) {
     height = screen.height - 80;
	 } else {
	height = parseInt(height) + 80;
	}
	var winparam = "scrollbars=yes,top=10,left=10,height="+height+",width="+width;
	<!-- Stores a new blank window in the variable "winop"-->
	winop = open("","",winparam);
 	<!-- Opens the new "winop" window -->
	winop.document.open();
	<!-- Writes the HTML into the new window -->
	winop.document.write("<html>\n<head>\n<title>"+title+"</title>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n");
	winop.document.write("<link href=\"popup_styles.css\" rel=\"stylesheet\" type=\"text/css\">\n</head>\n");
	winop.document.write("<body class=\"popup\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n");
	winop.document.write("<div align=\"center\">\n");
	winop.document.write("<span class=\"poptitle\">"+title+"</span><br>\n");
	//winop.document.write("<span class=\"poptitle\">"+comment+"</span><br>\n");
	winop.document.write("<img src=\"img/"+name+"\" class=\"popimg\"><br><br>\n");
	//winop.document.write(""+comment+"<br>\n");
	winop.document.write("<span class=\"popclose\"><a href=\"javascript:window.close()\">close window</a></span>\n");
	winop.document.write("</div>&nbsp;\n</body>\n</html>");
}