<!-- Begin

function checkFields() {

if (checkEmail(document.Contact.Email.value) == false)
	{
	alert("A valid Email Address is required.");
	document.Contact.Email.focus();
	return false
	}
if (document.Contact.FullName.value.length < 5 )
	{
	alert("Full Name is required.");
	document.Contact.FullName.focus();
	return false
	}
if (document.Contact.Company.value.length < 3 )
	{
	alert("The name of your Company is required.");
	document.Contact.Company.focus();
	return false
	}
if (document.Contact.Phone.value.length < 12 )
	{
	alert("Phone Number with Area Code is required.\n\nExample: 847-555-1234");
	document.Contact.Phone.focus();
	return false
	}
if (document.Contact.Fax.value != "" && document.Contact.Fax.value.length < 12 )
	{
	alert("When entering a Fax Number, please include the Area Code.\n\nExample: 847-555-1234");
	document.Contact.Fax.focus();
	return false
	}
if (document.Contact.Subject.options[document.Contact.Subject.selectedIndex].value == "")
	{
	alert("Please select a Main Interest from the drop-down menu.");
	document.Contact.Subject.focus();
	return false
	}
if (document.Contact.Message.value == "" || document.Contact.Message.value.length < 10)
	{
	alert("Please provide enough information in your Message\nso that we can provide the proper response.");
	document.Contact.Message.focus();
	return false
	}

// VALIDATE EMAIL ADDRESS FUNCTION (called above on line 17)
function checkEmail(the_email) {
	var the_at = the_email.indexOf("@");
	var the_dot = the_email.lastIndexOf(".");
	var a_space = the_email.indexOf(" ");
	if ((the_at != -1) &&  // if there's an @ sign
		(the_at != 0 ) &&  // and it's not the first character
		(the_dot != -1) &&  // and there's a period
		(the_dot > the_at + 1) &&  // and something between "@" and "."
		(the_dot < the_email.length -1) &&  // and something after the "."
		(a_space == -1))  // and there's no spaces
		{
		return true;
		}
	else
		{
		return false;
		}
	}

}
//  End -->
