// JavaScript Document
function sendform() {
	var ans = false;
	var type = 0;
	if (document.getElementById('behind').value == 0) {
		if (document.getElementById('creditrating').selectedIndex == 1 || document.getElementById('creditrating').selectedIndex == 2) {
			if (document.getElementById('owed').value / document.getElementById('homevalue').value < 1.05) {
				ans = confirm('Based on your information, we can match you with Mortgage companies that help you Refinance your existing mortgage.  Click OK to be matched with mortgage companies.');
				if (ans)
					type = 1;
			}
		}		
	}
	document.getElementById('changetype').value = type;
}
function open_zipcode() {
	if (document.getElementById('behind').selectedIndex == 5) {
		document.getElementById('creditrow').style.display = '';
	}
}