function contactValidator(theForm)
{
	submitonce(theForm);
	theForm.Name.value=Trim(theForm.Name.value);
	if (isWhiteSpace(theForm.Name.value))
	{
		alert("Please enter your name");
		submitenabled(theForm);
		theForm.Name.focus();
		return (false);
	}
	theForm.Phone.value=Trim(theForm.Phone.value);
	theForm.EMail.value=Trim(theForm.EMail.value);
	if (isWhiteSpace(theForm.Phone.value) && isWhiteSpace(theForm.EMail.value))
	{
		alert("We need a means to respond to your request. Please enter your phone number or your E-Mail address");
		submitenabled(theForm);
		theForm.Phone.focus();
		return (false);
	}
	if (!isWhiteSpace(theForm.Phone.value))
	{
		if (!isProperUSPhone(theForm.Phone.value))
		{
			var phonealert = confirm('The phone number you entered "' + theForm.Phone.value + '" does not appear to be valid.\n\nDo you still want to submit this number?');
			if(!phonealert)
			{
				submitenabled(theForm);
				theForm.Phone.focus();
				return (false);
			}
		}
	}
	if (!isWhiteSpace(theForm.EMail.value))
	{
		if (!isProperEmail(theForm.EMail.value))
		{
		alert("Please enter a valid E-Mail address (or you may leave it blank and enter your phone number)");
		submitenabled(theForm);
		theForm.EMail.focus();
		return (false);
		}
	}
	theForm.Subject.value=Trim(theForm.Subject.value);
	if (isWhiteSpace(theForm.Subject.value))
	{
		alert("Please enter a subject for your message");
		submitenabled(theForm);
		theForm.Subject.focus();
		return (false);
	}
	theForm.Message.value=Trim(theForm.Message.value);
	if (isWhiteSpace(theForm.Message.value))
	{
		alert("The message body is empty! Please enter your message");
		submitenabled(theForm);
		theForm.Message.focus();
		return (false);
	}
	submitenabled(theForm);
	return (true);
}


