function doValidation1a(theForm)
{

/** The following code was added by GREY MATTER.**********************/

	/*Allows only valid Zip*/
	if (!checkZip (theForm)) {
		return false;
	}
}

function CreditCheckValidation(theForm)
{
	if(!theForm.AuthCreditCheck.checked){
		alert("You must authorize a credit check to submit this application!");
		return(false);
	}
}

function doValidation1b(theForm)
{
    var checkStr=theForm.firstname.value;
	if (checkStr == null || checkStr == "" || isNaN(checkStr)==false) {
		alert("Please enter a valid first name.");
		theForm.firstname.focus();
		return (false);
	}
	
	checkStr=theForm.lastname.value;
	if (checkStr == null || checkStr == "" || isNaN(checkStr)==false) {
		alert("Please enter a valid last name.");
		theForm.lastname.focus();
		return (false);
	}

/*  Allows only valid Email address.*/

		checkStr=theForm.email.value;
		if(checkStr=="" || checkStr.lastIndexOf("@")==-1 || checkStr.lastIndexOf(".")==-1)
		{
		alert("Please enter a valid Email address");
		theForm.email.focus();
		return false;
		}
	
		var emailArr=checkStr.split("@");
		var user = new String( emailArr[0] );
		var domainAddress = new String( emailArr[1] );
		var domainAddressArr = domainAddress.split(".");
		var domain = new String( domainAddressArr[0] );
		var net = new String( domainAddressArr[1] );
		
		if(user.length==0)
		{
		alert("Please enter a valid Email address.");
		theForm.email.focus();
		return false;	
		}
		if(domain.length==0)
		{
		alert("Please enter a valid Email address.");
		theForm.email.focus();
		return false;
		}
		if(net.length==0)
		{
		alert("Please enter a valid Email address.");
		theForm.email.focus();
		return false;
		}

	if (!checkEmptyField (theForm.city, "Please enter a valid city.")) {
		return false;
	}

	if (!checkEmptyField (theForm.address, "Please enter a valid address.")) {
		return false;
	}
	
		var objRegExp = /(^\d{5}$)/;

	//check for valid US Zipcode
	if (!objRegExp.test(theForm.zip.value)) {
		alert("Please enter a valid zip.");
		theForm.zip.focus();
		return false;
	}

	
	/*  Allows only valid State*/
	checkStr = theForm.state[ theForm.state.selectedIndex ].value;
	if (checkStr == null || checkStr == "") {
		alert("Please select a state.");
		theForm.state.focus();
		return (false);
	}

	checkStr=theForm.ssn.value;
	if (checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=9) {
		alert("Please enter your social security number.");
		theForm.ssn.focus();
		return (false);
	}
	
		//check each digit
    var iSSN, charSSN

    for(iSSN=0;iSSN<9;iSSN++) {
		charSSN= checkStr.charAt(iSSN);                      

		if( isNaN(charSSN) || charSSN == " " ) {
			alert("Please enter your social security number.");
			theForm.ssn.focus();
			return (false);

		}

	}

/* Allows only valid HomeAreaCode(only numeric values) */

		checkStr=theForm.areacode1.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=3){
		alert("Please enter valid AreaCode (Numeric only)");
		theForm.areacode1.focus();		
		return(false);
		}
/* Allows only valid HomePrefix(only numeric values)*/
   
		checkStr=theForm.prefix1.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=3){
		alert("Please enter valid Prefix(Numeric only)");
		theForm.prefix1.focus();		
		return(false);
		}
	
/* Allows only valid HomeNumber(only numeric values) */

		checkStr=theForm.phone1.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=4){
		alert("Please enter valid Phone Number (Numeric only)");
		theForm.phone1.focus();		
		return(false);
		}

/* Allows only valid AreaCode(only numeric values) */

		checkStr=theForm.areacode2.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=3){
		alert("Please enter valid AreaCode (Numeric only)");
		theForm.areacode2.focus();		
		return(false);
		}
/* Allows only valid Prefix(only numeric values)*/
   
		checkStr=theForm.prefix2.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=3){
		alert("Please enter valid Prefix(Numeric only)");
		theForm.prefix2.focus();		
		return(false);
		}
	
