function checkform ( visit )
{
  var stripped = visit.Phone.value.replace(/[\(\)\.\-\ ]/g, ''); 
  var emailRegex = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/;
  
  //declare valid variable with all valid characters: digits from 0 to 9 and backslash
         var valid = "0123456789/";
    //declare variable for counting number of slashes
         var slashcount = 0;
		 
  // generic
  if (visit.FullName.value == "") {
    alert( "Please enter your Full Name." );
    visit.FullName.focus();
    return false ;
  }
  if (visit.ChildsName.value == "") {
    alert( "Please enter your Child's Name." );
    visit.ChildsName.focus();
    return false ;
  }
  if (visit.formmail_mail_email.value == "") {
    alert( "Please enter your email address." );
    visit.formmail_mail_email.focus();
    return false ;
  } else if(!visit.formmail_mail_email.value.match(emailRegex)) {
    alert( "You have entered an invalid email." );
	visit.formmail_mail_email.focus();
    return false;
  }
  if (visit.Phone.value == "") {
    alert( "Please enter your phone number." );
    visit.Phone.focus();
    return false ;
  } else if (isNaN(parseInt(stripped))) {
     alert( "The phone number contains illegal characters." );
     visit.Phone.focus();
     return false ;
    } else if (!(stripped.length == 10)) {
        alert( "The phone number is the wrong length. Make sure you included an area code." );
		visit.Phone.focus();
		return false ;
	}
  
  return true ;
  
}











