function CheckForm() 
{ 
	if(myForm.hdnButton.value == "Submit")
	{
		if (myForm.txtName.value == "") 
		{ 
			alert("Please enter the name of the event."); 
			myForm.txtName.focus();
			return false; 
		}
	  
		if (myForm.chkBicentennial.value == "") 
		{ 
			alert("Please select whether this is a Bicentennial event or not."); 
			myForm.chkBicentennial.focus();
			return false;
		}
	  
		if (myForm.txtDateFrom.value == "") 
		{ 
			alert("Please enter the beginning date of the event."); 
			myForm.txtDateFrom.focus();
			return false;
		}
	  
	//  if (myForm.txtDateTo.value == "") 
	//	{ 
	//    alert("Please enter the ending date of the event."); 
	//    myForm.txtDateTo.focus();
	//    return false;
	//  }
	  
		if (myForm.txtDateTo.value == "") 
		{ 
			alert("Please enter the ending date of the event. If the event's duration is one day only, you must enter the date in both From and To fields."); 
			myForm.txtDateTo.focus();
			return false;
		}
	  
		if (myForm.txtZip.value == "") 
		{ 
			alert("Please enter the zip code of the event location."); 
			myForm.txtZip.focus();
			return false;
		}
	  
		//if (myForm.txtCity.value == "") 
		try
		{
			if (myForm.selCity.options[myForm.selCity.selectedIndex].value == "")
			{ 
				alert("Please select the city of the event location."); 
				myForm.selCity.focus();
				return false;
			}
		}
		catch (er)
		{
			alert("Please Lookup Zip and select the city of the event location."); 
			myForm.txtZip.focus();
			return false;
		}
	  
	  /*
		if (myForm.txtCity.value.indexOf (',',0) > 0) 
		{ 
			alert("Please enter only the city name."); 
			myForm.txtCity.focus();
			return false;
		}
	  */
	  
		/*
		if (myForm.selCounty.options[myForm.selCounty.selectedIndex].text == "Select County") 
		{ 
			alert("Please enter the county of the event location."); 
			myForm.selCounty.focus();
			return false;
		}
		*/
	  
		if (myForm.txtContactPrivate.value == "") 
		{ 
			alert("Please enter your name."); 
			myForm.txtContactPrivate.focus();
			return false;
		}
	 
		if (myForm.txtEmailPrivate.value.indexOf ('@',0) == -1 || myForm.txtEmailPrivate.value.indexOf ('.',0) == -1)
		{
			alert ("The email address you entered is not valid. Please re-enter your email address.")
			myForm.txtEmailPrivate.focus();
			valid = false; 
			return false ;
		}
		
		if (myForm.txtPhonePrivate.value == "") 
		{ 
			alert("Please enter your phone number."); 
			myForm.txtPhonePrivate.focus();
			return false;
		}
		
		if (myForm.txtDesc.value == "") 
		{ 
			alert("You have not entered a description of the event."); 
			myForm.txtDesc.focus();
			return false; 
		}
		
		if (myForm.strCAPTCHA.value == "") 
		{ 
			alert("Please verify the security code by typing them in the box provided."); 
			myForm.strCAPTCHA.focus();
			return false;
		}
		//return false;
	}
	else
	{
		if (myForm.txtZip.value == "") 
		{ 
			alert("Please enter the zip code of the event location."); 
			myForm.txtZip.focus();
			return false;
		}
	}
 
	return true; 
}


