var disableJavaScriptValidation = false;
var enablePopunder;

function checkPayBackRadio(fields, s)
{
   	// Next line is needed on NN3 to avoid "undefined is not a number" error
   	// in equality comparison below.
   	if (checkPayBackRadio.arguments.length == 2) 
   		emptyOK = defaultEmptyOK;
	var isChecked = false;
	for (i = 0; i < fields.length; i++)
	{
		isChecked = isChecked | fields[i].checked;     	    	
	}
   	if ( (emptyOK == true) && (!isChecked) ) 
   		return true;
   	if ( !isChecked ) 
      	return warnEmpty (fields[0], s);
   	else return true;  
}

function checkRadio(fields, s, emptyOK)
{
   	// Next line is needed on NN3 to avoid "undefined is not a number" error
   	// in equality comparison below.
   	if (checkRadio.arguments.length == 2) 
   		emptyOK = defaultEmptyOK;
	var isChecked = false;
	for (i = 0; i < fields.length; i++)
	{
		isChecked = isChecked | fields[i].checked;     	    	
	}
   	if ( (emptyOK == true) && (!isChecked) ) 
   		return true;
   	if ( !isChecked ) 
      	return warnEmpty (fields[0], s);
   	else return true;  
}

function checkPaycheckDeposit(direct, theField, s)
{
	if (direct == "2")
		return checkDropdown(theField, s, false);
	else
		return true;
		
}
function doValidateEmail(theForm)
{
	return checkEmail(theForm.Email, false);
}
function checkResidence(radioField, otherField, s)
{
	/*
	if (radioField[2].checked)
		return checkString(otherField, s, false)
   	else return true;  
   	*/
   	return checkDropdown(radioField, "\"Do you own or rent?\"", false);
}

function checkResidenceSpanish(radioField, otherField, s)
{
	/*
	if (radioField[2].checked)
		return checkStringSpanish(otherField, s, false)
   	else return true;  
   	*/
   	return checkDropdownSpanish(radioField, s, false);
}

/*
 * Canadian Postal Codes are in the format: ANA NAN
 *
*/
function isPostalCodeCanada (s)
{  
	if (isEmpty(s)) 
 	{
 		if (isPostalCodeCanada .arguments.length == 1) 
 			return defaultEmptyOK;
		else 
			return (isPostalCodeCanada .arguments[1] == true);
   }
   
	return (s.length == 6 &&
		isLetter( s.charAt(0) ) &&
		isDigit ( s.charAt(1) ) && 
		isLetter( s.charAt(2) ) &&
		isDigit ( s.charAt(3) ) && 
		isLetter( s.charAt(4) ) &&
		isDigit ( s.charAt(5) )
	);
}

function checkPostalCodeCanada(theField, emptyOK)
{  
	var sWarning = "Postal Code is invalid.  This field must be in the format ANA NAN. Please reenter it now."; 
	if (checkPostalCodeCanada.arguments.length == 1) emptyOK = defaultEmptyOK;
    if ((emptyOK == true) && (isEmpty(theField.value))) return true;
    else
    { 
    	var normalizedZIP = stripCharsInBag(theField.value, ZIPCodeDelimiters)
    	normalizedZIP = stripWhitespace(normalizedZIP);
    	
      if (!isPostalCodeCanada (normalizedZIP, false)) 
         return warnInvalid (theField, sWarning );
      else 
      {
               return true;
      }
    }
}

function ValidateVeriLeads(theForm)
{
	return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkAreaCode(theForm.WorkPhone1, "\"Work Phone 1\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone2, "\"Work Phone 2\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone3, "\"Work Phone 3\"", 4, false) &&
		checkDropdown(theForm.EmploymentStatus, "\"Primary Income Source\"", false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false)
	);
}

function ValidateBanker(theForm)
{
	return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkString(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkAreaCode(theForm.WorkPhone1, "\"Work Phone 1\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone2, "\"Work Phone 2\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone3, "\"Work Phone 3\"", 4, false) &&
		checkEmail(theForm.Email, false)  &&
		checkDropdown(theForm.ContactTime, "\"Contact Me\"", false) && 
		checkAreaCode(theForm.CellPhone1, "\"Alternate Phone 1\"", 3, false) && 
		checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, false) && 
		checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		//( theForm.elements['DriversLicenseNumber'] == null || 
		//( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		checkDropdown(theForm.DriversLicenseState, "\"DriversLicenseState\"", false) &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) &&
		checkDropdown(theForm.EmploymentStatus, "\"Primary Income Source\"", false) &&
		checkEmployerName(theForm.Employer, "\"Employer\"", false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkDropdown(theForm.TotalYearlyIncome, "\"Total Household Income\"", false) &&
		checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkNextPayDate(theForm.pd2d, theForm.pd2m.options[theForm.pd2m.selectedIndex].value,
			theForm.pd2d.options[theForm.pd2d.selectedIndex].value, 
			theForm.pd2y.options[theForm.pd2y.selectedIndex].value, 14, false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		//checkDropdown(theForm.EmpMonths, "\"Months of employment\"", false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false) &&
		checkDropdown(theForm.Accounts, "\"Type of Bank Account(s)\"", false) &&		
		checkDropdown(theForm.AccountType, "\"Wire to which Bank Account(s)\"", false) &&
		checkString(theForm.bankname, "\"Bank name\"", false) && 
		checkNumericLength(theForm.bankphone1, "\"Bank Phone 1\"", 3, false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) &&
		checkABA(theForm.routing, "\"ABA Routing Number\"", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) 
		
	);
}
function ValidateNewForm(theForm)
{
	return (
	    checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkString(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		checkDropdown(theForm.DriversLicenseState, "\"DriversLicenseState\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false) &&		
		checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		checkString(theForm.bankname, "\"Bank name\"", false) && 
		checkNumericLength(theForm.bankphone1, "\"Bank Phone 1\"", 3, false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) &&
		checkABA(theForm.routing, "\"ABA Routing Number\"", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Wire to which Bank Account(s)\"", false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) && 
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) 
		);
	}
		
function ValidateBanker2(theForm)
{
	return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkString(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkAreaCode(theForm.WorkPhone1, "\"Work Phone 1\"", 3, false) &&
		checkNumericLength(theForm.WorkPhone2, "\"Work Phone 2\"", 3, false) &&
		checkNumericLength(theForm.WorkPhone3, "\"Work Phone 3\"", 4, false) &&		
		checkAreaCode(theForm.CellPhone1, "\"Alternate Phone 1\"", 3, false) && 
		checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, false) && 
		checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, false) &&
		checkDropdown(theForm.ContactTime, "\"Contact Me\"", false) && 
		checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		checkDropdown(theForm.DriversLicenseState, "\"DriversLicenseState\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) &&
		checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false) &&
		checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		checkString(theForm.bankname, "\"Bank name\"", false) && 
		checkNumericLength(theForm.bankphone1, "\"Bank Phone 1\"", 3, false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) &&
		checkABA(theForm.routing, "\"ABA Routing Number\"", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Wire to which Bank Account(s)\"", false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&

		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) && 
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) 
		
		
	);
}

function ValidateFormACAContact(theForm)
{
	return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkAreaCode(theForm.WorkPhone1, "\"Work Phone 1\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone2, "\"Work Phone 2\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone3, "\"Work Phone 3\"", 4, false) &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkEmail(theForm.Email, false)  &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkString(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false)
	);
}