/* Allows only valid Number(only numeric values) */

		checkStr=theForm.phone2.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=4){
		alert("Please enter valid Phone Number (Numeric only)");
		theForm.phone2.focus();		
		return(false);
		}



	if (!checkEmptyField (theForm.bMonth, "Please select the month of your birthday.")) {
		return false;
	}
	if (!checkEmptyField (theForm.bDay, "Please select the day of your birthday.")) {
		return false;
	}
	if (!checkEmptyField (theForm.bYear, "Please select the year of your birthday.")) {
		return false;
	}

	if (!checkEmptyField (theForm.employer, "Please enter the name of your employer.")) {
		return false;
	}

	var re = new RegExp (',', 'gi') ;
	checkStr=theForm.monthlyhomepayment.value;
	checkStr = checkStr.replace(re, '') ;
	if (checkStr == null || checkStr == "" || isNaN(checkStr)) {
		alert("Please enter your monthly mortgage/rent.");
		theForm.monthlyhomepayment.focus();
		return (false);
	}

	if (!checkEmptyField (theForm.occupation, "Please enter the name of your occupation.")) {
		return false;
	}
	
	checkStr=theForm.monthlyincome.value;
	checkStr = checkStr.replace(re, '') ;

	if (checkStr == null || checkStr == "" || isNaN(checkStr)) {
		alert("Please enter your monthly income.");
		theForm.monthlyincome.focus();
		return (false);
	}
	if(checkStr<2000){
		alert("Your monthly income before taxes must be at least $2,000 to qualify.");
		theForm.monthlyincome.focus();
		return (false);
	}


	checkStr = theForm.ratecredit[ theForm.ratecredit.selectedIndex ].value;
	if (checkStr == null || checkStr == "") {
		alert("Please select your credit rating.");
		theForm.ratecredit.focus();
		return (false);		
	}

	checkStr = theForm.OwnHome[ theForm.OwnHome.selectedIndex ].value;
	if (checkStr == null || checkStr == "") {
		alert("Please enter a valid Own or Rent selection.");
		theForm.OwnHome.focus();
		return (false);		
	}

	//checks credit check authorization
	if(!theForm.AuthCreditCheck.checked){
		alert("You must authorize a credit check to submit this application!");
		return(false);
	}

	//checks elegibility
	cosigner = theForm.Cosigner.checked;
	stateVal = theForm.state[ theForm.state.selectedIndex ].value
    return (true);
}


function doValidation1c(theForm)
{
    var checkStr=theForm.firstname.value;
	if (checkStr == null || checkStr == "" || isNaN(checkStr)==false) {
		alert("Please enter a valid first name.");
		theForm.firstname.focus();
		return (false);
	}
	
	checkStr=theForm.lastname.value;
	if (checkStr == null || checkStr == "" || isNaN(checkStr)==false) {
		alert("Please enter a valid last name.");
		theForm.lastname.focus();
		return (false);
	}

/*  Allows only valid Email address.*/

		checkStr=theForm.email.value;
		if(checkStr=="" || checkStr.lastIndexOf("@")==-1 || checkStr.lastIndexOf(".")==-1)
		{
		alert("Please enter a valid Email address");
		theForm.email.focus();
		return false;
		}
	
		var emailArr=checkStr.split("@");
		var user = new String( emailArr[0] );
		var domainAddress = new String( emailArr[1] );
		var domainAddressArr = domainAddress.split(".");
		var domain = new String( domainAddressArr[0] );
		var net = new String( domainAddressArr[1] );
		
		if(user.length==0)
		{
		alert("Please enter a valid Email address.");
		theForm.email.focus();
		return false;	
		}
		if(domain.length==0)
		{
		alert("Please enter a valid Email address.");
		theForm.email.focus();
		return false;
		}
		if(net.length==0)
		{
		alert("Please enter a valid Email address.");
		theForm.email.focus();
		return false;
		}

	if (!checkEmptyField (theForm.city, "Please enter a valid city.")) {
		return false;
	}

	if (!checkEmptyField (theForm.address, "Please enter a valid address.")) {
		return false;
	}
	
		var objRegExp = /(^\d{5}$)/;

	//check for valid US Zipcode
	if (!objRegExp.test(theForm.zip.value)) {
		alert("Please enter a valid zip.");
		theForm.zip.focus();
		return false;
	}

	
	/*  Allows only valid State*/
	checkStr = theForm.state[ theForm.state.selectedIndex ].value;
	if (checkStr == null || checkStr == "") {
		alert("Please select a state.");
		theForm.state.focus();
		return (false);
	}


/* Allows only valid HomeAreaCode(only numeric values) */

		checkStr=theForm.areacode1.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=3){
		alert("Please enter valid AreaCode (Numeric only)");
		theForm.areacode1.focus();		
		return(false);
		}
