

		
		var radiochecked=0;
		var typechecked=0;
		var radiootherchecked=0;
		var i=0;
		var j=0;
//Start: Purchase From Step 1//
		function jsf_formvalidationfhapurchase() {
		js_missinginfo = "";
		if (document.fhapurchase.credit_history.value == "") {
		js_missinginfo += "\n     - How would you rate your credit history?";
		}
		if (document.fhapurchase.bankruptcy.value == "") {
		js_missinginfo += "\n     - Have you filed for bankruptcy?";
		}
		if (document.fhapurchase.co_borrower.value == "") {
		js_missinginfo += "\n     - Are you requesting this loan with a spouse or co-borrower? ";
		}
		if (document.fhapurchase.property_type.value == "") {
		js_missinginfo += "\n     - How would you best describe this property?";
		}
		if (document.fhapurchase.property_use.value == "") {
		js_missinginfo += "\n     - How will you be using this property?";
		}
		if (document.fhapurchase.country.value == "") {
		js_missinginfo += "\n     - In what state will this property be located?";
		}
		if (document.fhapurchase.property_zip.value == "") {
		js_missinginfo += "\n     - What is the property ZIP code?";
		}
		if (document.fhapurchase.down_payment.value == "") {
		js_missinginfo += "\n     - How much do you have for a down payment?";
		}	
		
		if (js_missinginfo != "") {
		js_missinginfo ="______________________________________________________________\n" +
		"\tYou failed to correctly fill in the field(s) listed:\n" +
		js_missinginfo + "\n______________________________________________________________" +
		"\nPlease re-enter and submit again!";
		alert(js_missinginfo);
		return false;
		}
		else 
		{
		document.fhapurchase.submit();
		return true;
		}
		}
//End: Purchase From Step 1//
		
//Start: Purchase From Step 2//
		function jsf_formvalidationfhapurchase1() {
		js_missinginfo = "";
		if (document.fhapurchase1.borrower_employment_status.value == "") {
		js_missinginfo += "\n     - What is your employment status?";
		}
		if (document.fhapurchase1.grossincome.value == "") {
		js_missinginfo += "\n     - What is your monthly gross income before taxes?";
		}
		if (document.fhapurchase1.grossincome.value == 0) {
		js_missinginfo += "\n     - Please make sure your gross income is not equal to 0.";
		}
		if (js_missinginfo != "") {
		js_missinginfo ="______________________________________________________________\n" +
		"\tYou failed to correctly fill in the field(s) listed:\n" +
		js_missinginfo + "\n______________________________________________________________" +
		"\nPlease re-enter and submit again!";
		alert(js_missinginfo);
		return false;
		}
		else 
		{
		document.fhapurchase1.submit();
		return true;
		}
		}
//End: Purchase From Step 2//

//Start: Purchase From Step 3//
		function jsf_formvalidationfhapurchase2() {
		js_missinginfo = "";
		if (document.fhapurchase2.firstName.value == "") {
		js_missinginfo += "\n     - Borrower First Name";
		}
		if (document.fhapurchase2.borrower_lastName.value == "") {
		js_missinginfo += "\n     - Borrower Last Name";
		}
		if (document.fhapurchase2.org_address.value == 0) {
		js_missinginfo += "\n     - Borrower Address 1";
		}
		if (document.fhapurchase2.org_city.value == 0) {
		js_missinginfo += "\n     - Borrower City";
		}
		if (document.fhapurchase2.org_state.value == 0) {
		js_missinginfo += "\n     - Borrower State";
		}
		if (document.fhapurchase2.org_zip.value == 0) {
		js_missinginfo += "\n     - Borrower Zip Code";
		}
		if (document.fhapurchase2.borrower_work_phone_1.value == "" && document.fhapurchase2.borrower_org_phone_1.value == "" && document.fhapurchase2.borrower_mobile_phone_1.value == "") {
		js_missinginfo += "\n     - Please make sure you have entered a phone number.";
		}
		
		if (js_missinginfo != "") {
		js_missinginfo ="______________________________________________________________\n" +
		"\tYou failed to correctly fill in the field(s) listed:\n" +
		js_missinginfo + "\n______________________________________________________________" +
		"\nPlease re-enter and submit again!";
		alert(js_missinginfo);
		return false;
		}
		else 
		{
		document.fhapurchase2.submit();
		return true;
		}
		}
//End: Purchase From Step 3//
