var zoomHwnd;
var zoomHTML;
function zoomImg(image, pagetitle){
	if (zoomHwnd){
		zoomHwnd.close();
	}
	
	var Body;
	Body = "<html><head><title>"+pagetitle+"</title>\n";
	Body += "<SCR" + "IPT LANGUAGE='JavaScript'>\n";
	Body += "<!-- Begin\n";
	Body += "var isNav4, isIE4;\n";
	Body += "if (parseInt(navigator.appVersion.charAt(0)) >= 4) {\n";
	Body += "isNav4 = (navigator.appName == 'Netscape') ? 1 : 0;\n";
	Body += "isIE4 = (navigator.appName.indexOf('Microsoft') != -1) ? 1 : 0;\n";
	Body += "}\n";
	Body += "function fitWindowSize() {\n";
	Body += "if (isNav4) {\n";
	Body += "window.innerWidth = document.layers[0].document.images[0].width;\n";
	Body += "window.innerHeight = document.layers[0].document.images[0].height;\n";
	Body += "}\n";
	Body += "if (isIE4) {\n";
	Body += "window.resizeTo(500, 500);\n";
	Body += "width = 500 - (document.body.clientWidth -  document.images[0].width);\n";
	Body += "height = 500 - (document.body.clientHeight -  document.images[0].height);\n";
	Body += "window.resizeTo(width, height);\n";
	Body += "   }\n";
	Body += "}\n";
	Body += "//  End -->\n";
	Body += "</sc" + "ript>\n";
	Body += "</head>\n";
	Body += "<body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 marginheight=0 marginwidth=0 onLoad='fitWindowSize();'><table cellpadding=0 cellspacing=0 border=0 width=100% height=100?><tr align=center valign=middle><td><img src='"+image+"' onerror=this.src=\'images/spacer.gif\'></td></tr></table></body></html>";
	zoomHwnd = wOpen("", "", 400, 400, "no", Body, ""); 
}

function wOpen(pURL, pName, w, h, scroll, text, specialSettings){
	xLeft=(screen.width)?(screen.width-w)/2:0;
	xTop=(screen.height)?(screen.height-h)/2:0;
	xSettings = 'height='+h+',width='+w+',top='+xTop+',left='+xLeft+',scrollbars='+scroll+specialSettings
	hwnd = window.open(pURL,pName,xSettings);
	if(hwnd.window.focus){hwnd.window.focus();}
	if(text != "") hwnd.document.write(text);
	hwnd.document.close();
	return hwnd;
}

function justOpen(pURL, pName, w, h, scroll, text, specialSettings){
	xLeft=(screen.width)?(screen.width-w)/2:0;
	xTop=(screen.height)?(screen.height-h)/2:0;
	xSettings = 'height='+h+',width='+w+',top='+xTop+',left='+xLeft+',scrollbars='+scroll+specialSettings
	hwnd = window.open(pURL,pName,xSettings);
	if(hwnd.window.focus){hwnd.window.focus();}
	if(text != "") hwnd.document.write(text);
	hwnd.document.close();
//	return hwnd;
}

