//Turners Watercare UK Ltd.
//Site Design by KevBod www.kevbod.com

function submitIt()
{

var yourname = document.getElementById('yourname');
var organisation = document.getElementById('organisation');
var email = document.getElementById('email');
var telno = document.getElementById('telno');

 if (yourname.value == ""){
  alert("Please tell us your name");
  yourname.focus();
  yourname.select();
  return false;
 }

 if (organisation.value == ""){
  alert("Please tell us the name of your organisation");
  organisation.focus();
  organisation.select();
  return false;
 }

  re = /^\d+.?\d+$/
  if (telno.value == "" || !re.test(telno.value)){
   alert("Invalid phone no."); 
   telno.focus();
   telno.select();
   return false;
  }

 if (email.value == ""){
    alert("Must input email address");
    email.focus();
    email.select();
    return false;
 } else {
    re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
    if (!re.test(contact.email.value)){
   alert("Invalid email address");
   email.focus();
   email.select();
   return false;
  }
 }
 return true;
}

