function CheckForm(theform)
{
	if (theform.contactname.value.length <=2)
	{
		alert("Please enter your name.");
		theform.contactname.focus();
		return false;
	}
	
	if (theform.contactemail.value.length < 4)
	{
		alert("Please enter your email address.");
		theform.contactemail.focus();
		return false;
	}
	
	if (theform.contactemail.value.indexOf("@") == -1)
	{
		alert("Please enter a valid email address.")
	 	theform.contactemail.focus();
		return false;
	}
	
	if (theform.contactphone.value.length <=9)
	{
		alert("Please enter your phone number.");
		theform.contactphone.focus();
		return false;
	}

	
 	
	return true;
}
