
function Subscribe() {

 if(document.getElementById('name').value==''||document.getElementById('email').value=='') {
          alert('please supply both your name and email address.');
          return false;
 }
 
  var femail = document.getElementById('email').value
  rgx = /^\s*[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;
  if(!rgx.test(femail)) {
       alert('please enter a valid email address.');
       return;
  }

  frmSubscribe.submit()

}

function Enq() {

 if(document.getElementById('name').value==''||document.getElementById('email').value==''||document.getElementById('phone').value=='') {
          alert('please supply your name, email address and phone number.');
          return false;
 }
 
  var femail = document.getElementById('email').value
  rgx = /^\s*[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;
  if(!rgx.test(femail)) {
       alert('please enter a valid email address.');
       return;
  }

  frmEnq.submit()

}
