
function doSubmit(btn) 
{
	if (isFirstName() && isLastName() && isEmail() && isHearAboutUs() )	
	{ 
	    var submitMessage = "Please Wait ...";
        btn.value = submitMessage;
        btn.disabled = true;
        requestSubmitted = true;
        setTimeout("document.contactForm.submit()", 250);
	 }
	else
	 {   return false; }
}

function isHearAboutUs()  {
	var field = document.contactForm.HearAboutUs;
	
	if (field.value == "") {
		alert("\nPlease enter how you heard about us in the field provided.\n");
		field.select();
		field.focus();
		return false;
	}
	return true;
}

function isAddress()  {
	var field = document.contactForm.Address;
	
	if (field.value == "") {
		alert("\nPlease enter your Address in the field provided.\n");
		field.select();
		field.focus();
		return false;
	}
	return true;
}

function isCity()  {
	var field = document.contactForm.City;
	
	if (field.value == "") {
		alert("\nPlease enter the City in the field provided.\n");
		field.select();
		field.focus();
		return false;
	}
	return true;
}

function isZip()  {
	var field = document.contactForm.Zip;
	
	if (field.value == "") {
		alert("\nPlease enter the Zip Code in the field provided.\n");
		field.select();
		field.focus();
		return false;
	}
	return true;
}

function isFirstName()  {
	var field = document.contactForm.FirstName;

	if (field.value == "") {
		alert("\nYou must enter your First Name in the field provided.\n\n");
		field.select();
		field.focus();
		return false;
	}

	return true;
}

function isLastName()  {
	var field = document.contactForm.LastName;

	if (field.value == "") {
		alert("\nYou must enter your Last Name in the field provided.\n\n");
		field.select();
		field.focus();
		return false;
	}

	return true;
}


function isEmail()  {
	var field1 = document.contactForm.Email;
	var field2 = document.contactForm.Email2;

	if (field1.value == "") {
		alert("\nYou must enter your E-mail address in the field provided.\n\n");
		field1.select();
		field1.focus();
		return false;
	}
	
	if (field1.value.indexOf('@',0) == -1 || field1.value.indexOf('.',0) == -1)  {
		alert("\nThe E-mail address requires a \"@\" and a \".\" be used.\n\nPlease re-enter the e-mail address in the field provided.");
		field1.select();
		field1.focus();
		return false;
	}
	
	if (field2.value == "") {
		alert("\nYou must retype your E-mail address in the field provided.\n\n");
		field2.select();
		field2.focus();
		return false;
	}
	
	
	if (field1.value != field2.value) {
		alert("\nThe Email Addresses do not match.\nPlease re-enter both!");
		field1.select();
		field1.focus();
		return false;
	}
			
	return true;
}
