// 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) {
			type = 0;			
		}
		else if (document.getElementById('creditrating').selectedIndex == 3 || document.getElementById('creditrating').selectedIndex == 4) {
			ans = confirm('Based on your information, we can match you with Loan Modification professionals who may help you modify your existing loan. Click OK to be matched with loan modification professionals.');
			if (ans)
				type = 1;
		}
	}
	else {
		ans = confirm('Based on your information, we can match you with Loan Modification professionals who may help you modify your existing loan. Click OK to be matched with loan modification professionals.');
		if (ans)
			type = 1;
	}
	document.getElementById('changetype').value = type;
}