// to jump to different Seller's Net Sheet pages

function goForm()
{
	box = document.getElementById("form1").selectName;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}

// to jump to different Calculator pages

function goCalc()
{
	box = document.getElementById("calc").selectName;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}

// to jump to different pages based on radio button selection
// used in this site to select a 'Purchase' or 'Refinance' request

function go(what) {
 var chosen = false;
 for (var i=0; i<2; i++) {
	 if (what.loan_type[i].checked == true) {
			chosen = true;
			location.href = what.loan_type[i].value;
		}
	}
	if (!chosen)
	location.href = 'http://www.fhaloanplace.com/fha_loan_choose.php';
}

// to jump to different pages based on radio button selection
// used in this site for 'Certificate of Eligibility' request

function go2(what) {
 var chosen = false;
 for (var i=0; i<2; i++) {
	 if (what.loan_type[i].checked == true) {
			chosen = true;
			location.href = what.loan_type[i].value;
		}
	}
	if (!chosen)
	location.href = 'https://www.valoanplace.com/certificate_of_eligibility_choose.php';
}

// to jump to different pages based on radio button selection
// used in this site for 'VA Loan Rates' request

function go3(what) {
 var chosen = false;
 for (var i=0; i<2; i++) {
	 if (what.loan_type[i].checked == true) {
			chosen = true;
			location.href = what.loan_type[i].value;
		}
	}
	if (!chosen)
	location.href = 'http://www.fhaloanplace.com/fha_rates_choose.php';
}