function ValidateFormACA(theForm)
{
	return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkAreaCode(theForm.WorkPhone1, "\"Work Phone 1\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone2, "\"Work Phone 2\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone3, "\"Work Phone 3\"", 4, false) &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkEmail(theForm.Email, false)  &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkString(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkDropdown(theForm.EmploymentStatus, "\"Primary Income Source\"", false) &&
		checkEmployerName(theForm.Employer, "\"Employer\"", false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false)
	);
}

function ValidateForm1Short(theForm)
{
	return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkAreaCode(theForm.WorkPhone1, "\"Work Phone 1\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone2, "\"Work Phone 2\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone3, "\"Work Phone 3\"", 4, false) &&
		checkDropdown(theForm.EmploymentStatus, "\"Primary Income Source\"", false) &&
		checkEmployerName(theForm.Employer, "\"Employer\"", false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false)
	);
}

function ValidateFormSpanish(theForm)
{
	return (
		checkPersonNameSpanish(theForm.Firstname, "\"Nombre\"", false) &&
		checkPersonNameSpanish(theForm.Lastname, "\"Apellido\"", false) &&
		checkStringSpanish(theForm.Address, "\"Direcci\"", false) &&
		checkZIPCodeSpanish(theForm.Zip ,false) &&
		checkDropdownSpanish(theForm.State, "\"Estado\"", false) &&
		checkEmailSpanish(theForm.Email, false)  &&
		checkAreaCodeSpanish(theForm.HomePhone1, "\"Telefono (Casa) 1\"", 3, false) &&
		checkNumericLengthSpanish(theForm.HomePhone2, "\"Telefono (Casa) 2\"", 3, false) &&
		checkNumericLengthSpanish(theForm.HomePhone3, "\"Telefono (Casa) 3\"", 4, false) &&
		checkAreaCodeSpanish(theForm.WorkPhone1, "\"Telefono (Trabajo) 1\"", 3, false) && 
		checkNumericLengthSpanish(theForm.WorkPhone2, "\"Telefono (Trabajo) 2\"", 3, false) && 
		checkNumericLengthSpanish(theForm.WorkPhone3, "\"Telefono (Trabajo) 3\"", 4, false) &&
		checkDropdownSpanish(theForm.EmploymentStatus, "\"Principal forma de Ingreso\"", false) &&
		checkEmployerName(theForm.Employer, "\"Empleador\"", false) &&
		checkDropdownSpanish(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkDropdownSpanish(theForm.PayPeriod, "\"Tiempo de Pagos\"", false) &&
		checkWeekdaySpanish(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdownSpanish(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdownSpanish(theForm.AccountType, "\"¿Que Tipo de Cuentas de Banco Tiene?\"", false) &&
		checkDropdownSpanish(theForm.DirectDeposit, "\"¿Depósito Directo?\"", false)
	);
}

function ValidateFormSpanishOne(theForm)
{
	return (
		checkPersonNameSpanish(theForm.Firstname, "\"Nombre\"", false) &&
		checkPersonNameSpanish(theForm.Lastname, "\"Apellido\"", false) &&
		checkEmailSpanish(theForm.Email, false)  &&
		checkStringSpanish(theForm.Address, "\"Direcci\"", false) &&
		checkCitySpanish(theForm.City, "\"Cuidad\"", false) &&		
		checkDropdownSpanish(theForm.State, "\"Estado\"", false) &&
		checkZIPCodeSpanish(theForm.Zip ,false) &&
		checkAreaCodeSpanish(theForm.HomePhone1, "\"Telefono (Casa) 1\"", 3, false) &&
		checkNumericLengthSpanish(theForm.HomePhone2, "\"Telefono (Casa) 2\"", 3, false) &&
		checkNumericLengthSpanish(theForm.HomePhone3, "\"Telefono (Casa) 3\"", 4, false) &&
		checkEmployerName(theForm.Employer, "\"Empleador\"", false) &&
		checkDropdownSpanish(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkDropdownSpanish(theForm.PayPeriod, "\"Tiempo de Pagos\"", false) &&
		checkWeekdaySpanish(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdownSpanish(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdownSpanish(theForm.AccountType, "\"¿Que Tipo de Cuentas de Banco Tiene?\"", false) &&
		checkDropdownSpanish(theForm.DirectDeposit, "\"¿Depósito Directo?\"", false)
	);
}

function validateCommonSpanishTwo(theForm)
{
	return (
		checkNonNumericSpanish(theForm.bankname, "\"Nombre del Banco\"", false) &&
		checkAreaCodeSpanish(theForm.bankphone1, "\"Teléfono del Banco 1\"", false) && 
		checkNumericLengthSpanish(theForm.bankphone2, "\"Teléfono del Banco 2\"", 3, false) && 
		checkNumericLengthSpanish(theForm.bankphone3, "\"Teléfono del Banco 3\"", 4, false) && 
		checkABASpanish(theForm.routing, "\"Codigo de Banco(Número de ruteo)\"", false) &&
		checkNumericSpanish(theForm.checkingacctnumber, "\"Número de cuenta corriente o caja de ahorro\" (Numbers only)", false) &&		
		checkResidenceSpanish(theForm.home, theForm.resother, "\"Renta o es Propietario\"") &&
		( theForm.elements['BirthMonth'] == null || checkDropdownSpanish(theForm.BirthMonth, "\"Nacimient Mes\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdownSpanish(theForm.BirthDay, "\"Nacimient Día\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdownSpanish(theForm.BirthYear, "\"Nacimient Año\"", false) ) &&
		checkAreaCodeSpanish(theForm.CellPhone1, "\"Teléfono Alternativo 1\"", false) && 
		checkNumericLengthSpanish(theForm.CellPhone2, "\"Teléfono Alternativo 2\"", 3, false) && 
		checkNumericLengthSpanish(theForm.CellPhone3, "\"Teléfono Alternativo 3\"", 4, false) &&
		checkNumericLengthSpanish(theForm.socialsecurity1, "\"Numero de Seguro Social 1\"", 3, false) &&
		checkNumericLengthSpanish(theForm.socialsecurity2, "\"Numero de Seguro Social 2\"", 2, false) &&
		checkNumericLengthSpanish(theForm.socialsecurity3, "\"Numero de Seguro Social 3\"", 4, false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkStringSpanish(theForm.DriversLicenseNumber, "\"Licencia de Manejar O Identificación\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdownSpanish(theForm.DriversLicenseState, "\"Licencia de Manejar Estado\"", false) ) &&
		//( theForm.elements['AmountRequested'] == null || checkDropdownSpanish(theForm.AmountRequested, "\"Monto del Préstamo\"", false) ) &&
		checkCitySpanish(theForm.empcity, "\"Empleador Ciudad\"", false) &&
		checkDropdownSpanish(theForm.empstate, "\"Empleador Estado\"", false) &&
		checkZIPCodeSpanish(theForm.empzip, "\"Empleador Código Postal\"", false) &&		
		checkAreaCodeSpanish(theForm.EmployerPhone1, "\"Teléfono Empleador 1\"", false) &&
		checkNumericLengthSpanish(theForm.EmployerPhone2, "\"Teléfono Empleador 2\"", 3, false) &&
		checkNumericLengthSpanish(theForm.EmployerPhone3, "\"Teléfono Empleador 3\"", 4, false) &&
		checkPersonNameSpanish(theForm.refname, "\"Nombre del Referente\"", false) &&
		checkAreaCodeSpanish(theForm.refphone1, "\"Referente Teléfono 1\"", false) && 
		checkNumericLengthSpanish(theForm.refphone2, "\"Referente Teléfono 2\"", 3, false) && 
		checkNumericLengthSpanish(theForm.refphone3, "\"Referente Teléfono 3\"", 4, false) &&
		checkDropdownSpanish(theForm.ReferenceRelation, "\"Referente 1 Relación\"", false) &&
		checkPersonNameSpanish(theForm.ref2name, "\"Nombre del Referente 2\"", false) &&
		checkAreaCodeSpanish(theForm.ref2phone1, "\"Referente 2 Teléfono 1\"", false) && 
		checkNumericLengthSpanish(theForm.ref2phone2, "\"Referente 2 Teléfono 2\"", 3, false) && 
		checkNumericLengthSpanish(theForm.ref2phone3, "\"Referente 2 Teléfono 3\"", 4, false) && 
		checkDropdownSpanish(theForm.Reference2Relation, "\"Referente 2 Relación\"", false)
	);
}

function ValidateFormOnePageSpanish(theForm)
{
	return (
		checkStringSpanish(theForm.Firstname, "\"First Name\"", false) &&
		checkStringSpanish(theForm.Lastname, "\"Last Name\"", false) &&
		checkEmailSpanish(theForm.Email, false)  &&
		checkStringSpanish(theForm.Address, "\"Dirección\"", false) &&
		checkCitySpanish(theForm.City, "\"Cuidad\"", false) &&
		checkDropdownSpanish(theForm.State, "\"Estado\"", false) &&
		checkZIPCodeSpanish(theForm.Zip ,false) &&
		checkAreaCodeSpanish(theForm.HomePhone1, "\"Telefono (Casa) 1\"", 3, false) &&
		checkNumericLengthSpanish(theForm.HomePhone2, "\"Telefono (Casa) 2\"", 3, false) &&
		checkNumericLengthSpanish(theForm.HomePhone3, "\"Telefono (Casa) 3\"", 4, false) &&
		checkResidenceSpanish(theForm.home, theForm.resother, "\"Renta o es Propietario\"") &&
		checkNumericLengthSpanish(theForm.socialsecurity1, "\"Numero de Seguro Social 1\"", 3, false) &&
		checkNumericLengthSpanish(theForm.socialsecurity2, "\"Numero de Seguro Social 2\"", 2, false) &&
		checkNumericLengthSpanish(theForm.socialsecurity3, "\"Numero de Seguro Social 3\"", 4, false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkStringSpanish(theForm.DriversLicenseNumber, "\"Licencia de Manejar O Identificación\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdownSpanish(theForm.DriversLicenseState, "\"Licencia de Manejar Estado\"", false) ) &&
		( theForm.elements['BirthMonth'] == null || checkDropdownSpanish(theForm.BirthMonth, "\"Nacimient Mes\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdownSpanish(theForm.BirthDay, "\"Nacimient Día\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdownSpanish(theForm.BirthYear, "\"Nacimient Año\"", false) ) &&
		checkEmployerName(theForm.Employer, "\"Empleador\"", false) &&
		checkAreaCodeSpanish(theForm.EmployerPhone1, "\"Teléfono Empleador 1\"", false) &&
		checkNumericLengthSpanish(theForm.EmployerPhone2, "\"Teléfono Empleador 2\"", 3, false) &&
		checkNumericLengthSpanish(theForm.EmployerPhone3, "\"Teléfono Empleador 3\"", 4, false) &&
		checkCitySpanish(theForm.empcity, "\"Empleador Ciudad\"", false) &&		
		checkDropdownSpanish(theForm.empstate, "\"Empleador Estado\"", false) &&
		checkZIPCodeSpanish(theForm.empzip, "\"Empleador Código Postal\"", false) &&				
		checkDropdownSpanish(theForm.PayPeriod, "\"Frecuencia de Pagos\"", false) &&		
		checkDropdown(theForm.EmpYears, "\"Cuanto teimpo estuvo empleado\"", false) &&				
		checkDropdownSpanish(theForm.MonthlyIncome, "\"Ingresos Mensuales\"", false) &&
		checkDropdownSpanish(theForm.DirectDeposit, "\"¿Depósito Directo?\"", false) &&
		checkWeekdaySpanish(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkNonNumericSpanish(theForm.bankname, "\"Nombre del Banco\"", false) &&
		checkAreaCodeSpanish(theForm.bankphone1, "\"Teléfono del Banco 1\"", false) && 
		checkNumericLengthSpanish(theForm.bankphone2, "\"Teléfono del Banco 2\"", 3, false) && 
		checkNumericLengthSpanish(theForm.bankphone3, "\"Teléfono del Banco 3\"", 4, false) && 
		checkABASpanish(theForm.routing, "\"Codigo de Banco(Número de ruteo)\"", false) &&
		checkNumericSpanish(theForm.checkingacctnumber, "\"Número de cuenta corriente o caja de ahorro\" (Numbers only)", false) &&		
		checkDropdownSpanish(theForm.AccountType, "\"¿Que Tipo de Cuentas de Banco Tiene?\"", false) &&



		checkPersonNameSpanish(theForm.refname, "\"Nombre del Referente\"", false) &&
		checkAreaCodeSpanish(theForm.refphone1, "\"Referente Teléfono 1\"", false) && 
		checkNumericLengthSpanish(theForm.refphone2, "\"Referente Teléfono 2\"", 3, false) && 
		checkNumericLengthSpanish(theForm.refphone3, "\"Referente Teléfono 3\"", 4, false) &&
		checkDropdownSpanish(theForm.ReferenceRelation, "\"Referente 1 Relación\"", false) &&
		checkPersonNameSpanish(theForm.ref2name, "\"Nombre del Referente 2\"", false) &&
		checkAreaCodeSpanish(theForm.ref2phone1, "\"Referente 2 Teléfono 1\"", false) && 
		checkNumericLengthSpanish(theForm.ref2phone2, "\"Referente 2 Teléfono 2\"", 3, false) && 
		checkNumericLengthSpanish(theForm.ref2phone3, "\"Referente 2 Teléfono 3\"", 4, false) && 
		checkDropdownSpanish(theForm.Reference2Relation, "\"Referente 2 Relación\"", false)
	
	);
}

function ValidateForm2Short(theForm)
{
	return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkEmail(theForm.Email, false)
	);
}

function ValidateForm1Long(theForm)
{
	return (
		checkString(theForm.Firstname, "\"First Name\"", false) &&
		checkString(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkCity(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkEmail(theForm.Email, false)  &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkAreaCode(theForm.WorkPhone1, "\"Work Phone 1\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone2, "\"Work Phone 2\"", 3, false) && 
		checkNumericLength(theForm.WorkPhone3, "\"Work Phone 3\"", 4, false) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkDropdown(theForm.EmploymentStatus, "\"Primary Income Source\"", false) &&
		checkEmployerName(theForm.Employer, "\"Employer\"", false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false) &&
		//checkDropdown(theForm.EmpMonths, "\"Months of employment\"", false) &&
		checkString(theForm.bankname, "\"Bank name\"", false) &&
		checkNumericLength(theForm.bankphone1, "\"Bank Phone 1\"", 3, false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number\"", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) && 
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) )
	);
}

function ValidateFormOnePage(theForm)
{
	submitFlag=1;
	return (
		checkString(theForm.Firstname, "\"First Name\"", false) &&
		checkString(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkCity(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkEmployerName(theForm.Employer, "\"Employer\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false) &&
		checkString(theForm.bankname, "\"Bank name\"", false) &&
		checkNumericLength(theForm.bankphone1, "\"Bank Phone 1\"", 3, false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number\"", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false)
	
	);
}

function ValidateFormOnePage2(theForm)
{
	submitFlag=1;
	return (
		checkString(theForm.Address, "\"Address\"", false) &&
		checkCity(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) && 
		checkDropdown(theForm.EmploymentStatus, "\"Income Source\"", false) && 
		checkEmployerName(theForm.Employer, "\"Employer Name\"", false) && 
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) && 
		checkString(theForm.empcity, "\"Employer City\"", false) && 
		checkDropdown(theForm.empstate, "\"Employer State\"", false) && 
		checkZIPCode(theForm.empzip ,false) && 		
		checkDropdown(theForm.PayPeriod, "\"Paycheck Frequency\"",false) && 
		checkDropdown(theForm.EmpMonths, "\"Months of employment\"", false) && 
		checkDropdown(theForm.EmpYears, "\"Employment Years\"",false) && 
		checkDropdown(theForm.DirectDeposit, "\"Direct Deposit\"",false) && 
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) && 
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) && 
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Income\"",false) && 
		checkString(theForm.bankname, "\"Bank name\"", false) && 
		checkNumericLength(theForm.bankphone1, "\"Bank Phone 1\"", 3, false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&	 
		checkABA(theForm.routing, "\"ABA Routing Number\"", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&	
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) && 
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) && 
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) && 
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false)
	);
}

function ValidateFormOnePage3(theForm)
{
	submitFlag=1;
	return (
		checkString(theForm.Firstname, "\"First Name\"", false) &&
		checkString(theForm.Lastname, "\"Last Name\"", false) &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkEmail(theForm.Email, false)  &&
		checkString(theForm.bdaydate, "\"BirthDate\"", false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkCity(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false) &&
		checkString(theForm.bankname, "\"Bank name\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkABA(theForm.routing, "\"ABA Routing Number\"", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		checkEmployerName(theForm.Employer, "\"Employer\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkDropdown(theForm.EmploymentStatus, "\"Primary Income Source\"", false) &&	
		checkString(theForm.nextPayDayDate, "\"Next Payday\"", false) &&
		/*checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		*/
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&		
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) 
	);
}

function ValidateFormOnePage4(theForm)
{
	submitFlag=1;
	return (
		checkString(theForm.Firstname, "\"First Name\"", false) &&
		checkString(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkCity(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkEmployerName(theForm.Employer, "\"Employer\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false) &&
		checkString(theForm.bankname, "\"Bank name\"", false) &&
		checkNumericLength(theForm.bankphone1, "\"Bank Phone 1\"", 3, false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number\"", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) 
	);
}

function ValidateFormOnePageNoRef(theForm)
{
	 if((checkString(theForm.Firstname, "\"First Name\"", false) &&
		checkString(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkCity(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkEmployerName(theForm.Employer, "\"Employer\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false) &&
		checkString(theForm.bankname, "\"Bank name\"", false) &&
		checkNumericLength(theForm.bankphone1, "\"Bank Phone 1\"", 3, false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number\"", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false)) == true) { submitFlag=1; return true;}
		else{ submitFlag=0; return false;}	 	
	
}

function ValidateFormOnePageNoRefOld(theForm)
{
	return ( 
		checkString(theForm.Firstname, "\"First Name\"", false) &&
		checkString(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkCity(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkEmployerName(theForm.Employer, "\"Employer\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false) &&
		checkString(theForm.bankname, "\"Bank name\"", false) &&
		checkNumericLength(theForm.bankphone1, "\"Bank Phone 1\"", 3, false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number\"", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false)
	
	);
}










function ValidateForm1Carworks(theForm)
{
	return (
		checkDropdown(theForm.EmploymentStatus, "\"Primary Income Source\"", false) &&
		checkEmployerName(theForm.Employer, "\"Employer\"", false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkString(theForm.bankname, "\"Bank name\"", false) &&
		checkNumericLength(theForm.bankphone1, "\"Bank Phone 1\"", 3, false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false)
	);
}

function ValidateForm1Carworks_2681(theForm)
{
	return (
		checkDropdown(theForm.EmploymentStatus, "\"Primary Income Source\"", false) &&
		checkEmployerName(theForm.Employer, "\"Employer\"", false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Take Home Pay\"", false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.PayPeriod, "\"How often do you get paid?\"", false) &&
		checkDropdown(theForm.EmpYears, "\"Years of employment\"", false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkString(theForm.bankname, "\"Bank name\"", false) &&
		checkNumericLength(theForm.bankphone1, "\"Bank Phone 1\"", 3, false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false)
	);
}			

function validateICS(theForm)
{
	return (
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumericLength(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false) &&
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkCity(theForm.city, "\"City\"", false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false)
	);
}

function validateBlizzard1(theForm)
{
	return (
		checkCity(theForm.city, "\"City\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkNumericLength(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false) &&
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false)
	);
}

function validateSTD(theForm)
{
	return (
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		//checkNumericLength(theForm.routing, "\"ABA Routing Number ?\"", 9, false)
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		//checkString(theForm.address, "\"Address\"", false) &&
		checkCity(theForm.city, "\"City\"", false) &&
		//checkZIPCode(theForm.zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		checkAreaCode(theForm.CellPhone1, "\"Alternate Phone 1\"", false) && 
		checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, false) && 
		checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		checkWeekday(theForm.pd2d, theForm.pd2m.options[theForm.pd2m.selectedIndex].value,
				theForm.pd2d.options[theForm.pd2d.selectedIndex].value, 
				theForm.pd2y.options[theForm.pd2y.selectedIndex].value,
				"\"2nd Pay Day\"", false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		/*
		checkDropdown(theForm.pd1m, "\"Next Paydate (Month)\"", false) &&
		checkDropdown(theForm.pd1d, "\"Next Paydate (Day)\"", false) &&
		checkDropdown(theForm.pd1y, "\"Next Paydate (Year)\"", false) &&
		*/
		checkDropdown(theForm.TotalYearlyIncome, "\"Total Household Income\"", false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false)
	);
}

function validateQPD(theForm)
{
	return (
		//checkString(theForm.address, "\"Address\"", false) &&
		checkCity(theForm.city, "\"City\"", false) &&
		//checkZIPCode(theForm.zip ,false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		//checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		//checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		/*
		checkDropdown(theForm.pd1m, "\"Next Paydate (Month)\"", false) &&
		checkDropdown(theForm.pd1d, "\"Next Paydate (Day)\"", false) &&
		checkDropdown(theForm.pd1y, "\"Next Paydate (Year)\"", false) &&
		*/
		checkDropdown(theForm.TotalYearlyIncome, "\"Total Household Income\"", false) &&
		/*
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		*/
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkNumericLength(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false)
	);
}

function validatePRL(theForm)
{
	return (
		//checkString(theForm.address, "\"Address\"", false) &&
		checkCity(theForm.city, "\"City\"", false) &&
		//checkZIPCode(theForm.zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) &&
		checkAreaCode(theForm.CellPhone1, "\"Alternate Phone 1\"", false) && 
		checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, false) && 
		checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		/*
		checkDropdown(theForm.pd1m, "\"Next Paydate (Month)\"", false) &&
		checkDropdown(theForm.pd1d, "\"Next Paydate (Day)\"", false) &&
		checkDropdown(theForm.pd1y, "\"Next Paydate (Year)\"", false) &&
		*/
		checkDropdown(theForm.TotalYearlyIncome, "\"Total Household Income\"", false) &&
		( theForm.directdeposit.value == "2" ? checkDropdown(theForm.PaycheckDeposit, "\"how deposit your paycheck\"", false) : true ) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkABA(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false)
	);
}

function validateOF(theForm)
{
	return validateSTD(theForm);
}

function validateACS(theForm)
{
	return (
		//checkString(theForm.address, "\"Address\"", false) &&
		checkCity(theForm.city, "\"City\"", false) &&
		//checkZIPCode(theForm.zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkAreaCode(theForm.CellPhone1, "\"Alternate Phone 1\"", false) && 
		checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, false) && 
		checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		/*
		checkDropdown(theForm.pd1m, "\"Next Paydate (Month)\"", false) &&
		checkDropdown(theForm.pd1d, "\"Next Paydate (Day)\"", false) &&
		checkDropdown(theForm.pd1y, "\"Next Paydate (Year)\"", false) &&
		*/
		checkDropdown(theForm.TotalYearlyIncome, "\"Total Household Income\"", false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkNumericLength(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false)
	);
}

function validateACA(theForm)
{
	return (
		//checkString(theForm.address, "\"Address\"", false) &&
		checkCity(theForm.city, "\"City\"", false) &&
		//checkZIPCode(theForm.zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkAreaCode(theForm.CellPhone1, "\"Alternate Phone 1\"", false) && 
		checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, false) && 
		checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		/*
		checkDropdown(theForm.pd1m, "\"Next Paydate (Month)\"", false) &&
		checkDropdown(theForm.pd1d, "\"Next Paydate (Day)\"", false) &&
		checkDropdown(theForm.pd1y, "\"Next Paydate (Year)\"", false) &&
		*/
		checkDropdown(theForm.TotalYearlyIncome, "\"Total Household Income\"", false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkNumericLength(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false)
	);
}

function validateMYCT(theForm)
{
	return (
		//checkString(theForm.address, "\"Address\"", false) &&
		checkCity(theForm.city, "\"City\"", false) &&
		//checkZIPCode(theForm.zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkAreaCode(theForm.CellPhone1, "\"Alternate Phone 1\"", false) && 
		checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, false) && 
		checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		/*
		checkDropdown(theForm.pd1m, "\"Next Paydate (Month)\"", false) &&
		checkDropdown(theForm.pd1d, "\"Next Paydate (Day)\"", false) &&
		checkDropdown(theForm.pd1y, "\"Next Paydate (Year)\"", false) &&
		*/
		checkDropdown(theForm.TotalYearlyIncome, "\"Total Household Income\"", false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkNumericLength(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false) &&
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false)
	);
}

function validateCANET(theForm)
{
	return (
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumericLength(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false) &&
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		//checkString(theForm.address, "\"Address\"", false) &&
		checkCity(theForm.city, "\"City\"", false) &&
		//checkZIPCode(theForm.zip ,false) &&
		( theForm.elements['CellPhone1'] == null || checkAreaCode(theForm.CellPhone1, "\"Alternate Phone 1\"", false) ) && 
		( theForm.elements['CellPhone2'] == null || checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, false) ) && 
		( theForm.elements['CellPhone3'] == null || checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, false) ) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		( theForm.elements['SupervisorName'] == null || checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) ) &&
		( theForm.elements['EmployerPhone1'] == null || checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) ) &&
		( theForm.elements['EmployerPhone2'] == null || checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) ) &&
		( theForm.elements['EmployerPhone3'] == null || checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) )
	);
}

function validateCASH2GO(theForm)
{
	return (
		//checkString(theForm.address, "\"Address\"", false) &&
		checkCity(theForm.city, "\"City\"", false) &&
		//checkZIPCode(theForm.zip ,false) &&
		checkAreaCode(theForm.CellPhone1, "\"Alternate Phone 1\"", false) && 
		checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, false) && 
		checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkNumericLength(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false)
	);
}

function validateCONNECT(theForm)
{
	return (
		checkCity(theForm.city, "\"City\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkNumericLength(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false)
	);
}

function validateSS(theForm)
{
	return (
		checkCity(theForm.city, "\"City\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		checkWeekday(theForm.pd2d, theForm.pd2m.options[theForm.pd2m.selectedIndex].value,
				theForm.pd2d.options[theForm.pd2d.selectedIndex].value, 
				theForm.pd2y.options[theForm.pd2y.selectedIndex].value,
				"\"2nd Pay Day\"", false) &&
		checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip,false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkABA(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false) &&
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false)
	);
}

function validateCompuCred(theForm)
{
	return (
		checkCity(theForm.city, "\"City\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		checkWeekday(theForm.pd2d, theForm.pd2m.options[theForm.pd2m.selectedIndex].value,
				theForm.pd2d.options[theForm.pd2d.selectedIndex].value, 
				theForm.pd2y.options[theForm.pd2y.selectedIndex].value,
				"\"2nd Pay Day\"", false) &&
		checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkNumericLength(theForm.routing, "\"ABA Routing Number ?\" (Must be 9 numbers)", 9, false) &&
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false)
	);
}

function validateShortQPD(theForm)
{
	return (
		checkString(theForm.address, "\"Address\"", false) &&
		checkZIPCode(theForm.zip ,false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		//checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		//checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) &&
		checkDropdown(theForm.TotalYearlyIncome, "\"Total Household Income\"", false)
	);
}

function validateShortICS(theForm)
{
	return (true);
}

function validateShortSTD(theForm)
{
	return (
		//checkString(theForm.address, "\"Address\"", false) &&
		//checkZIPCode(theForm.zip ,false) &&
		checkDropdown(theForm.home, "\"Own or rent?\"") &&
		checkNumericLength(theForm.CellPhone1, "\"Alternate Phone 1\"", 3, false) && 
		checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, false) && 
		checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) &&
		checkNumericLength(theForm.EmployerPhone1, "\"Employer Phone 1\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkString(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		checkDropdown(theForm.TotalYearlyIncome, "\"Total Household Income\"", false) &&
		checkWeekday(theForm.pd2d, theForm.pd2m.options[theForm.pd2m.selectedIndex].value,
				theForm.pd2d.options[theForm.pd2d.selectedIndex].value, 
				theForm.pd2y.options[theForm.pd2y.selectedIndex].value,
				"\"2nd Pay Day\"", false) &&
		checkString(theForm.refname, "\"Reference Name\"", false) &&
		checkNumericLength(theForm.refphone1, "\"Reference Phone 1\"", 3, false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkString(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkNumericLength(theForm.ref2phone1, "\"Reference 2 Phone 1\"", 3, false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false)
	);
}

function validateShortOF(theForm)
{
	return validateShortSTD(theForm);
}

function validateShortCANET(theForm)
{
	return (
		//checkString(theForm.address, "\"Address\"", false) &&
		//checkZIPCode(theForm.zip ,false) &&
		( theForm.elements['CellPhone1'] == null || checkAreaCode(theForm.CellPhone1, "\"Alternate Phone 1\"", false) ) && 
		( theForm.elements['CellPhone2'] == null || checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, false) ) && 
		( theForm.elements['CellPhone3'] == null || checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, false) ) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		( theForm.elements['EmployerPhone1'] == null || checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) ) &&
		( theForm.elements['EmployerPhone2'] == null || checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) ) &&
		( theForm.elements['EmployerPhone3'] == null || checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) ) &&
		( theForm.elements['SupervisorName'] == null || checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) )
	);
}