/* Allows only valid HomePrefix(only numeric values)*/
   
		checkStr=theForm.prefix1.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=3){
		alert("Please enter valid Prefix(Numeric only)");
		theForm.prefix1.focus();		
		return(false);
		}
	
/* Allows only valid HomeNumber(only numeric values) */

		checkStr=theForm.phone1.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=4){
		alert("Please enter valid Phone Number (Numeric only)");
		theForm.phone1.focus();		
		return(false);
		}

/* Allows only valid AreaCode(only numeric values) */

		checkStr=theForm.areacode2.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=3){
		alert("Please enter valid AreaCode (Numeric only)");
		theForm.areacode2.focus();		
		return(false);
		}
/* Allows only valid Prefix(only numeric values)*/
   
		checkStr=theForm.prefix2.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=3){
		alert("Please enter valid Prefix(Numeric only)");
		theForm.prefix2.focus();		
		return(false);
		}
	
/* Allows only valid Number(only numeric values) */

		checkStr=theForm.phone2.value;
		if(checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=4){
		alert("Please enter valid Phone Number (Numeric only)");
		theForm.phone2.focus();		
		return(false);
		}


	if (!checkEmptyField (theForm.employer, "Please enter the name of your employer.")) {
		return false;
	}

	var re = new RegExp (',', 'gi') ;
	checkStr=theForm.monthlyhomepayment.value;
	checkStr = checkStr.replace(re, '') ;
	if (checkStr == null || checkStr == "" || isNaN(checkStr)) {
		alert("Please enter your monthly mortgage/rent.");
		theForm.monthlyhomepayment.focus();
		return (false);
	}

	if (!checkEmptyField (theForm.occupation, "Please enter the name of your occupation.")) {
		return false;
	}
	
	checkStr=theForm.monthlyincome.value;
	checkStr = checkStr.replace(re, '') ;

	if (checkStr == null || checkStr == "" || isNaN(checkStr)) {
		alert("Please enter your monthly income.");
		theForm.monthlyincome.focus();
		return (false);
	}
	if(checkStr<2000){
		alert("Your monthly income before taxes must be at least $2,000 to qualify.");
		theForm.monthlyincome.focus();
		return (false);
	}


	checkStr = theForm.ratecredit[ theForm.ratecredit.selectedIndex ].value;
	if (checkStr == null || checkStr == "") {
		alert("Please select your credit rating.");
		theForm.ratecredit.focus();
		return (false);		
	}

	checkStr = theForm.OwnHome[ theForm.OwnHome.selectedIndex ].value;
	if (checkStr == null || checkStr == "") {
		alert("Please enter a valid Own or Rent selection.");
		theForm.OwnHome.focus();
		return (false);		
	}
	
		checkStr=theForm.ssn.value;
	if (checkStr == null || checkStr == "" || isNaN(checkStr) || checkStr.length!=9) {
		alert("Please enter your social security number.");
		theForm.ssn.focus();
		return (false);
	}
	
		//check each digit
    var iSSN, charSSN

    for(iSSN=0;iSSN<9;iSSN++) {
		charSSN= checkStr.charAt(iSSN);                      

		if( isNaN(charSSN) || charSSN == " " ) {
			alert("Please enter your social security number.");
			theForm.ssn.focus();
			return (false);

		}

	}
	
	if (!checkEmptyField (theForm.bMonth, "Please select the month of your birthday.")) {
		return false;
	}
	if (!checkEmptyField (theForm.bDay, "Please select the day of your birthday.")) {
		return false;
	}
	if (!checkEmptyField (theForm.bYear, "Please select the year of your birthday.")) {
		return false;
	}

	//checks credit check authorization
	if(!theForm.AuthCreditCheck.checked){
		alert("You must authorize a credit check to submit this application!");
		return(false);
	}

	//checks elegibility
	cosigner = theForm.Cosigner.checked;
	stateVal = theForm.state[ theForm.state.selectedIndex ].value
    return (true);
}


