

		
		var radiochecked=0;
		var typechecked=0;
		var radiootherchecked=0;
		var i=0;
		var j=0;
//Start: Purchase From Step 1//
		function jsf_formvalidationrehomeimprove() {
		js_missinginfo = "";
		if (document.rehomeimprove.credit_history.value == "") {
		js_missinginfo += "\n     - How would you rate your credit history?";
		}
		if (document.rehomeimprove.bankruptcy.value == "") {
		js_missinginfo += "\n     - Have you filed for bankruptcy?";
		}
		if (document.rehomeimprove.co_borrower.value == "") {
		js_missinginfo += "\n     - Are you requesting this loan with a spouse or co-borrower? ";
		}		
		if (document.rehomeimprove.Estimated_Value.value == "") {
		js_missinginfo += "\n     - Current estimated value of property:";
		}
		if (document.rehomeimprove.First_Mortgage_Balance.value == "") {
		js_missinginfo += "\n     -  1st mortgage balance:";
		}
		if (document.rehomeimprove.Interest_Rate_1st_Mortgage.value == "") {
		js_missinginfo += "\n     -  Current interest rate on 1st mortgage:";
		}
		if (document.rehomeimprove.property_type.value == "") {
		js_missinginfo += "\n     - How would you best describe this property?";
		}
		if (document.rehomeimprove.property_use.value == "") {
		js_missinginfo += "\n     - How will you be using this property?";
		}
		if (document.rehomeimprove.country.value == "") {
		js_missinginfo += "\n     - In what state will this property be located?";
		}
		if (document.rehomeimprove.property_zip.value == "") {
		js_missinginfo += "\n     - What is the property ZIP code?";
		}
		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.rehomeimprove.submit();
		return true;
		}
		}
//End: Purchase From Step 1//
		
//Start: Purchase From Step 2//
		function jsf_formvalidationrehomeimprove1() {
		js_missinginfo = "";
		if (document.rehomeimprove1.borrower_employment_status.value == "") {
		js_missinginfo += "\n     - What is your employment status?";
		}
		if (document.rehomeimprove1.grossincome.value == "") {
		js_missinginfo += "\n     - What is your monthly gross income before taxes?";
		}
		if (document.rehomeimprove1.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.rehomeimprove1.submit();
		return true;
		}
		}
//End: Purchase From Step 2//

//Start: Purchase From Step 3//
		function jsf_formvalidationrehomeimprove2() {
		js_missinginfo = "";
		if (document.rehomeimprove2.firstName.value == "") {
		js_missinginfo += "\n     - Borrower First Name";
		}
		if (document.rehomeimprove2.borrower_lastName.value == "") {
		js_missinginfo += "\n     - Borrower Last Name";
		}
		if (document.rehomeimprove2.org_address.value == 0) {
		js_missinginfo += "\n     - Borrower Address 1";
		}
		if (document.rehomeimprove2.org_city.value == 0) {
		js_missinginfo += "\n     - Borrower City";
		}
		if (document.rehomeimprove2.org_state.value == 0) {
		js_missinginfo += "\n     - Borrower State";
		}
		if (document.rehomeimprove2.org_zip.value == 0) {
		js_missinginfo += "\n     - Borrower Zip Code";
		}
		if (document.rehomeimprove2.borrower_work_phone_1.value == "" && document.rehomeimprove2.borrower_org_phone_1.value == "" && document.rehomeimprove2.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.rehomeimprove2.submit();
		return true;
		}
		}
//End: Purchase From Step 3//