function validateShortCompuCred(theForm)
{
	return (
		//checkString(theForm.address, "\"Address\"", false) &&
		//checkZIPCode(theForm.zip ,false) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkWeekday(theForm.pd2d, theForm.pd2m.options[theForm.pd2m.selectedIndex].value,
				theForm.pd2d.options[theForm.pd2d.selectedIndex].value, 
				theForm.pd2y.options[theForm.pd2y.selectedIndex].value,
				"\"2nd Pay Day\"", false) &&
		checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) &&
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkCheckboxChecked(theForm.iagree, "\"I Agree with the terms above\"", false)
		
	);
}

function validateCommon(theForm)
{
	return (
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkCity(theForm.city, "\"City\"", false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		checkAreaCode(theForm.CellPhone1, "\"Alternate Phone 1\"", true) && 
		checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, true) && 
		checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, true) &&
		checkDropdown(theForm.ContactTime, "\"Best Time to Reach You\"", false) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		//( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkCity(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip, "\"Employer Zip\"", false) &&
		checkPersonName(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"",false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false)
	);
}

function validateCommonSpanish(theForm)
{
	return (
		checkDropdownSpanish(theForm.AccountType, "\"¿Dónde le enviamos su transferencia bancaria?\"", false) &&
		checkNonNumericSpanish(theForm.bankname, "\"Nombre del Banco\"", false) &&
		checkAreaCodeSpanish(theForm.bankphone1, "\"Teléfono del Banco 1\"", false) && 
		checkNumericLengthSpanish(theForm.bankphone2, "\"Teléfono del Banco 2\"", 3, false) && 
		checkNumericLengthSpanish(theForm.bankphone3, "\"Teléfono del Banco 3\"", 4, false) && 
		checkABASpanish(theForm.routing, "\"Codigo de Banco(Número de ruteo)\"", false) &&
		checkNumericSpanish(theForm.checkingacctnumber, "\"Número de cuenta corriente o caja de ahorro\" (Numbers only)", false) &&
		checkCitySpanish(theForm.city, "\"Ciudad\"", false) &&
		checkResidenceSpanish(theForm.home, theForm.resother, "\"Renta o es Propietario\"") &&
		checkAreaCodeSpanish(theForm.CellPhone1, "\"Teléfono Alternativo 1\"", true) && 
		checkNumericLengthSpanish(theForm.CellPhone2, "\"Teléfono Alternativo 2\"", 3, true) && 
		checkNumericLengthSpanish(theForm.CellPhone3, "\"Teléfono Alternativo 3\"", 4, true) &&
		checkDropdownSpanish(theForm.ContactTime, "\"Horario de contacto\"", false) &&
		( theForm.elements['BirthMonth'] == null || checkDropdownSpanish(theForm.BirthMonth, "\"Nacimient Mes\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdownSpanish(theForm.BirthDay, "\"Nacimient Día\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdownSpanish(theForm.BirthYear, "\"Nacimient Año\"", false) ) &&
		checkNumericLengthSpanish(theForm.socialsecurity1, "\"Numero de Seguro Social 1\"", 3, false) &&
		checkNumericLengthSpanish(theForm.socialsecurity2, "\"Numero de Seguro Social 2\"", 2, false) &&
		checkNumericLengthSpanish(theForm.socialsecurity3, "\"Numero de Seguro Social 3\"", 4, false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkStringSpanish(theForm.DriversLicenseNumber, "\"Licencia de Manejar O Identificación\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdownSpanish(theForm.DriversLicenseState, "\"Licencia de Manejar Estado\"", false) ) &&
		//( theForm.elements['AmountRequested'] == null || checkDropdownSpanish(theForm.AmountRequested, "\"Monto del Préstamo\"", false) ) &&
		checkCitySpanish(theForm.empcity, "\"Empleador Ciudad\"", false) &&
		checkDropdownSpanish(theForm.empstate, "\"Empleador Estado\"", false) &&
		checkZIPCodeSpanish(theForm.empzip, "\"Empleador Código Postal\"", false) &&
		checkPersonNameSpanish(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		checkAreaCodeSpanish(theForm.EmployerPhone1, "\"Teléfono Empleador 1\"", false) &&
		checkNumericLengthSpanish(theForm.EmployerPhone2, "\"Teléfono Empleador 2\"", 3, false) &&
		checkNumericLengthSpanish(theForm.EmployerPhone3, "\"Teléfono Empleador 3\"", 4, false) &&
		checkPersonNameSpanish(theForm.refname, "\"Nombre del Referente\"", false) &&
		checkAreaCodeSpanish(theForm.refphone1, "\"Referente Teléfono 1\"", false) && 
		checkNumericLengthSpanish(theForm.refphone2, "\"Referente Teléfono 2\"", 3, false) && 
		checkNumericLengthSpanish(theForm.refphone3, "\"Referente Teléfono 3\"", 4, false) &&
		checkDropdownSpanish(theForm.ReferenceRelation, "\"Referente 1 Relación\"", false) &&
		checkPersonNameSpanish(theForm.ref2name, "\"Nombre del Referente 2\"", false) &&
		checkAreaCodeSpanish(theForm.ref2phone1, "\"Referente 2 Teléfono 1\"", false) && 
		checkNumericLengthSpanish(theForm.ref2phone2, "\"Referente 2 Teléfono 2\"", 3, false) && 
		checkNumericLengthSpanish(theForm.ref2phone3, "\"Referente 2 Teléfono 3\"", 4, false) && 
		checkDropdownSpanish(theForm.Reference2Relation, "\"Referente 2 Relación\"", false)
	);
}

function validateShortCommon(theForm)
{
	return (
		checkDropdown(theForm.home, "\"Own or rent?\"") &&
		checkNumericLength(theForm.CellPhone1, "\"Alternate Phone 1\"", 3, true) && 
		checkNumericLength(theForm.CellPhone2, "\"Alternate Phone 2\"", 3, true) && 
		checkNumericLength(theForm.CellPhone3, "\"Alternate Phone 3\"", 4, true) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		//( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Amount You Want To Borrow\"", false) ) &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) &&
		checkString(theForm.SupervisorName, "\"Supervisor's Name\"", false) &&
		checkNumericLength(theForm.EmployerPhone1, "\"Employer Phone 1\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) &&
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkString(theForm.refname, "\"Reference Name\"", false) &&
		checkNumericLength(theForm.refphone1, "\"Reference Phone 1\"", 3, false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkString(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkNumericLength(theForm.ref2phone1, "\"Reference 2 Phone 1\"", 3, false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false)
	);
}

function ValidateFormFront(theForm)
{
	submitFlag=1;
	return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkString(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Do you own or rent?\"") &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkNumericLength(theForm.CellPhone1, "\"Cell Phone 1\"", 3, true) && 
		checkNumericLength(theForm.CellPhone2, "\"Cell Phone 2\"", 3, true) && 
		checkNumericLength(theForm.CellPhone3, "\"Cell Phone 3\"", 4, true) &&
		checkNumericLength(theForm.socialsecurity1, "\"Social Security 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"Social Security 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"Social Security 3\"", 4, false) &&
		checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) &&
		checkEmployerName(theForm.Employer, "\"Employer Name\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.PayPeriod, "\"Paycheck Frequency\"",false) &&
		checkDropdown(theForm.EmpYears, "\"Employment Years\"",false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Income\"",false) &&
		checkDropdown(theForm.DirectDeposit, "\"Direct Deposit\"",false)
	);
}

function ValidateFormFrontSSN(theForm)
{
	submitFlag=1;
	return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkString(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Do you own or rent?\"") &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkNumericLength(theForm.CellPhone1, "\"Cell Phone 1\"", 3, true) && 
		checkNumericLength(theForm.CellPhone2, "\"Cell Phone 2\"", 3, true) && 
		checkNumericLength(theForm.CellPhone3, "\"Cell Phone 3\"", 4, true) &&
		checkNumericLength(theForm.socialsecurity1, "\"Social Security 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"Social Security 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"Social Security 3\"", 4, false) &&
		checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false)
	);
}

