/*
   JavaScript - Simple client-side form validation
   QC Systems Ltd 2001 - by Intabiz.co.uk
*/
function isValid() {
 ema=document.QCForm.Email.value; mid=ema.indexOf('@');
 dot=ema.lastIndexOf('.'); end=ema.length-1;
 nme=document.QCForm.Surname.value;
 if ((ema==null)||(ema=='')||(ema.substring(0,6)=='ENTER ')) {
  alert('You MUST enter an E-mail address!');
  document.QCForm.Email.value='ENTER E-MAIL HERE';
  document.QCForm.Email.select(); return false;
 }
 else if (mid<1||dot-mid<2||end-dot>3||end-dot<2) {
  alert('Invalid e-mail address!'); return false;
 }
 else if ((nme==null)||(nme=='')||(nme.substring(0,6)=='ENTER ')) {
  alert('Please include your last name.');
  document.QCForm.Surname.value='ENTER SURNAME';
  document.QCForm.Surname.select(); return false;
 }
 else {window.status='Please wait...'; return true}
}