// 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/form.shtml?-urls-=https://secure.prodregister.com/buckknives/thankyou.shtml,https://secure.prodregister.com/ireg/ireg.html,http://marketer1.silverpop.com/servlet/UserSignUp,&end=end&" // full path url to use to submit to data
var databypassURL = "https://secure.prodregister.com/id.shtml" // full path url to use to bypass the database
var brand = "Bucknives" // Brand to be displayed in sweeps text
var lang = "1"; // language identifier 1 english 2 french 3 spanish
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 = "UFO"; //3 char Coid
var path = "/buckknives/styles/buck_styles.css"; //relative to root for rules page	


	
	//swepps url is in validate5
	

// to execute upon submit
function custom(){
	document.iRegForm.EMAIL.value = document.iRegForm.e_Email2.value;
	return true;} 

// to execute upon load before writing the error messages
function customVal() {
	//toCheck["e_Email2"][5] = 0; //set to require e-mail
	//toCheck["X1"] =  ["", 'Enter a model number',"french","spanish","","0"] //set to require model
	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.


