//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function loadPage(){
	
	//maximize window
	winMax();
	
	//email entry box
	loadEmailSubmissionBox();
	
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function loadEmailSubmissionBox(){
	//load email entry
	var theURL = "default_submitEmail.asp";
	iLoveAjax('div_enrollmentSelection',theURL,"document.getElementById('email1').focus()");
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function submitEmail(){
	var email = trim(document.getElementById("email1").value);
	var theURL = "default_showEnrollments.asp?email=" + email;
	if (email != ''){
		iLoveAjax('div_enrollmentSelection',theURL);
	} else {
		alert("Please enter your email address in the box provided...");
	}
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function loadStartHereLogin(firstName,lastName,quizID){
	if (quizID != ''){
		//set first name and last name cookie
		if (quizID != undefined){
			var xmlDocName = "quiz" + quizID + ".xml";
			createCookie('xmlDocName',xmlDocName);
			createCookie('quizID',quizID);
			}
		
		if (firstName != undefined){
			createCookie('userFirstName',firstName,'60');}
			
		if (lastName != undefined){
			createCookie('userLastName',lastName,'60');}
	

		//debug
		//alert("cookie xmlDocName: " + readCookie("xmlDocName"));
		
	
		//set path to XML for selected quizID
		window.location = "START_HERE.asp";
	} else {
		alert("There is a problem with your registration.\rPlease contact Buckeye and give them this error code:\r\rERROR CODE: LoadStartHereLogin\r\r");	
	}
}
























