function ImagePopup(title1, title2, imagepath, basehref, width, height)
{
	var theWindow = window.open( "", "popupimage", "titlebar=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, dependent=yes, width=" + width + ", height=" + height ).document;
	
	theWindow.open("text/html", "replace");
	theWindow.oDocument = this;
	theWindow.clear();
	theWindow.write("<html>");
	theWindow.write("<head>");
	theWindow.write("<title>Enlarged Image</title>");
	theWindow.write("<link rel=stylesheet type=text/css href='" + basehref + "styles/navstyle.css'>");
	theWindow.write("</head>");
	theWindow.write("<body bgcolor=#61643C topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 class=popup>");
	theWindow.write("<div class=popup align=left>");
	theWindow.write( title1);
	theWindow.write("</div>");
	theWindow.write("<div class=popup align=center>" + title2 + "</div>");
	theWindow.write("<img src=" + basehref + imagepath + " border=0>");
	theWindow.write("<div class=imgpopup align=center valgin=middle>");
	theWindow.write("<table width=100 border=0 cellpadding=2 cellspacing=0 align=center>");
	theWindow.write("<tr>");
	theWindow.write("<td align=right><a class=popup title=close href='javascript:close();'><img src=" + basehref + "navigation/iconclose.gif border=0 alt=close></a></td>");
	theWindow.write("<td><a class=popup title=close href='javascript:close();'>CLOSE</a></td>");
	theWindow.write("</tr>");
	theWindow.write("</table>");
	theWindow.write("</div>");
	theWindow.write("</body>");
	theWindow.write("</html>");
	theWindow.close();
}
