// 3/15/2008 C Young
// added wdth and hght inputs
// centered image on page
// added margins for width and height

function see_full_size(loc,wdth,hght) {

//	if (wdth != null && hght != null && hght != '' && wdth != '')
//		opt='width=' + wdth + ',height=' + hght + ',';
//	else
		opt='width=800,height=600'
	opt+='resizeable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no';
	newwindow=window.open('','full_size',opt);
	tmp=newwindow.document;
	tmp.write("<html><head><title>Full Size Image</title></head>");
	tmp.write("<style> BODY {margin-left: 0;margin-right: 0;margin-top: 0;margin-bottom: 0;background-color: #000000;}</style>");
    tmp.write("<body>");
	tmp.write("<table border=0 width=100% height=100% cellspacing=0 cellpadding=0><tr><td valign=center align=center>");
	tmp.write("<a href='#' onclick='window.close()' style='cursor: hand;' title='Click to close window'><img name=pic src=\""+loc+"\" border=0></a>");
	tmp.write("</td></tr></table>");
	if (wdth == null || hght == null || wght == '' || hght == '')
	    tmp.write("<script>");
		tmp.write("function doResize() {");
		tmp.write("window.resizeTo(document.pic.width+10,document.pic.height+60)");
		tmp.write("}");
		tmp.write("setTimeout('doResize();',1000);");
		tmp.write("<\/script>");
	tmp.write("<script>self.focus()<\/script>");
	tmp.write("</body></html>");
	tmp.close();
}