function ValidateFormFrontNoSSN(theForm)
{
	submitFlag=1;
	return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkString(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Do you own or rent?\"") &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkNumericLength(theForm.CellPhone1, "\"Cell Phone 1\"", 3, true) && 
		checkNumericLength(theForm.CellPhone2, "\"Cell Phone 2\"", 3, true) && 
		checkNumericLength(theForm.CellPhone3, "\"Cell Phone 3\"", 4, true) &&
		checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) &&
		checkEmployerName(theForm.Employer, "\"Employer Name\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.PayPeriod, "\"Paycheck Frequency\"",false) &&
		checkDropdown(theForm.EmpYears, "\"Employment Years\"",false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Income\"",false) &&
		checkDropdown(theForm.DirectDeposit, "\"Direct Deposit\"",false)
	);
}

function ValidateFormInside(theForm)
{
	return (
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false)
	);
}

function ValidateFormInsideWithSSN(theForm)
{
	return (
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		checkPersonName(theForm.refname, "\"Reference Name\"", false) &&
		checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) && 
		checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) && 
		checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) &&
		checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) &&
		checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) &&
		checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) && 
		checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) && 
		checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) && 
		checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false)
	);
}

function ValidateFormInsideWithSSN2(theForm)
{
	return (
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false)
	);
}

