
function doSubmit(btn) 
{
	if (isName() && isEmail() && isComments())
	{ 	 
        var submitMessage = "  Please Wait...  ";
        btn.value = submitMessage;
        btn.disabled = true;
        requestSubmitted = true;
        setTimeout("document.contactForm.submit()", 250);
   }
	else
	 {   return false; }
}

function isName()  {
	var field = document.contactForm.Name;
	
	if (field.value == "") {
		alert("\nPlease enter your Name in the field provided.\n");
		field.select();
		field.focus();
		return false;
	}
	return true;
}

function isEmail()  {

	var field = document.contactForm.Email;
	
	if (field.value == "") {
		alert("\nPlease enter your Email address in the field provided.\n");
		field.select();
		field.focus();
		return false;
		}

	if (field.value.indexOf('@',0) == -1 || field.value.indexOf('.',0) == -1)  {
		alert("\nThe Email address requires a \"@\" and a \".\" be used.\n\nPlease re-enter the Email address in the field provided.");
		field.select();
		field.focus();
		return false;
	}
	
	return true;
}

function isComments()  {
	var field = document.contactForm.Message;
	
	if (field.value == "") {
		alert("\nPlease enter your comments in the field provided.\n");
		field.select();
		field.focus();
		return false;
	}
	return true;
}