<!--Hide

function canada() {

whatState = document.Form_Name.State.selectedIndex;

if (document.Form_Name.State.selectedIndex > 58) {

	document.Form_Name.Country.value = "Canada";
	
      }
if ((document.Form_Name.State.selectedIndex < 56) && (document.Form_Name.State.selectedIndex > 2)) {

	document.Form_Name.Country.value = "United States";
	
     }
     
 
   
}

function validEmail(email) {       				 //VALIDATION OF FORM
	invalidChars = " /:,;"

	if (email == "") {							// Must be filled in
		return false
	}
	for (i=0; i<invalidChars.length; i++) {		// Check to see if it contains illegal characters
		badChar = invalidChars.charAt(i)
		if (email.indexOf(badChar,0)> -1) {
			return false
		}
	}
	atPos = email.indexOf("@",1)				// There must be one "@" symbol
	if (atPos == -1) {
		return false
	}
	if (email.indexOf("@",atPos+1) != -1) {		// And only one "@" symbol
		return false
	}
	periodPos = email.indexOf(".",atPos)
	if (periodPos == -1) {						// And at least one "." after the "@"
		return false
	}
	if (periodPos+3> email.length)	{			// Must be at least 2 characters after the "."
		return false
	}
	

return true;	

}


function valrezform(form) {

whatState = form.State.selectedIndex;
whatContactPreference = form.Contact_Preference.selectedIndex;
whatCharterRequested = form.Charter_Requested.selectedIndex;
whatPDOW = form.Primary_Day_Of_Week.selectedIndex;
whatPM = form.Primary_Month.selectedIndex;
whatPD = form.Primary_Day.selectedIndex;
whatPY = form.Primary_Year.selectedIndex;
whatSDOW = form.Secondary_Day_Of_Week.selectedIndex;
whatSM = form.Secondary_Month.selectedIndex;
whatSD = form.Secondary_Day.selectedIndex;
whatSY = form.Secondary_Year.selectedIndex;
whatNumber = form.Number_Of_Passengers.selectedIndex;



     if (form.First_Name.value == "") {
            alert("Please enter your first name.  Thank you.");
            form.First_Name.focus();
            return false;
            }
            
     else if (form.Last_Name.value == "") {
                alert("Please enter your last name.  Thank you.");
                form.Last_Name.focus();
                return false;
            }
            
     else if (form.Address.value == "") {
                alert("Please enter your address.  Thank you.");
                form.Address.focus();
                return false;
            }       
     
     else if (form.City.value == "") {
                 alert("Please enter your city.  Thank you.");
                 form.City.focus();
                 return false;
            }
            
      else if (form.Home_Telephone_Number.value == "") {
                 alert("Please enter home telephone number.  Thank you.");
                 form.Home_Telephone_Number.focus();
                 return false;
            }       
            
     else if (form.Best_Time.value == "") {
                 alert("Please enter the best time to contact you.  Thank you.");
                 form.Best_Time.focus();
                 return false;
            }       
              
     else if (form.State.options[whatState].value == "") {
             alert("Please enter your state or province. If you are not from the United States or Canada, then select 'Not US or Canada' from the option list.  Thank you.");
             form.State.focus();
             return false;
             }
             
     else if (form.Charter_Requested.options[whatCharterRequested].value == "") {
             alert("Please indicate the charter that your are requesting. Thank you.");
             form.Charter_Requested.focus();
             return false;
             }
             
      else if (form.Contact_Preference.options[whatContactPreference].value == "") {
             alert("Please indicate your contact preference. Thank you.");
             form.Contact_Preference.focus();
             return false;
             }        
             
     else if (form.Zip_Or_Postal_Code.value == "") {
             alert("Please enter your Zip or Postal Code.  Thank you.");
             form.Zip_Or_Postal_Code.focus();
             return false;
            }
            
     else  if (!validEmail(form.email.value)) {
	    alert("Please enter a valid e-mail address.  Thank you.");
	    form.email.focus();
	    return false;
	    }
	    
                       
     else if (form.Primary_Day_Of_Week.options[whatPDOW].value == "") {
             alert("Please enter a primary day of the week for your chartered fishing trip of cruise..  Thank you.");
             form.Primary_Day_Of_Week.focus();
             return false;
             }
             
      else if (form.Primary_Month.options[whatPM].value == "") {
             alert("Please enter a primary month for your chartered fishing trip of cruise.  Thank you.");
             form.Primary_Month.focus();
             return false;
             }                 
             
     else if (form.Primary_Day.options[whatPD].value == "") {
	     alert("Please enter a primary day of the month for your chartered fishing trip of cruise. Thank you.");
	     form.Primary_Day.focus();
	     return false;
             }        
             
     else if (form.Primary_Year.options[whatPY].value == "") {
    	     alert("Please enter a primary date year for your chartered fishing trip of cruise.  Thank you.");
    	     form.Primary_Year.focus();
    	     return false;
             }        
             
       
     else if (form.Time_To_Leave.value == "") {
                 alert("Please enter the best time to leave the dock for you.  Thank you.");
                 form.Time_To_Leave.focus();
                 return false;
            }
            
     else if (form.Special_Needs.value == "") {
                 alert("Please enter any special needs or comments. If you do not have any, please indicate that you do not have any. Thank you.");
                 form.Special_Needs.focus();
                 return false;
            }
            
     else if (form.Number_Of_Passengers.options[whatNumber].value == "") {
             alert("Please indicate the number of passengers for your chartered fishing trip or cruise . Thank you.");
             form.Number_Of_Passengers.focus();
             return false;
             }
             
     else if (form.Under_12.value == "") {
                 alert("Please enter how many in your party willbe under the age of 12. Thank you.");
                 form.Under_12.focus();
                 return false;
            }      
             
     else {
        
        }
        
             
           
   }  	        
     	
     	
       
  
//End Hide-->