function ValidateForCashZipWithAdditionalFields(theForm)
{
	// If browser version is less than 5, skip javascript validation.
	if ( parseInt(navigator.appVersion) < 4  || disableJavaScriptValidation == true)
		return true;
	else
		return ( 
		checkEmail(theForm.Email, false)  &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) )&&
		checkAreaCode(theForm.HomePhone1, "\"Phone Areacode\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Phone Prefix\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"phone\"", 4, false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Income\"", false) &&
		checkDropdown(theForm.DirectDeposit, "\"Do you have Direct Deposit\"", false);
}

function ValidateForCashZipWithAdditionalFields2(theForm)
{
	// If browser version is less than 5, skip javascript validation.
	if ( parseInt(navigator.appVersion) < 4  || disableJavaScriptValidation == true)
		return true;
	else
		return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkAreaCode(theForm.HomePhone1, "\"Phone Areacode\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Phone Prefix\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"phone\"", 4, false) &&
		checkEmail(theForm.Email, false)
		);
}

function ValidateAdditionalOffers(theForm)
{
	var noErrors = true;
	
	if (!theForm.PostBrokenGold[0].checked && !theForm.PostBrokenGold[1].checked) noErrors = false;
	if (!theForm.PostCROI[0].checked && !theForm.PostCROI[1].checked) noErrors = false;		
	if (!theForm.PostIDTheft[0].checked && !theForm.PostIDTheft[1].checked) noErrors = false;	
	if (!theForm.PostSuperEliteOffer[0].checked && !theForm.PostSuperEliteOffer[1].checked) noErrors = false;		
	
	if (!noErrors) alert('You must choose YES or NO to the special bonus offers to continue the Lender Matching Process.')

	return noErrors;	
}

