// JavaScript Document

    function validate_form(){

    var name = document.contact_form.name.value;

    var email = document.contact_form.email.value;

    var comment = document.contact_form.comment.value;
	
	var nameRegxp = /^([a-zA-Z\.]+) ([a-zA-Z]+)$/;
	
	var emailRegxp = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})$/

	if (nameRegxp.test(name) != true) {

 		 alert("The Name entered appears to be incorrect.\r\n\r\nYou must enter at least an initial/first name and a family/surname name.");
		document.contact_form.name.focus();
		document.contact_form.name.select();
		return false;
		}
		    if (emailRegxp.test(email) != true) {

		      alert("The Email address entered appears to be incorrect.\r\n\r\nYou must enter an email address in the following example format: you@domain.com");
			document.contact_form.email.focus();
			document.contact_form.email.select();
		return false;
		}
				if (document.contact_form.comment.value == "") {
	
				  alert("You do not appear to have entered a commment.");
				document.contact_form.comment.focus();
				document.contact_form.comment.select();
			return false;
			}
	
    else {

return true;

      }

    }