<!--
function checkForm() {

eventName = document.eventNew.eventName.value;
eventBio = document.eventNew.eventBio.value;
eventCity = document.eventNew.city.value;

eventType = document.eventNew.eventType.selectedIndex;
startMonth = document.eventNew.startMonth.selectedIndex;
startDay = document.eventNew.startDay.selectedIndex;
startYear = document.eventNew.startYear.selectedIndex;
endMonth = document.eventNew.endMonth.selectedIndex;
endDay = document.eventNew.endDay.selectedIndex;
endYear = document.eventNew.endYear.selectedIndex;
eventLocation = document.eventNew.Location.selectedIndex;
state = document.eventNew.state.selectedIndex;

url = document.eventNew.url.value;
organizerName = document.eventNew.organizerName.value;
eventEmail = document.eventNew.email.value;
eventPhone = document.eventNew.eventPhone.value;


if (eventName.length < 5 || eventName.length > 125) {
	alert("Please enter the name of the event (between 5 and 125 characters).");
	}
	
else if (eventBio.length < 20 || eventBio.length > 2000) {
	alert("Please enter a description of the event. Feel free to include ticket prices, locations, etc.\r\rIMPORTANT: Make sure there are between 20 and 2000 characters.");
	}	

else if (eventType == 0) {
	alert("Please choose the type of event to be placed into the calendar.");
	}

else if (startMonth == 0 || startDay == 0 || startYear == 0) {
	alert("Please enter a complete start date for your event.");
	}
	
else if (eventLocation == 0) {
	alert("If this event is in the United States or Canada, choose the closest metropolitan area. If the event is in another location, please choose the country.");
	}	
	
else if (eventCity.length < 1 || eventCity.length > 75) {
	alert("Please enter the city where the event will take place (between 1 and 50 characters).");
	}	
	
else if (state == 0) {
	alert("If this event is in the United States or Canada, choose the state. If the event is in another location, please choose *INTERNATIONAL* from the list.");
	}		
		
else if (url.length > 150) {
	alert("Please limit the web address to 150 characters, and remove the 'http:' text.");
	}
	
else if (eventEmail.length > 100) {
	alert("Please limit the email address to 100 characters.");
	}	
	
else if (organizerName.length > 75) {
	alert("Please limit the organizer's name to 75 characters.");
	}		
	
else if (eventPhone.length > 50) {
	alert("Please limit the telephone information line to 50 characters.");
	}		

else {
	document.eventNew.submit()
	}
}


//-->