function checkDoubleOptinChecked (parentRadio, radio)
{
	if (parentRadio[1].checked)
		return true;

	for (var i = 0; i < radio.length; i++)
	{   
		if (radio[i].checked) 
		{ 
			return true; 
		}
    }

    return false;
}

function ValidateHomePhone(theForm)
{
	return (
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false)
	);
}

function ValidatePersonalInfo(theForm)
{
	submitFlag=1;
	return (
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Requested Amount\"", false) ) &&
		checkString(theForm.Firstname, "\"First Name\"", false) &&
		checkString(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkCity(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkNumericLength(theForm.CellPhone1, "\"Cell Phone 1\"", 3, true) && 
		checkNumericLength(theForm.CellPhone2, "\"Cell Phone 2\"", 3, true) && 
		checkNumericLength(theForm.CellPhone3, "\"Cell Phone 3\"", 4, true) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) &&
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) &&
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) )
	);
}

function ValidatePersonalInfo2(theForm)
{
	submitFlag=1;
	return (
		( theForm.elements['AmountRequested'] == null || checkDropdown(theForm.AmountRequested, "\"Requested Amount\"", false) ) &&
		checkString(theForm.Firstname, "\"First Name\"", false) &&
		checkString(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkCity(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkNumericLength(theForm.CellPhone1, "\"Cell Phone 1\"", 3, true) && 
		checkNumericLength(theForm.CellPhone2, "\"Cell Phone 2\"", 3, true) && 
		checkNumericLength(theForm.CellPhone3, "\"Cell Phone 3\"", 4, true) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) )
	);
}

