function validate_form ( )
{
	valid = true;

	
       if ( document.owsummercamp_form.email_spam.value.length != 0)
        {
                alert ( "This appears to be spam.  Please contact our office 250-828-3660" );
                valid = false;
        }

 
     if ( document.owsummercamp_form.swimmer.value == "" )
        {
                alert ( "Please fill in the 'Swimmer' box." );
                valid = false;
        }

         if ( document.owsummercamp_form.level.value == "" )
        {
                alert ( "Please fill in the 'Swimmers Level Green,Blue,Bronze,Silver or Gold' box." );
                valid = false;
        }


       if ( document.owsummercamp_form.camp.value == "" )
        {
                alert ( "Please tell us which camp you prefer." );
                valid = false;
        }


       if ( document.owsummercamp_form.birthdate.value == "" )
        {
                alert ( "Please fill in the 'birth date' box." );
                valid = false;
        }

       if ( document.owsummercamp_form.gender.value == "" )
        {
                alert ( "Please fill in the 'gender M/F' box." );
                valid = false;
        }

       if ( document.owsummercamp_form.parent.value == "" )
        {
                alert ( "Please fill in the 'parent' box." );
                valid = false;
        }

       if ( document.owsummercamp_form.email.value == "" )
        {
                alert ( "Please provide your Email Address in the 'email' box for a confirmation email. If you do not have an email address, please enter 'None'. Thanks." );
                valid = false;
        }

   
   if (document.owsummercamp_form.phone.value.search(/\d{3}\-\d{3}\-\d{4}/)==-1)
   {
      alert("The phone number you entered is not valid.\r\nPlease enter a phone number with the format xxx-xxx-xxxx.");
      valid = false;
   }

  
   if ( document.owsummercamp_form.address.value == "" )
        {
                alert ( "Please fill in the 'address' box." );
                valid = false;
        }


       if ( document.owsummercamp_form.postal.value == "" )
        {
                alert ( "Please fill in the 'postal code' box." );
                valid = false;
        }

        if ( document.owsummercamp_form.carecard.value == "" )
        {
                alert ( "Please fill in the 'Care Card' box." );
                valid = false;
        }


        return valid;
}


