// JavaScript Document
function productOne() {
	document.write('Internet Business Kit');
	}
function productTwo() {
	document.write('Home Biz Kit');
	}
function offerOne() {
if (location.href.lastIndexOf('/') !=-1) {
firstpos=location.href.lastIndexOf('/')+1;
lastpos=location.href.lastIndexOf('.');
subid=location.href.substring(firstpos,lastpos);
window.open('theresaoffer.php?subid='+subid+'');
	} 
}
function offerTwo() {
if (location.href.lastIndexOf('/') !=-1) {
firstpos=location.href.lastIndexOf('/')+1;
lastpos=location.href.lastIndexOf('.');
subid=location.href.substring(firstpos,lastpos);
window.open('offer2.php?subid='+subid+'');
	} 
}
function closePage(){
	return ExitPage();
}
var ShowExitPopup = true;

function resetCloseEvent(){
	//window.alert("reset");
	ShowExitPopup = true;
	//window.alert("active again");
}

function exitSafe(){
//window.alert("exit safe");
ShowExitPopup = false;
//window.alert("timer start");
int = 1;
setTimeout("resetCloseEvent()", int*10);
}

function ExitPage() {

	if ((ShowExitPopup)||(location.href.lastIndexOf('/') !=-1))

	firstpos=location.href.lastIndexOf('/')+1;
	lastpos=location.href.lastIndexOf('.');
	subid=location.href.substring(firstpos,lastpos);

	{ 
		ShowExitPopup = false;
		location.href = 'newsproof.php?subid='+subid+'';
		return '\n*****************************************************\n\n CHECK OUT ONLINE SUCCESS KIT ON THE NEWS.?\n\n I know You\'ll Hate to Miss this\n\nCLICK THE *CANCEL* BUTTON TO STAY ON THIS PAGE\n\n*****************************************************\n';
	}
} 