function ValidatePersonalInfo3(theForm)
{
	submitFlag=1;
	return (
		checkEmail(theForm.Email, false) && 
		checkString(theForm.Firstname, "\"First Name\"", false) && 
		checkString(theForm.Lastname, "\"Last Name\"", false) && 
		checkString(theForm.Address, "\"Address\"", false) && 
		checkCity(theForm.City, "\"City\"", false) && 
		checkDropdown(theForm.State, "\"State\"", false) && 
		checkZIPCode(theForm.Zip ,false) && 
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) && 
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) && 
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) && 
		checkNumericLength(theForm.CellPhone1, "\"Cell Phone 1\"", 3, true) && 
		checkNumericLength(theForm.CellPhone2, "\"Cell Phone 2\"", 3, true) && 
		checkNumericLength(theForm.CellPhone3, "\"Cell Phone 3\"", 4, true) 
	);
}

function ValidatePersonalInfo4(theForm)
{
	submitFlag=1;
	return (
		checkString(theForm.Firstname, "\"First Name\"", false) &&
		checkString(theForm.Lastname, "\"Last Name\"", false) &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkEmail(theForm.Email, false)  &&
		checkZIPCode(theForm.Zip ,false) &&
		checkString(theForm.bdaydate, "\"BirthDay\"", false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"",false)
	);
}

function validateEmploymentFinancialReference(theForm)
{
	return (
		checkDropdown(theForm.EmploymentStatus, "\"Income Source\"", false) &&
		checkEmployerName(theForm.Employer, "\"Employer Name\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.PayPeriod, "\"Paycheck Frequency\"",false) &&
		checkDropdown(theForm.EmpYears, "\"Employment Years\"",false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Income\"",false) &&
		checkDropdown(theForm.DirectDeposit, "\"Direct Deposit\"",false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		( theForm.elements['refname'] == null || checkPersonName(theForm.refname, "\"Reference Name\"", false) ) &&
		( theForm.elements['refphone1'] == null || checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) ) && 
		( theForm.elements['refphone2'] == null || checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) ) && 
		( theForm.elements['refphone3'] == null || checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) ) &&
		( theForm.elements['ReferenceRelation'] == null || checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) ) &&
		( theForm.elements['ref2name'] == null || checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) ) &&
		( theForm.elements['ref2phone1'] == null || checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) ) && 
		( theForm.elements['ref2phone2'] == null || checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) ) && 
		( theForm.elements['ref2phone3'] == null || checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) ) && 
		( theForm.elements['Reference2Relation'] == null || checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) )
	);
}

function validateEmploymentFinancialReference2(theForm)
{
	return ( 
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) && 
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) && 
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) && 
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) && 
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) &&  
		( theForm.elements['refname'] == null || checkPersonName(theForm.refname, "\"Reference Name\"", false) ) && 
		( theForm.elements['refphone1'] == null || checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) ) && 
		( theForm.elements['refphone2'] == null || checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) ) && 
		( theForm.elements['refphone3'] == null || checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) ) && 
		( theForm.elements['ReferenceRelation'] == null || checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) ) && 
		( theForm.elements['ref2name'] == null || checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) ) && 
		( theForm.elements['ref2phone1'] == null || checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) ) && 
		( theForm.elements['ref2phone2'] == null || checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) ) && 
		( theForm.elements['ref2phone3'] == null || checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) ) && 
		( theForm.elements['Reference2Relation'] == null || checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) ) && 
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"",false) 
	);
}