function checkEmptyField (fieldObj, message)
{
	var checkStr=fieldObj.value;

	if(checkStr == null || checkStr == "" ||  checkStr=="Choose") {
		alert(message);
		fieldObj.focus();
		return false;
	}
	return true;
}

function checkZip (theForm)
{
	var objRegExp = /(^\d{5}$)/;

	//check for valid US Zipcode
	if (!objRegExp.test(theForm.zip.value)) {
		alert("Please enter a valid zip.");
		theForm.zip.focus();
		return false;
	}

	return true;
}

function doValidation(theForm){
	var valid;
	valid = true;
	for(i=0;i<theForm.length;i++){
		if (theForm.elements[i].type.toLowerCase() != "hidden"){//eleminate javascript error when trying to set focus to a field that is hidden
			switch(theForm.elements[i].name.toLowerCase()){
				case "firstname":				
					valid = valid && CheckText(theForm.elements[i], false, "First Name") 
					break;
				case "lastname":
					valid = valid && CheckText(theForm.elements[i], false, "Last Name") 
					break;
				case "email":
					valid = valid && CheckEmail(theForm.elements[i], false, "Email") 
					break;
				case "address":
					valid = valid && CheckText(theForm.elements[i], false, "Address") 
					break;
				case "city":
					valid = valid && CheckText(theForm.elements[i], false, "City") 
					break;
				case "zip":
					valid = valid && CheckZip(theForm.elements[i], false, "ZIP Code") 		
					break;
				case "state":
					valid = valid && CheckSelect(theForm.elements[i], false, "State") 
					break;
				case "ssn":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Social Security Number", 9) 
					break;	
				case "homeareacode": case "homephone1": case "areacode1":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Home Phone Area Code", 3) 
					break;
				case "homeprefix": case "homephone2": case "prefix1":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Home Phone Prefix", 3) 
					break;
				case "homenumber": case "homephone3": case "phone1":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Home Phone Number", 4) 
					break;
				case "eveareacode": case "workphone1": case "areacode2":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Work Phone Area Code", 3) 
					break;
				case "eveprefix": case "workphone2": case "prefix2":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Work Phone Prefix", 3) 
					break;
				case "evenumber": case "workphone3": case "phone2":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Work Phone Number", 4) 
					break;
				case "bmonth":
					valid = valid && CheckSelect(theForm.elements[i], false, "The Month Of Your Birthday") 	
					break;
				case "bday":
					valid = valid && CheckSelect(theForm.elements[i], false, "The Day Of Your Birthday") 	
					break;
				case "byear":
					valid = valid && CheckSelect(theForm.elements[i], false, "The Year Of Your Birthday") 	
					break;
				case "employer":
					valid = valid && CheckText(theForm.elements[i], false, "Employer Name") 
					break;
				case "monthlyhomepayment":
					valid = valid && CheckNumeric(theForm.elements[i], false, "Rent/Mortgage Amount") 
					break;
				case "timeatresidence":
					valid = valid && CheckSelect(theForm.elements[i], false, "Time At Residence") 	
					break;
				case "home": case "ownhome":
					valid = valid && CheckSelect(theForm.elements[i], false, "Selection for Own or Rent") 
					break;
				case "occupation":
					valid = valid && CheckText(theForm.elements[i], false, "Occupation") 
					break;
				case "timeatjob":
					valid = valid && CheckSelect(theForm.elements[i], false, "Time At Job") 	
					break;
				case "monthlyincome":
					valid = valid && CheckMonthlyIncome(theForm.elements[i], false, "Gross Monthly Income", 2000) 
					break;
				case "ratecredit":
					valid = valid && CheckSelect(theForm.elements[i], false, "Credit Rating") 
					break;
				case "authcreditcheck":
					if(theForm.elements[i].checked==false) {
						alert("You must authorize a credit check to submit this application!");
						theForm.elements[i].focus();
						valid = false;
					}				
					break;			
			}	// end switch
		}
		if (!valid)
			break;	
	}	// end for loop
	return valid;
}// end function

