/*
eBusiness javascript functions include file
Please contact eBusiness prior to editing or removing
*/

function exitAlert(exitPage){
//this function is called from the page which has the link to a third party web site. It opens an alert page.
	// transfer the pass string var to a local var of the same name
	this.exitPage = exitPage;
	// open the exit page and add a '?' and the target website to open. This passes the target web URL via POST to the exit page.
    open('exitAlert.html?'+this.exitPage, '', 'left=2,top=2toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=458,height=400');
}

function parseURL() {
// this function is called from the alert page and sends the user to the actual page they requested.
	//capture the current URL and the target site
	this.currentURL = window.location.href;
	//split the string variable (the URL) into parts using the '?' and create an array
	this.toURL = this.currentURL.split('?');
	//return the 2nd element of the array to the JS calling the function.
	return this.toURL[1];
}
