function checkform(form) {
	/* keep the TLD extensions in the regex below up-to-date by occasionally checking http://data.iana.org/TLD/tlds-alpha-by-domain.txt and adding any new ones that have appeared */
	emailRe = /^\w+([\.\-_]?\w+)*@\w+([\.\-_]?\w+)*\.(\w{2}|(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum|asia|cat|jobs|mobi|tel|travel))$/;

        if (!form.name.value || !form.email.value || !form.phone.value) {
	alert ("Please fill in all of the fields");
	return false;
	}

	if (! emailRe.test(form.email.value)) {
	alert("Please check the email address supplied is valid.");
	return false;
	}
}