function contact_validation(theForm){
	var valid;
	valid = true;
	for(i=0;i<theForm.length;i++){
		if (theForm.elements[i].type.toLowerCase() != "hidden"){//eleminate javascript error when trying to set focus to a field that is hidden
			switch(theForm.elements[i].name.toLowerCase()){
				case "firstname":				
					valid = valid && CheckText(theForm.elements[i], false, "First Name") 
					break;
				case "lastname":
					valid = valid && CheckText(theForm.elements[i], false, "Last Name") 
					break;
				case "email":
					valid = valid && CheckEmail(theForm.elements[i], false, "Email") 
					break;
				case "address":
					valid = valid && CheckText(theForm.elements[i], false, "Address") 
					break;
				case "city":
					valid = valid && CheckText(theForm.elements[i], false, "City") 
					break;
				case "zip":
					valid = valid && CheckZip(theForm.elements[i], false, "ZIP Code") 		
					break;
				case "state":
					valid = valid && CheckSelect(theForm.elements[i], false, "State") 
					break;
				case "homeareacode": case "homephone1": case "areacode1":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Home Phone Area Code", 3) 
					break;
				case "homeprefix": case "homephone2": case "prefix1":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Home Phone Prefix", 3) 
					break;
				case "homenumber": case "homephone3": case "phone1":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Home Phone Number", 4) 
					break;
				case "eveareacode": case "workphone1": case "areacode2":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Work Phone Area Code", 3) 
					break;
				case "eveprefix": case "workphone2": case "prefix2":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Work Phone Prefix", 3) 
					break;
				case "evenumber": case "workphone3": case "phone2":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Work Phone Number", 4) 
					break;		
			}	// end switch
		}
		if (!valid)
			break;	
	}	// end for loop
	return valid;
}// end function

function contact_validation2(theForm){
	var valid;
	valid = true;
	for(i=0;i<theForm.length;i++){
		if (theForm.elements[i].type.toLowerCase() != "hidden"){//eleminate javascript error when trying to set focus to a field that is hidden
			switch(theForm.elements[i].name.toLowerCase()){
				case "firstname":				
					valid = valid && CheckText(theForm.elements[i], false, "First Name") 
					break;
				case "lastname":
					valid = valid && CheckText(theForm.elements[i], false, "Last Name") 
					break;
				case "email":
					valid = valid && CheckEmail(theForm.elements[i], false, "Email") 
					break;
				case "address":
					valid = valid && CheckText(theForm.elements[i], false, "Address") 
					break;
				case "city":
					valid = valid && CheckText(theForm.elements[i], false, "City") 
					break;
				case "zip":
					valid = valid && CheckZip(theForm.elements[i], false, "ZIP Code") 		
					break;
				case "state":
					valid = valid && CheckSelect(theForm.elements[i], false, "State") 
					break;
				case "homeareacode": case "homephone1": case "areacode1":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Home Phone Area Code", 3) 
					break;
				case "homeprefix": case "homephone2": case "prefix1":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Home Phone Prefix", 3) 
					break;
				case "homenumber": case "homephone3": case "phone1":
					valid = valid && CheckUnsignedInteger(theForm.elements[i], false, "Home Phone Number", 4) 
					break;	
			}	// end switch
		}
		if (!valid)
			break;	
	}	// end for loop
	return valid;
}// end function


