//case sensitive field names must match form field names //checkboxes have been commented Validate('Card_Applying_For', 'Please enter the type of Card your are applying for'); Validate('Applicant_FirstName', 'Please enter your First Name'); Validate('Applicant_LastName', 'Please enter your Last Name'); Validate('Applicant_Address', 'Please enter your Address'); Validate('Applicant_City', 'Please enter your City'); Validate('Applicant_State', 'Please enter your State'); Validate('Applicant_ZipCode', 'Please enter your Zip Code'); Validate('Applicant_HomePhone', 'Please enter your Home Phone'); Validate('Applicant_MonthlyPayment', 'Please enter your monthly payment'); Validate('Applicant_RentorOwn', 'Please enter if you Rent or Own your current address'); Validate('Applicant_SocialSecurityNumber', 'Please enter your Social Security Number'); Validate('Applicant_DateofBirth', 'Please enter your Date of Birth'); Validate('Applicant_Employer', 'Please enter your Employer'); Validate('Applicant_YearswithCurrentEmployer', 'Please enter your Years with Current Employer'); Validate('Applicant_Grossmonthlyincome', 'Please enter your Gross monthly income'); Validate('Acceptance', 'Please select the Credit Check Acceptance Disclosure. I/We authorize Dryades Savings Bank, F.S.B. to retrieve a copy of my/our credit file from one of the credit reporting agencies.'); function Co_Borrower_Check(frm){ if (frm.Applicant_PreviousAddress.value!='' ){ //Validate('Applicant_PreviousAddress', 'Please enter your previous address'); Validate('Applicant_PreviousCity', 'Please enter your previous city'); Validate('Applicant_PreviousState', 'Please enter your previous state'); Validate('Applicant_PreviousZipCode', 'Please enter your previuos Zip code'); } if (frm.Co_Applicant_FirstName.value!='' ){ setDefaults(frm); Validate('Co_Applicant_FirstName', 'Please enter your First Name (Co-Borrower)'); Validate('Co_Applicant_LastName', 'Please enter your Last Name (Co-Borrower)'); Validate('Co_Applicant_Address', 'Please enter your Address (Co-Borrower)'); Validate('Co_Applicant_City', 'Please enter your City (Co-Borrower)'); Validate('Co_Applicant_State', 'Please enter your State (Co-Borrower)'); Validate('Co_Applicant_ZipCode', 'Please enter your Zip Code (Co-Borrower)'); Validate('Co_Applicant_HomePhone', 'Please enter your Home Phone (Co-Borrower)'); Validate('Co_Applicant_MonthlyPayment', 'Please enter your Monthly Payment (Co-Borrower)'); Validate('Co_Applicant_SocialSecurityNumber', 'Please enter your Social Security Number(Co-Borrower)'); Validate('Co_Applicant_DateofBirth', 'Please enter your Date of Birth(Co-Borrower)'); Validate('Co_Applicant_Grossmonthlyincome', 'Please enter your Gross monthly income(Co-Borrower)'); } return Check(frm); } function setDefaults(frm){ //(default to Borrower's address) if (frm.Co_Applicant_Address.value=='') frm.Co_Applicant_Address.value = frm.Applicant_Address.value; if (frm.Co_Applicant_City.value=='') frm.Co_Applicant_City.value = frm.Applicant_City.value; if (frm.Co_Applicant_State.value=='') frm.Co_Applicant_State.value = frm.Applicant_State.value; if (frm.Co_Applicant_ZipCode.value=='') frm.Co_Applicant_ZipCode.value = frm.Applicant_ZipCode.value; if (frm.Co_Applicant_HomePhone.value=='') frm.Co_Applicant_HomePhone.value = frm.Applicant_HomePhone.value; //if (frm.Co_Applicant_WorkPhone.value=='') frm.Co_Applicant_WorkPhone.value = frm.Applicant_WorkPhone.value; //if (frm.Co_Applicant_MonthlyPayment.value=='') frm.Co_Applicant_MonthlyPayment = frm.Applicant_MonthlyPayment.value; if (frm.Co_Applicant_RentorOwn.value=='') frm.Co_Applicant_RentorOwn.value = frm.Applicant_RentorOwn.value; if (frm.Co_Applicant_PreviousAddress.value=='') frm.Co_Applicant_PreviousAddress.value = frm.Applicant_PreviousAddress.value; if (frm.Co_Applicant_PreviousCity.value=='') frm.Co_Applicant_PreviousCity.value = frm.Applicant_PreviousCity.value; if (frm.Co_Applicant_PreviousState.value=='') frm.Co_Applicant_PreviousState.value = frm.Applicant_PreviousState.value; if (frm.Co_Applicant_PreviousZipCode.value=='') frm.Co_Applicant_PreviousZipCode.value = frm.Applicant_PreviousZipCode.value; }