function checkForm(frm) {
	var f = frm;
	if (f.contactName) {
    if (f.contactName.value == '') {
      alert('Have you entered your name?');
      return false;
    }
  }
  
  if (f.contactTel) {
    if (f.contactTel.value == '') {
      alert('Have you either a Telephone or Mobile Number?');
      return false;
    }
  }
	

	if (f.contactEmail.value != '' && (f.contactEmail.value.lastIndexOf('.') < 0 || f.email.contactEmail.lastIndexOf('@') < 1)) {
		alert('The email address you have entered does not seem to be valid. Please check the address you have entered.');
		return false;
	} else if (f.contactEmail.value == '') {
		alert('An email address has not been supplied. Please enter your email address.');
		return false;
	}
	

	return true;
}