<!--

function popup(url,width,height,imgsrc) {
	
	var imgDir = "";
		
	var left = Math.floor( (screen.width - width) / 2);
	var top = Math.floor( (screen.height - height) / 2);
	var features = "width=" + width + ", height=" + height + ", menubar=no, location=no, resizable=yes, toolbar=no, status=no, left=" + left + ", top=" + top;
	var showimg = imgDir + imgsrc;

	var strHTML =	"<html><meta http-equiv='imagetoolbar' content='no' /><body bgcolor='#FFFFFF' marginheight='0' marginwidth='0' topmargin='0px' leftmargin='0px'><a href=\"javascript: window.close();\"><img src=\"" + showimg + "\" border='0'></a></body></html>";


	imgWin = window.open(url, "imgwin", features);
	if(imgWin && imgsrc != ""){
		imgWin.window.focus();
		imgWin.document.open();
		imgWin.document.write(strHTML);
		imgWin.document.close();
	}
}


function newWindow(url,name,width,height,tools)
{
	var features = "";
	var posX = (screen.width - width) / 2;
	var posY = ((screen.height - height) / 2) - 100;
	
	features += "width="+width+",";
	features += "height="+height+",";
	features += "left="+posX+",";
	features += "top="+posY+",";
	features += "screenX="+posX+",";
	features += "screenY="+posY+",";
	
	if (tools == "full")
		features += "toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes";
	else if (tools == "half")
		features += "toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes";
	else if (tools == "custom")
		features += "toolbar=yes,location=no,status=no,scrollbars=no,resizable=yes";
	else
		features += "toolbar=no,menubar=no,location=no,status=no,scrollbars=no,resizable=no";
	
	url = url;
	name = name;
	
	launch = window.open(url,name,features);
}

//-->