<!--
function validate(theForm){
	if (theForm.Name.value == "" || theForm.Name.value.length < 2){
		alert("Please enter your Full Name.");
		theForm.Name.focus();
		return false;
	}
	if (theForm.Email.value == "" || theForm.Email.value.indexOf('@',1)== -1 || theForm.Email.value.indexOf('.',2)==-1){
		alert("Please fill in your email address.");
		theForm.Email.focus();
		return false;
	}	
	if (theForm.borrower_bd_month.value == "m"){
		alert("Please select the month you were born in.");
		theForm.borrower_bd_month.focus();
		return false;
	}
	if (theForm.borrower_bd_day.value == "d"){
		alert("Please select the day you were born on.");
		theForm.borrower_bd_day.focus();
		return false;
	}
	if (theForm.borrower_bd_year.value == "y"){
		alert("Please select the year you were born in.");
		theForm.borrower_bd_year.focus();
		return false;
	}		
	if(theForm.address.value == "" || theForm.address.value.length < 2){
		alert("Please enter your address.");
		theForm.address.focus();
		return false;
	}
	if(theForm.city.value == "" || theForm.city.value.length < 2){
		alert("Please enter your city.");
		theForm.city.focus();
		return false;
	}
	if(theForm.state.value == "" || theForm.state.value.length < 2 || theForm.state.value.length > 2){
		alert("Please enter your state.\r\n\r\nHint: Use Abbreviation. i.e. CA for California");
		theForm.state.focus();
		return false;
	}
	if(theForm.zip_code.value == "" || theForm.zip_code.value.length < 5){
		alert("Please enter your zip code.");
		theForm.zip_code.focus();
		return false;
	}	
	if(theForm.daytime_phone.value == "" || theForm.daytime_phone.value.length < 10){
		alert("Please enter your daytime phone number.\r\n\r\nHint: Use Area code, Prefix, and Suffix");
		theForm.daytime_phone.focus();
		return false;
	}		
	if(theForm.best_time_to_call.value == "" || theForm.best_time_to_call.value.length < 2){
		alert("Please specify the best time to contact you via phone.\r\n\r\nHint: 12:00 Pm");
		theForm.best_time_to_call.focus();
		return false;
	}	
	if(theForm.co_borrower_name.value == "" || theForm.co_borrower_name.value.length < 2){
		alert("Please enter your co-borrower's full name.\r\n\r\nHint: Use N/A if there isn't one.");
		theForm.co_borrower_name.focus();
		return false;
	}
	if(theForm.co_borrower_name.value != "N/A"){
		var co_msg = "\r\n\r\nHint: Use N/A in the above field to\r\nget past this, if there isn't a co-borrower.";
		if (theForm.co_borrower_bd_month.value == "m"){
			alert("Please select the month your co-borrower was born in."+co_msg);
			theForm.co_borrower_bd_month.focus();
			return false;
		}
		if (theForm.co_borrower_bd_day.value == "d"){
			alert("Please select the day your co-borrower was born on."+co_msg);
			theForm.co_borrower_bd_day.focus();
			return false;
		}
		if (theForm.co_borrower_bd_year.value == "y"){
			alert("Please select the year your co-borrower was born in."+co_msg);
			theForm.co_borrower_bd_year.focus();
			return false;
		}	
	}
	if(theForm.value_of_house.value == "" || theForm.value_of_house.value.length < 2){
		alert("Please enter the fiscal value of your house.\r\n\r\nHint: $250,000");
		theForm.value_of_house.focus();
		return false;
	}	
	if(theForm.program_desired.value == "null" || theForm.program_desired.value.length < 2){
		alert("Please select your desired reverse mortgage program.");
		theForm.program_desired.focus();
		return false;
	}
	return true;
}
//-->