document.DataForm.onsubmit = function() {
		//return (validateForm(this) && HaveReadPrivacy(this))
	};
/**** Loan Amount ***/
document.DataForm.LoanAmount.label="Loan Amount";
document.DataForm.LoanAmount.required=true;

/**** Length of the loan ***/
document.DataForm.LoanLength.label="Length of the loan (months)";
document.DataForm.LoanLength.required=true;


/***New car or used car **/
document.DataForm.NewUsed[0].label="New Car or Used Car";
document.DataForm.NewUsed[0].required=true;

if (testIsValidObject(document.DataForm.FirstName)) {
	document.DataForm.FirstName.label="First Name";
	document.DataForm.FirstName.required=true;
	document.DataForm.FirstName.datatype="string";
}

if (testIsValidObject(document.DataForm.LastName)) {
	document.DataForm.LastName.label="Last Name";
	document.DataForm.LastName.required=true;
	document.DataForm.LastName.datatype="string";
}

if (testIsValidObject(document.DataForm.Address)) {
	document.DataForm.Address.label="Address";
	document.DataForm.Address.required=true;
	document.DataForm.Address.datatype="string";
}

if (testIsValidObject(document.DataForm.City)) {
	document.DataForm.City.label="City";
	document.DataForm.City.required=true;
	document.DataForm.City.datatype="string";
}

if (testIsValidObject(document.DataForm.State)) {
	document.DataForm.State.label="State";
	document.DataForm.State.required=true;
	document.DataForm.State.datatype="string";
}

if (testIsValidObject(document.DataForm.ContactZip)) {
	document.DataForm.ContactZip.label="Contact Zip";
	document.DataForm.ContactZip.required=true;
	document.DataForm.ContactZip.datatype="string";
}

if (testIsValidObject(document.DataForm.Email)) {
	document.DataForm.Email.label="Email";
	document.DataForm.Email.required=true;
	document.DataForm.Email.datatype="string";
}

if (testIsValidObject(document.DataForm.PhoneArea)) {
	document.DataForm.PhoneArea.label="Phone Area";
	document.DataForm.PhoneArea.required=true;
	document.DataForm.PhoneArea.datatype="string";
}

if (testIsValidObject(document.DataForm.PhoneArea)) {
	document.DataForm.PhonePrefix.label="Phone Prefix";
	document.DataForm.PhonePrefix.required=true;
	document.DataForm.PhonePrefix.datatype="string";
}

if (testIsValidObject(document.DataForm.PhoneArea)) {
	document.DataForm.PhoneSuffix.label="Phone Suffix";
	document.DataForm.PhoneSuffix.required=true;
	document.DataForm.PhoneSuffix.datatype="string";
}

/*** Residence Type***/
document.DataForm.ResidenceType.label = "Residence Type";
document.DataForm.ResidenceType.required = true;
document.DataForm.ResidenceType.datatype="string";

/*** Employer Name ***/
document.DataForm.EmployerName.label = "Employer Name";
document.DataForm.EmployerName.required = true;
document.DataForm.EmployerName.datatype = "string";
/*** Occupation ***/
document.DataForm.OCCUPATION.label = "OCCUPATION";
document.DataForm.OCCUPATION.required = true;
document.DataForm.OCCUPATION.datatype = "string";

/*** Gross Monthly Income ***/
document.DataForm.GrossMonthlyIncome.label = "Gross Monthly Income";
document.DataForm.GrossMonthlyIncome.required = true;
document.DataForm.GrossMonthlyIncome.datatype = "number";

/*** Years At Present Job ***/
document.DataForm.YearsAtJob.label = "Years At Present Job";
document.DataForm.YearsAtJob.required = true;
/*** Monthly Rent ***/
document.DataForm.MonthlyRent.label="Monthly Rent / Mortagage Payment";
document.DataForm.MonthlyRent.required=true;


/*** Months At Present Job ***/
document.DataForm.MonthsAtJob.label = "Months At Present Job";
document.DataForm.MonthsAtJob.required = true;

