var NotLeaving = 0;

function GoToPage(name,srcp){	// internal page link
	NotLeaving = 1;
	lUrl = "?"+name+"&src="+srcp;
	window.open(lUrl,"_self");
}

function GoToPgp(name,srcp){	// go to a php page with file name php file type assumed
	lUrl = "/"+name+".php?src="+srcp;
	window.open(lUrl,"_self");
}
function LoadLP(thePage){	// Landing page link
	NotLeaving = 1;
	window.open("/?"+thePage,"_self");
}
function Transfer(name,srcp){
	NotLeaving = 1;
	var	lUrl = "/?"+name+"&src="+srcp;
		window.open(lUrl,"_self"); //Request the Named page
}

function LPleaving() { 		// Leaving from a landing page
	if (NotLeaving==0){
//		alert("LPleaving");
		callServer("xtrack.php");
	}
	return;
}

function IDXleaving() { 	// when leaving from a page record the event

	if (NotLeaving==0){
// 	alert("IDXleaving");
		callServer("xtrack.php");
	}
	return;
}
function popPDF(theURL) {
	newWindow = window.open(theURL, "popWindow","toolbar=no,menubar=no, resizable=yes, scrollbars=yes, status=no, location=no,  alwaysRaised=yes, screenX=10,  screenY=10");
	newWindow.focus();
}

function popWindow(theURL,srcp) {
	var lUrl = "/Pu/"+theURL+"?src="+srcp;
	newWindow = window.open(lUrl, "popWindow","toolbar=no,menubar=no, resizable=yes, scrollbars=yes, status=no, location=no, width=510px, height=400px, alwaysRaised=yes, screenX=10,  screenY=10");
	newWindow.focus();
}

function popBookmark(theURL,srcp) {
	var lUrl = "/Pu/"+theURL+"/?src="+srcp;
	newWindow = window.open(lUrl, "popWindow","toolbar=no,menubar=no, resizable=no, scrollbars=yes, status=no, location=no, width=510px, height=400px, alwaysRaised=yes, screenX=10,  screenY=10");
	newWindow.focus();
}



function leave1() { //record an earily departure

	return;
}


