<!--
function validate_HomeEquityLineForm() {


	if (trimString(document.Form1.Firstname.value) == "")
	{
		alert("Please tell us your first name");
		return;
	}

	if (trimString(document.Form1.Lastname.value) == "")
	{
		alert("Please tell us your last name");
		return;
	}

	if (trimString(document.Form1.Email.value) == "")
	{
		alert("Please tell us your email address");
		return;
	}

	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(trimString(document.Form1.Email.value)))
	{	} else {
		alert("The Email address you entered is invalid. Please re-enter it.")
	 	 return;
	 }


	if (trimString(document.Form1.Email.value) != trimString(document.Form1.Emailconfirm.value))
	{
		alert("The email address and email address confirmation values do not match. Please re-enter both");
		return;
	}
		
	// ************************************************************************************	

	if (trimString(document.Form1.Phone1.value) == "")
	{
		alert("Please tell us your phone Area Code");
		return;
	}

	var valid = "0123456789"
	var ok = "yes";
	var temp;
	for (var i=0; i<document.Form1.Phone1.value.length; i++) {
	temp = "" + document.Form1.Phone1.value.substring(i, i+1);
	if (valid.indexOf(temp) == "-1") ok = "no";
	}
	if (ok == "no") {
	alert("Please use numeric characters only when providing your phone area code");
	return;
	  }
		
	// ************************************************************************************	

	if (trimString(document.Form1.Phone2.value) == "")
	{
	alert("Please tell us your phone number");
	return;
	}
	
	var valid = "0123456789"
	var ok = "yes";
	var temp;
	for (var i=0; i<document.Form1.Phone2.value.length; i++) {
	temp = "" + document.Form1.Phone2.value.substring(i, i+1);
	if (valid.indexOf(temp) == "-1") ok = "no";
	}
	if (ok == "no") {
	alert("Please use numeric characters only when providing your phone number");
	return;
	  }
		
	// ************************************************************************************	

	if (trimString(document.Form1.Phone3.value) == "")
	{
	alert("Please tell us your phone number");
	return;
	}
	
	var valid = "0123456789"
	var ok = "yes";
	var temp;
	for (var i=0; i<document.Form1.Phone3.value.length; i++) {
	temp = "" + document.Form1.Phone3.value.substring(i, i+1);
	if (valid.indexOf(temp) == "-1") ok = "no";
	}
	if (ok == "no") {
	alert("Please use numeric characters only when providing your phone number");
	return;
	  }
		
	// ************************************************************************************	

	if (trimString(document.Form1.Address1.value) == "")
	{
		alert("Please tell us your address.");
		return;
	}

	if (trimString(document.Form1.City.value) == "")
	{
		alert("Please tell us your city.");
		return;
	}

	if (trimString(document.Form1.State.value) == "")
	{
		alert("Please tell us your state.");
		return;
	}

	if (trimString(document.Form1.Zip.value) == "")
	{
		alert("Please tell us your zip code.");
		return;
	}
		
	// ************************************************************************************	


	if (trimString(document.Form1.Propertytype.value) == "")
	{
		alert("Please tell select your property type.");
		return;
	}

	if (trimString(document.Form1.Loanpurpose.value) == "")
	{
		alert("Please indicate the purpose of the loan you're requesting.");
		return;
	}

	if (trimString(document.Form1.Estimatedhomevalue.value) == "")
	{
		alert("Please tell us the estimated value of your home.");
		return;
	}

	if (trimString(document.Form1.Mortgagebalance1.value) == "")
	{
		alert("Please tell us the balance of your current (1st) mortgage.");
		return;
	}

	if (trimString(document.Form1.Interestrate1.value) == "")
	{
		alert("Please tell us the interest rate of your current (1st) mortgage.");
		return;
	}

	if (trimString(document.Form1.Creditrating.value) == "")
	{
		alert("Please select a credit rating.");
		return;
	}

	if (trimString(document.Form1.Charity.value) == "")
	{
		alert("Please tell us th name of your favorite charity.");
		return;
	}

	// ************************************************************************************	
	// ************************************************************************************	


document.getElementById('HomeEquityLineForm_submit').innerHTML = "<span class=\"errormessage\">Request processing, please wait ...</span>";
document.Form1.submit()

}

HomeEquityLineForm_fieldlist = new Array('Firstname','Lastname','Email','Emailconfirm','Phone1','Phone2','Phone3','Altphone1','Altphone2','Altphone3','Address1','Address2','City','State','Zip','Propertytype','Loanpurpose','Estimatedhomevalue','Mortgagebalance1','Interestrate1','Mortgagebalance2','Interestrate2','Additionalcash','Creditrating','Charity');



//-->
