function CheckForm()
{
	var errors = "Please correct the errors below:\n\n";							//Stores error messages
	var count = 0;																	//Counts number of errors
	var atposition = document.ContactForm.fieldE_mail.value.indexOf("@");			//position of @ sign
	var dotposition = document.ContactForm.fieldE_mail.value.lastIndexOf(".");		//position of .
	var charsAtoZ = /^[a-zA-Z]+$/;													//Valid chars a-z and A-Z ASCII
	
	
	if((document.ContactForm.fieldName.value=="")||(!document.ContactForm.fieldName.value.match(charsAtoZ)))
	{
		count++;
		errors = errors + count + ") Name cannot be left blank.\n";
	}
	if(document.ContactForm.fieldE_mail.value == "")
	{
		count++;
		errors = errors + count + ") Email cannot be left blank.\n";
	}
	if((document.ContactForm.fieldE_mail.value != "")&&(atposition<1||dotposition-atposition<2))
	{
		count++;
		errors = errors + count + ") Invalid Email Format.\n";
	}
	if(document.ContactForm.fieldMessage.value == "")
	{
		count++;
		errors = errors + count + ") Message cannot be left blank.\n";
	}
	if (count == 0)
	{
		return true;
	}
	else
	{
		alert(errors);
		return false;
	}
	
}

