// JavaScript Document

// Single page scrolling version of 8.1 card config file

//set these values to be used for all cards in a series.
var dataURL = "https://secure.prodregister.com/ireg/ireg.html" // full path url to use to submit to database
var databypassURL = "https://secure.prodregister.com/id.shtml" // full path url to use to bypass the database
var brand = "Hunter" // Brand to be displayed in sweeps text
var lang = "1";
var requiredTxt = "* "; // This is the identifying text to be used for required questions.
var box = "1234"; //las 4 digits of the PO Box
var dept = "HUE"; //3 char Coid
var path = "/hunter/styles/hunter_styles.css"; //relative to root for rules page
var currentPage = "single";

	

	//swepps url is in validate5
	

// to execute upon submit
function custom()
{
	if (lang == 1)
	{
	if (document.iRegForm.e_OptOut.checked != true){
document.iRegForm.EMAIL.value = document.iRegForm.e_Email2.value;
document.iRegForm.action = "https://secure.prodregister.com/hunter/ssl_autopost.shtml"
}
}//end of lang if
	return true;} 
// to execute upon load before writing the error messages
function customVal() {
	//toCheck["e_Email2"][5] = 0; //set to require e-mail
	return;
}

// these functions can be modified if need for this series. No configuration needed for most series.

function pageConfig(){
	
	setDOBYear();
	populate(currentPage,"");
	

}

	// place any custom validation script here.
		


