function checkData() 
{
        var text = "You are required to enter:"   
        var correct = true
        if (document.SubmitForm.FirstName.value == "") {correct = false; text += "\nyour name"}

        
        if (document.SubmitForm.email.value == "") {correct = false; text += "\nyour email address"}
        
        if (document.SubmitForm.SS.value == "") {correct = false; text += "\nyour social security number"}
        
        if (document.SubmitForm.Amounttofrent.value == "") {correct = false; text += "\neither your monthly rent or mortage payment."}

        if (document.SubmitForm.LoanType.value == "") {correct = false; text += "\nthe type of loan you are applying for"}

        if (document.SubmitForm.LoanType.selectedIndex == 11 || document.SubmitForm.LoanType.selectedIndex == 12) 
        {
                if (document.SubmitForm.originalbalance.value == "") {correct = false; text += "\nthe original balance"}
                if (document.SubmitForm.currentbalance.value == "") {correct = false; text += "\nthe current balance"}
                if (document.SubmitForm.monthlypayment.value == "") {correct = false; text += "\nthe monthly payment"}
                }
        
        if (document.SubmitForm.employ.value == "") {correct = false; text += "\nyour employment information"}
        
        if (document.SubmitForm.HireDate.value == "") {correct = false; text += "\nyour date of hire"}
        
        if (document.SubmitForm.MonthlySalary.value == "") {correct = false; text += "\nyour gross monthly salary"}

        if (document.SubmitForm.LoanType.selectedIndex == 0 || document.SubmitForm.LoanType.selectedIndex == 1 || document.SubmitForm.LoanType.selectedIndex == 2 || document.SubmitForm.LoanType.selectedIndex == 3 || document.SubmitForm.LoanType.selectedIndex == 4 || document.SubmitForm.LoanType.selectedIndex == 5 || document.SubmitForm.LoanType.selectedIndex == 6 || document.SubmitForm.LoanType.selectedIndex == 7 || document.SubmitForm.LoanType.selectedIndex == 8 || document.SubmitForm.LoanType.selectedIndex == 9 || document.SubmitForm.LoanType.selectedIndex == 10 || document.SubmitForm.LoanType.selectedIndex == 11 || document.SubmitForm.LoanType.selectedIndex == 12 || document.SubmitForm.LoanType.selectedIndex == 13 || document.SubmitForm.LoanType.selectedIndex == 14 || document.SubmitForm.LoanType.selectedIndex == 15 || document.SubmitForm.LoanType.selectedIndex == 20) {
        if (document.SubmitForm.Term.selectedIndex == 0) {correct = false; text += "\nselect the term of the loan."}
        }
        if (correct){}
        else {alert(text)}
return correct
}



 var Terms=new Array();
 
Terms[0]="N/A";
Terms[1]="12 months";
Terms[2]="24 months";
Terms[3]="36 months";
Terms[4]="48 months";
Terms[5]="60 months";
Terms[6]="72 months";

function checkloantype() {

        if (document.SubmitForm.LoanType.selectedIndex > 14 &&  document.SubmitForm.LoanType.selectedIndex < 19)
        {
                for (var i=1; i < document.SubmitForm.Term.length; i++) {      
                        document.SubmitForm.Term.options[i].value = ""
                        document.SubmitForm.Term.options[i].text = ""
                }
                document.SubmitForm.Term.selectedIndex = 0
        }
        else {
                for (var i=1; i < document.SubmitForm.Term.length; i++) {      
                        document.SubmitForm.Term.options[i].value = Terms[i]
                        document.SubmitForm.Term.options[i].text = Terms[i]
                }
        }
}