function popupImg(src)
{
    var sTitle = "Picture";
    var sAlt = "";
    var sId = "img";
    
    if ((arguments.length > 1) && (arguments[1] != null) && (arguments[1].toString().length > 0)) {
        sTitle = arguments[1].toString();
        sAlt = arguments[1].toString();
    }
    if ((arguments.length > 2) && (arguments[2] != null) && (arguments[2].toString().length > 0)) sId = arguments[2].toString();
    
    var o = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" +
        "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head><title>" + HtmlEncode(sTitle) + "</title><s"+"cript>\n" +
	    "/* <![CDATA[ */\n" +
	    "function resizeMe() {\n" + 
	    "   var oImg = GetElementById(\"" + sId + "\");\n" +
	    "   var nWidth = GetClientWidth();\n" +
	    "   var nHeight = GetClientHeight();\n" +
	    "   //window.resizeBy(oImg.width-nWidth, oImg.height-nHeight);\n" +
	    "   window.resizeTo(oImg.width, oImg.height);\n" +
	    "   self.focus();\n" + 
	    "}\n" +
	    "onload=resizeMe;\n" +
	    "/* ]]> */\n" +
	    "<"+"/script>" +
	    "<s" + "cript src=\"/scripts/ScriptUtils.js\"><" + "/script>" + 
	    "<s" + "cript src=\"/scripts/PageServices.js\"><" + "/script>" + 
	    "</head><body style=\"margin: 0px; padding: 0px;\">"+
	    "<a href=\"javascript:window.close();\"><img id=\"" + HtmlEncode(sId) + "\" src=\"" + HtmlEncode(src) + "\" alt=\"" + HtmlEncode(sAlt) + "\" style=\"border-style: none; border-width: 0px; padding: 0px; margin: 0px;\" /></a></body></html>";

	var w = window.open("", "Photo", "height=200, width=200, location = 0, menubar = 0, resizable = 1, scrollbars = 0, status = 0, titlebar = 1, toolbar = 0");
	w.document.open();
	w.document.write(o);
	w.document.close();
}