<!--Hide
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 valform(form){
whatState = form.State.selectedIndex;
whatStartDay = form.Arrival_Day.selectedIndex;
whatStartMonth = form.Arrival_Month.selectedIndex;
whatStartYear = form.Arrival_Year.selectedIndex;
whatEndDay = form.Departure_Day.selectedIndex;
whatEndMonth = form.Departure_Month.selectedIndex;
whatEndYear = form.Departure_Year.selectedIndex;
 
     if (form.First_Name.value == "") {
            alert("Please enter your first name.  Thank you.");
            form.First_Name.focus();
            return false;
            }
            
     if (form.Last_Name.value == "") {
            alert("Please enter your last name.  Thank you.");
            form.Last_Name.focus();
            return false;
            }
            
            
          
     if (form.State.options[whatState].value == "") {
             alert("Please enter the state the the craft event will take place. Thank you.");
             form.State.focus();
             return false;
             }
             
       if (form.City.value == "") {
            alert("Please enter the city where the Craft event takes place.  Thank you.");
            form.City.focus();
            return false;
            }       
             
                 
      if (form.Business_Name.value == "") {
            alert("Please enter the name of the Craft event.  Thank you.");
            form.Business_Name.focus();
            return false;
            }       
     
      if (form.WebSite.value == "") {
	   alert("Please enter the web site address or URL of the Craft show, if any.  Enter - None - if none.  Thank you.");
	   form.WebSite.focus();
	   return false;
            }
            
       if (form.WebSiteDesc.value == "") {
	   alert("Please enter a brief description of the Craft web site.  Thank you.");
	   form.WebSiteDesc.focus();
	   return false;
            }      
            
     if (form.Arrival_Day.options[whatStartDay].value == "") {
             alert("Please enter your starting date of the Craft event. Thank you.");
             form.Arrival_Day.focus();
             return false;
             }
             
     if (form.Arrival_Month.options[whatStartMonth].value == "") {
             alert("Please enter your starting month of the Craft event. Thank you.");
             form.Arrival_Month.focus();
             return false;
             }
             
     if (form.Arrival_Year.options[whatStartYear].value == "") {
             alert("Please enter your starting year of the Craft event. Thank you.");
             form.Arrival_Year.focus();
             return false;
             }
             
      if (form.Departure_Day.options[whatEndDay].value == "") {
             alert("Please enter your ending date of the Craft event. Thank you.");
             form.Departure_Day.focus();
             return false;
             }
             
     if (form.Departure_Month.options[whatEndMonth].value == "") {
             alert("Please enter your ending month of the Craft event. Thank you.");
             form.Departure_Month.focus();
             return false;
             }
             
     if (form.Departure_Year.options[whatEndYear].value == "") {
             alert("Please enter your ending year of the Craft event. Thank you.");
             form.Departure_Year.focus();
             return false;
             }
                            
                    
    
            
       else if (!validEmail(form.email.value)) {
	      alert("Please enter a valid e-mail address.  Thank you.");
	      form.email.focus();
	      return false;
	  		
              }
              
     	
	
	alert('Thank you, for listing with us.  We will have your Craft Show listed as soon as possible.')
       
  }   
  
//End Hide-->

