  /********************************/
  /*   Verify Form Input Script   */
  /*    Written by Shawn Storc    */
  /*          March 1998          */
  /********************************/

//define the verifyData function
function verifyData(form){

  //if user omits name, alerts and aborts submit
  if(form.your_name.value==""){
    alert("Please enter your name!");
    return false; 
  } 
  //if omits email or omits @ char, alerts and aborts submit
  if(form.email.value=="" || form.email.value.indexOf('@', 0) == -1 || form.email.value.indexOf('.', 0) == -1){
    alert('You did not enter a valid email address! \n Please enter a valid email address');
    return false;
  }
  //if user omits comments, alerts and aborts submit
  if(form.comments.value==""){
    alert('You did not enter any info for me! \n I prefer directions to empty pools...');
    return false;
  }
  //if fields are filled properly, alerts and sends
  else{  
    alert('Thanks for contacting Poolrider '+ form.your_name.value +'! \n You should now be taken to the main page');
      return true;
  }
} 
