function check_contact_form()
{
	var name = document.forms.contact_form.form_name.value;
	var email = document.forms.contact_form.form_email.value;
	var comment = document.forms.contact_form.form_comment.value;
	var name_regex = /^[a-zA-Z\s-\.]+$/;
	//var email_regex = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/;
	var email_regex = /.+@.+\..+/ ;
	var correct = true;

	if (name == null || name == "")
	{ 
		alert("Please enter your name.");
		document.forms.contact_form.form_name.focus();
		correct = false;
	}
	else if (email == null || email == "")
	{ 
		alert("Please enter your email address.");
		document.forms.contact_form.form_email.focus();
		correct = false;
	}
	else if (comment == null || comment == "")
	{ 
		alert("Please enter a comment or question.");
		document.forms.contact_form.form_comment.focus();
		correct = false;
	}
	else if(!email_regex.test(email))
	{
		alert("Please enter a valid email address.");
		document.forms.contact_form.form_email.focus();
		correct = false;
	}
	else if(!name_regex.test(name))
	{
		alert("Letters only in name, please.");
		document.forms.contact_form.form_name.focus();
		correct = false;
	}
	
	return correct;
} // function check reg form