function validateEmploymentFinancialReference3(theForm)
{
	return (
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		( theForm.elements['BirthMonth'] == null || checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) ) &&
		( theForm.elements['BirthDay'] == null || checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) ) &&
		( theForm.elements['BirthYear'] == null || checkDropdown(theForm.BirthYear, "\"Birth Year\"", false) ) && 
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) && 
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) && 
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) && 
		checkDropdown(theForm.EmploymentStatus, "\"Income Source\"", false) && 
		checkEmployerName(theForm.Employer, "\"Employer Name\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.PayPeriod, "\"Paycheck Frequency\"",false) &&
		checkDropdown(theForm.EmpYears, "\"Employment Years\"",false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Income\"",false) &&
		checkDropdown(theForm.DirectDeposit, "\"Direct Deposit\"",false) &&
		checkDropdown(theForm.IsMilitary, "\"Are you a member of the Armed Services\"", false) &&
		( theForm.elements['refname'] == null || checkPersonName(theForm.refname, "\"Reference Name\"", false) ) &&
		( theForm.elements['refphone1'] == null || checkAreaCode(theForm.refphone1, "\"Reference Phone 1\"", false) ) && 
		( theForm.elements['refphone2'] == null || checkNumericLength(theForm.refphone2, "\"Reference Phone 2\"", 3, false) ) && 
		( theForm.elements['refphone3'] == null || checkNumericLength(theForm.refphone3, "\"Reference Phone 3\"", 4, false) ) &&
		( theForm.elements['ReferenceRelation'] == null || checkDropdown(theForm.ReferenceRelation, "\"Reference 1 Relation\"", false) ) &&
		( theForm.elements['ref2name'] == null || checkPersonName(theForm.ref2name, "\"Reference 2 Name\"", false) ) &&
		( theForm.elements['ref2phone1'] == null || checkAreaCode(theForm.ref2phone1, "\"Reference 2 Phone 1\"", false) ) && 
		( theForm.elements['ref2phone2'] == null || checkNumericLength(theForm.ref2phone2, "\"Reference 2 Phone 2\"", 3, false) ) && 
		( theForm.elements['ref2phone3'] == null || checkNumericLength(theForm.ref2phone3, "\"Reference 2 Phone 3\"", 4, false) ) && 
		( theForm.elements['Reference2Relation'] == null || checkDropdown(theForm.Reference2Relation, "\"Reference 2 Relation\"", false) )
	);
}

function validateEmploymentFinancialReference4(theForm)
{
	return ( 
		checkString(theForm.Address, "\"Address\"", false) &&
		checkString(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip, false) &&
		checkResidence(theForm.home, theForm.resother, "\"Current Residential Status\"") &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) && 
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) && 
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) && 
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) && 
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) && 
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) && 
		checkDropdown(theForm.EmploymentStatus, "\"Primary Income Source\"", false) &&
		checkEmployerName(theForm.Employer, "\"Employer Name\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkDropdown(theForm.EmpYears, "\"Employment Years\"",false) &&
		checkDropdown(theForm.PayPeriod, "\"Paycheck Frequency\"",false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Income\"",false) &&
		checkDropdown(theForm.DirectDeposit, "\"Direct Deposit\"",false) &&
		( theForm.elements['DriversLicenseNumber'] == null || checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) ) &&
		( theForm.elements['DriversLicenseState'] == null || checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) ) 		
	);
}

function validateEmploymentFinancialReference5(theForm)
{
	return ( 
		checkDropdown(theForm.EmploymentStatus, "\"Primary Income Source\"", false) &&
		checkEmployerName(theForm.Employer, "\"Employer Name\"", false) &&
		checkAreaCode(theForm.EmployerPhone1, "\"Employer Phone 1\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone2, "\"Employer Phone 2\"", 3, false) && 
		checkNumericLength(theForm.EmployerPhone3, "\"Employer Phone 3\"", 4, false) &&
		checkString(theForm.empcity, "\"Employer City\"", false) &&
		checkDropdown(theForm.empstate, "\"Employer State\"", false) &&
		checkZIPCode(theForm.empzip ,false) &&
		checkDropdown(theForm.PayPeriod, "\"Paycheck Frequency\"",false) && 
		checkDropdown(theForm.EmpYears, "\"Employment Years\"",false) &&
		checkDropdown(theForm.MonthlyIncome, "\"Monthly Income\"",false) &&
		checkDropdown(theForm.DirectDeposit, "\"Direct Deposit\"",false) &&
		checkWeekday(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value,
			"\"Next Pay Day\"", false) &&
		checkNextPayDate(theForm.pd1d, theForm.pd1m.options[theForm.pd1m.selectedIndex].value,
			theForm.pd1d.options[theForm.pd1d.selectedIndex].value, 
			theForm.pd1y.options[theForm.pd1y.selectedIndex].value, 7, false) &&
		checkNonNumeric(theForm.bankname, "\"Bank name\"", false) &&
		checkAreaCode(theForm.bankphone1, "\"Bank Phone 1\"", false) && 
		checkNumericLength(theForm.bankphone2, "\"Bank Phone 2\"", 3, false) && 
		checkNumericLength(theForm.bankphone3, "\"Bank Phone 3\"", 4, false) && 
		checkDropdown(theForm.AccountType, "\"Type of Bank Account(s)\"", false) &&
		checkABA(theForm.routing, "\"ABA Routing Number ?\"", false) &&
		checkNumeric(theForm.checkingacctnumber, "\"Checking or Savings Account Number\" (Numbers only)", false) &&
		checkNumericLength(theForm.socialsecurity1, "\"SSN 1\"", 3, false) && 
		checkNumericLength(theForm.socialsecurity2, "\"SSN 2\"", 2, false) && 
		checkNumericLength(theForm.socialsecurity3, "\"SSN 3\"", 4, false) 	
	);
}

function ValidateFormFrontNoSSN2(theForm)
{
	submitFlag=1;
	return (
		checkPersonName(theForm.Firstname, "\"First Name\"", false) &&
		checkPersonName(theForm.Lastname, "\"Last Name\"", false) &&
		checkString(theForm.Address, "\"Address\"", false) &&
		checkString(theForm.City, "\"City\"", false) &&
		checkDropdown(theForm.State, "\"State\"", false) &&
		checkZIPCode(theForm.Zip ,false) &&
		checkResidence(theForm.home, theForm.resother, "\"Do you own or rent?\"") &&
		checkEmail(theForm.Email, false)  &&
		checkAreaCode(theForm.HomePhone1, "\"Home Phone 1\"", 3, false) &&
		checkNumericLength(theForm.HomePhone2, "\"Home Phone 2\"", 3, false) &&
		checkNumericLength(theForm.HomePhone3, "\"Home Phone 3\"", 4, false) &&
		checkNumericLength(theForm.CellPhone1, "\"Cell Phone 1\"", 3, true) && 
		checkNumericLength(theForm.CellPhone2, "\"Cell Phone 2\"", 3, true) && 
		checkNumericLength(theForm.CellPhone3, "\"Cell Phone 3\"", 4, true) &&
		checkString(theForm.DriversLicenseNumber, "\"Drivers License Number or State ID\"", false) &&
		checkDropdown(theForm.DriversLicenseState, "\"Drivers Licence State\"", false) &&
		checkDropdown(theForm.BirthMonth, "\"Birth Month\"", false) &&
		checkDropdown(theForm.BirthDay, "\"Birth Day\"", false) &&
		checkDropdown(theForm.BirthYear, "\"Birth Year\"", false)
	);
}