function doValidationSpanish(theForm)
{
	var valid;
	valid = true;
	for(i=0;i<theForm.length;i++){
		if (theForm.elements[i].type.toLowerCase() != "hidden"){//eleminate javascript error when trying to set focus to a field that is hidden
			switch(theForm.elements[i].name.toLowerCase()){
				case "firstname":				
					valid = valid && CheckTextSpanish(theForm.elements[i], false, "Por favor ingrese su nombre") 
					break;
				case "lastname":
					valid = valid && CheckTextSpanish(theForm.elements[i], false, "Por favor ingrese su apellido") 
					break;
				case "email":
					valid = valid && CheckEmailSpanish(theForm.elements[i], false, "Por favor ingrese su email correctamente") 
					break;
				case "address":
					valid = valid && CheckTextSpanish(theForm.elements[i], false, "Por favor ingrese su dirección correctamente") 
					break;
				case "city":
					valid = valid && CheckTextSpanish(theForm.elements[i], false, "Por favor ingrese ciudad") 
					break;
				case "zip":
					valid = valid && CheckZipSpanish(theForm.elements[i], false, "Por favor ingrese su código postal") 		
					break;
				case "state":
					valid = valid && CheckSelectSpanish(theForm.elements[i], false, "Por favor seleccione su estado") 
					break;
				case "ssn":
					valid = valid && CheckUnsignedIntegerSpanish(theForm.elements[i], false, "Por favor ingrese su número de seguro social", 9) 
					break;	
				case "homeareacode": case "homephone1": case "areacode1":
					valid = valid && CheckUnsignedIntegerSpanish(theForm.elements[i], false, "Por favor ingrese su código de área correctamente", 3) 
					break;
				case "homeprefix": case "homephone2": case "prefix1":
					valid = valid && CheckUnsignedIntegerSpanish(theForm.elements[i], false, "Por favor ingrese su teléfono correctamente (números solamente)", 3) 
					break;
				case "homenumber": case "homephone3": case "phone1":
					valid = valid && CheckUnsignedIntegerSpanish(theForm.elements[i], false, "Por favor ingrese su teléfono correctamente (números solamente)", 4) 
					break;
				case "eveareacode": case "workphone1": case "areacode2":
					valid = valid && CheckUnsignedIntegerSpanish(theForm.elements[i], false, "Por favor ingrese su código de área correctamente", 3) 
					break;
				case "eveprefix": case "workphone2": case "prefix2":
					valid = valid && CheckUnsignedIntegerSpanish(theForm.elements[i], false, "Por favor ingrese su teléfono correctamente (números solamente)", 3) 
					break;
				case "evenumber": case "workphone3": case "phone2":
					valid = valid && CheckUnsignedIntegerSpanish(theForm.elements[i], false, "Por favor ingrese su teléfono correctamente (números solamente)", 4) 
					break;
				case "bmonth":
					valid = valid && CheckSelectSpanish(theForm.elements[i], false, "Por favor ingrese su día de nacimiento") 	
					break;
				case "bday":
					valid = valid && CheckSelectSpanish(theForm.elements[i], false, "Por favor ingrese su mes de nacimiento") 	
					break;
				case "byear":
					valid = valid && CheckSelectSpanish(theForm.elements[i], false, "Por favor ingrese su año de nacimiento") 	
					break;
				case "employer":
					valid = valid && CheckTextSpanish(theForm.elements[i], false, "Por favor ingrese su el nombre de su empleador") 
					break;
				case "monthlyhomepayment":
					valid = valid && CheckNumericSpanish(theForm.elements[i], false, "Por favor ingrese sus costos de alquiler o hipoteca") 
					break;
				case "timeatresidence":
					valid = valid && CheckSelectSpanish(theForm.elements[i], false, "Por favor seleccione el tiempo en su residencia") 	
					break;
				case "home": case "ownhome":
					valid = valid && CheckSelectSpanish(theForm.elements[i], false, "Por favor seleccione si es propietario o si alquila") 
					break;
				case "occupation":
					valid = valid && CheckTextSpanish(theForm.elements[i], false, "Por favor ingrese su ocupación") 
					break;
				case "timeatjob":
					valid = valid && CheckSelectSpanish(theForm.elements[i], false, "Por favor seleccione el tiempo en su trabajo") 	
					break;
				case "monthlyincome":
					valid = valid && CheckMonthlyIncomeSpanish(theForm.elements[i], false, "Sus ingresos mensures tienes que ser mayores de $2000 antes de impuestos para poder calificar", 2000) 
					break;
				case "ratecredit":
					valid = valid && CheckSelectSpanish(theForm.elements[i], false, "Por favor seleccione su condición de crédito") 
					break;
				case "authcreditcheck":
					if(theForm.elements[i].checked==false) {
						alert("Usted tiene que autorizar la verificación de su crédito para poder completar el formulario!");
						theForm.elements[i].focus();
						valid = false;
					}				
					break;			
			}	// end switch
		}
		if (!valid)
			break;	
	}	// end for loop
	return valid;
}