/*** First Part of Social Security Number ***/
document.DataForm.SocialSecurityNumberStart.label = "First Part of Social Security Number";
document.DataForm.SocialSecurityNumberStart.required = true;
document.DataForm.SocialSecurityNumberStart.datatype = "numericstring";
document.DataForm.SocialSecurityNumberStart.minlength = 3;
document.DataForm.SocialSecurityNumberStart.maxlength = 3;

/*** Second Part of Social Security Number ***/
document.DataForm.SocialSecurityNumberMid.label = "Second Part of Social Security Number";
document.DataForm.SocialSecurityNumberMid.required = true;
document.DataForm.SocialSecurityNumberMid.datatype = "numericstring";
document.DataForm.SocialSecurityNumberMid.minlength = 2;
document.DataForm.SocialSecurityNumberMid.maxlength = 2;

/*** Third Part of Social Security Number ***/
document.DataForm.SocialSecurityNumberEnd.label = "Third Part of Social Security Number";
document.DataForm.SocialSecurityNumberEnd.required = true;
document.DataForm.SocialSecurityNumberEnd.datatype = "numericstring";
document.DataForm.SocialSecurityNumberEnd.minlength = 4;
document.DataForm.SocialSecurityNumberEnd.maxlength = 4;

/*** Birth Month ***/
document.DataForm.BirthMonth.label = "Birth Month";
document.DataForm.BirthMonth.required = true;

/*** Birth Day ***/
document.DataForm.BirthDay.label = "Birth Day";
document.DataForm.BirthDay.required = true;

/*** Birth Year ***/
document.DataForm.BirthYear.label = "Birth Year";
document.DataForm.BirthYear.required = true;

/*** Employer Phone ***/
document.DataForm.EmployerPhoneArea.label="Employer Phone";
document.DataForm.EmployerPhoneArea.required=true;
document.DataForm.EmployerPhoneArea.datatype = "numericstring";
document.DataForm.EmployerPhoneArea.maxlength=3;
document.DataForm.EmployerPhoneArea.minlength=3;
document.DataForm.EmployerPhonePrefix.label="Employer Phone";
document.DataForm.EmployerPhonePrefix.required=true;
document.DataForm.EmployerPhonePrefix.datatype = "numericstring";
document.DataForm.EmployerPhonePrefix.maxlength=3;
document.DataForm.EmployerPhonePrefix.minlength=3;
document.DataForm.EmployerPhoneSuffix.label="Employer Phone";
document.DataForm.EmployerPhoneSuffix.required=true;
document.DataForm.EmployerPhoneSuffix.datatype = "numericstring";
document.DataForm.EmployerPhoneSuffix.maxlength=4;
document.DataForm.EmployerPhoneSuffix.minlength=4;
 

/*** Authorize to Check Credit ***/
/*document.DataForm.AuthorizeCreditCheck[0].label = "Authorize to Check Credit";
document.DataForm.AuthorizeCreditCheck[0].required = true;*/

/*** I have read the privacy statement ***/
//document.DataForm.HaveReadPrivacy.label = "I have read the Privacy Policy, and I authorize your partners to check my credit report.";
//document.DataForm.HaveReadPrivacy.required = true;

/*** Years At Residency ***/
document.DataForm.YearsAtResidence.label = "Years At Residence";
document.DataForm.YearsAtResidence.required = true;

/** Months At Residency ***/
document.DataForm.MonthsAtResidence.label = "Months At Residence";
document.DataForm.MonthsAtResidence.required = true;

/*** Do you? ***/
document.DataForm.ResidenceType[0].label = "Residence Type";
document.DataForm.ResidenceType[0].required = true;
 

document.DataForm.PAST_BANKRUPTCY[0].label="Declared Bankruptcy in past 7 years";
document.DataForm.PAST_BANKRUPTCY[0].required=true;

document.DataForm.COBORROWER[0].label="Cosigner Available";
document.DataForm.COBORROWER[0].required=true;

function isHaveReadPrivacy(theForm) {

	if (!(theForm.HaveReadPrivacy.checked)) {
		alert("I have read the Privacy Policy, and I authorize your partners to check my credit report.");
		return(false);
	}
	return (true);
}

function testIsValidObject(objToTest) {
	if (objToTest==null || objToTest==undefined) {
		return false;
	}
	
	return true;
}
