// JavaScript Document

function form_val(thisForm){
	
// BUSINESS INFORMATION
	if (thisForm.BusName.value == ""){
		alert("You must enter a value for the \"Entity Name\" field (Business or Individual name).");
		thisForm.BusName.focus();
		return (false);
	}
	if (thisForm.BusAddr.value == ""){
		alert("You must enter a value for the \"Borrower Address\" field.");
		thisForm.BusAddr.focus();
		return (false);
	}
	if (thisForm.BusCity.value == ""){
		alert("You must enter a value for the \"Borrower City\" field.");
		thisForm.BusCity.focus();
		return (false);
	}
	if (thisForm.BusState.value == ""){
		alert("You must enter a value for the \"Borrower State\" field.");
		thisForm.BusState.focus();
		return (false);
	}
	if (thisForm.BusZip.value == ""){
		alert("You must enter a value for the \"Borrower Zip\" field.");
		thisForm.BusZip.focus();
		return (false);
	}
	if (thisForm.BusPhone.value == ""){
		alert("You must enter a value for the \"Borrower Phone\" field.");
		thisForm.BusPhone.focus();
		return (false);
	}
	if (thisForm.BusType.value == ""){
		alert("You must enter a value for the \"Type of Business\" field.");
		thisForm.BusType.focus();
		return (false);
	}
	if (thisForm.BusYrs.value == ""){
		alert("You must enter a value for the \"In Business since\" field (Year and Month the Biz started).");
		thisForm.BusYrsOwn.focus();
		return (false);
	}
	if (thisForm.BusFedTax.value == ""){
		alert("You must enter a value for the \"Federal Tax ID\" field (EIN or SSN).");
		thisForm.BusFedTax.focus();
		return (false);
	}
	if (thisForm.BusSales.value == ""){
		alert("You must enter a value for the \"Annual Sales\" field.");
		thisForm.BusSales.focus();
		return (false);
	}
	
// BANK INFO
	if (thisForm.BankName.value == ""){
		alert("You must enter a value for the \"Bank Name\" field (At lease one is needed).");
		thisForm.BankName.focus();
		return (false);
	}
	if (thisForm.BankPhone.value == ""){
		alert("You must enter a value for the \"Bank Name\" field (At lease one is needed).");
		thisForm.BankPhone.focus();
		return (false);
	}
	if ((thisForm.BankCheck.checked == false) && (thisForm.BankSave.checked == false) && (thisForm.BankLoan.checked == false)) {
		alert("You must choose at least one bank account type: Checking, Savings, and\\or Loan.");
		thisForm.BankCheck.focus();
		return (false);
	}
// BUSINESS OWNERSHIP
	if ((thisForm.OwnerType[0].checked == false) && (thisForm.OwnerType[1].checked == false) && (thisForm.OwnerType[2].checked == false) && (thisForm.OwnerType[3].checked == false) && (thisForm.OwnerType[4].checked == false) && (thisForm.OwnerType[5].checked == false)) {
		alert("You must choose your \"Business Ownership Type\".");
		thisForm.OwnerType[0].focus();
		return (false);
	}
	if (thisForm.OwnName1.value == ""){
		alert("You must enter a value for the \"Owner Name\" field.");
		thisForm.OwnName1.focus();
		return (false);
	}
	if (thisForm.OwnSSN1.value == ""){
		alert("You must enter a value for the \"Owner Social Security Number\" field.");
		thisForm.OwnSSN1.focus();
		return (false);
	}
	if (thisForm.OwnAddr1.value == ""){
		alert("You must enter a value for the \"Owner Address\" field.");
		thisForm.OwnAddr1.focus();
		return (false);
	}
	if (thisForm.OwnCity1.value == ""){
		alert("You must enter a value for the \"Owner City\" field.");
		thisForm.OwnCity1.focus();
		return (false);
	}
	if (thisForm.OwnState1.value == ""){
		alert("You must enter a value for the \"Owner State\" field.");
		thisForm.OwnState1.focus();
		return (false);
	}
	if (thisForm.OwnZip1.value == ""){
		alert("You must enter a value for the \"Owner Zip\" field.");
		thisForm.OwnZip1.focus();
		return (false);
	}
	if (thisForm.OwnPhone1.value == ""){
		alert("You must enter a value for the \"Owner Phone\" field.");
		thisForm.OwnPhone1.focus();
		return (false);
	} 
	if (!thisForm.Signature.checked){
		alert("You must verify your digital signature by checking the \"I agree\" checkbox next to the legal disclaimer.");
		thisForm.Signature.focus();
		return (false);
	}
// Verification code
if (thisForm.VerCode.value == ""){
		alert("You must enter the \"Verification Code\" to continue.");
		thisForm.VerCode.focus();
		return (false);
	}
}
// -->

