function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=750,height=600,left = 265,top = 212');");
}

function printlaunch() 
{
	var url = document.location.href;


	if (url.indexOf("?") != -1) 
	{
		url = url.replace("?", "?printpage=yes&"); 
	} 
	else 
	{
		if (url.indexOf(".pasp") != -1) 
		{
		        url = url.replace(".pasp", "~printpage~yes.pasp");
		}

		if (url.indexOf(".aspx") != -1) 
		{
		        url = url.replace(".aspx", "~printpage~yes.aspx");
		}
	}

	//alert(url);
	window.open (url);
}

function closePopup(mypage)
	{
		opener.location = mypage;
		window.close();
		return false;
	}