	<!--

function doSubmit(theForm)	{
	var bolPassed	= false;
//	theForm.submit();
	if (theForm.contact_organization.value	==	"") {
		alert("Enter a contact organization.");
		theForm.contact_organization.focus();
	}
	else if (theForm.partner_organization.value == "")	{
		alert("Enter a partner organization.");
		theForm.partner_organization.focus();
	}
	else if ((theForm.location.value == "") && (theForm.location_other.value == "")) 	{
		alert("Enter an area served.");
		theForm.location.focus();
	}
	else if ((theForm.location.value == "Other") && (theForm.location_other.value == "")) 	{
		alert("You have selected 'Other' as your Area Served, please specify.");
		theForm.location_other.focus();
	}
	else if (theForm.org_description.value == "")	{
		alert("Enter a description for the contact organization.");
		theForm.org_description.focus();
	}
	else if (theForm.activity_title.value == "")	{
		alert("Enter a title for the activity.");
		theForm.activity_title.focus();
	}
	else if (theForm.date_start.value == "")	{
		alert("Enter a start date for the activity.");
		theForm.date_start.focus();
	}
	else if (theForm.date_end.value == "")	{
		alert("Enter a end date for the activity.");
		theForm.date_end.focus();
	}
	else if (isDate(theForm.date_start.value)==false){
		alert("Enter a valid start date for the activity.");
		theForm.date_start.focus();
	}
	else if (isDate(theForm.date_end.value)==false){
		alert("Enter a valid end date for the activity.");
		theForm.date_end.focus();
	}

	else if (((theForm.act_category[0].checked) || (theForm.act_category[1].checked) || (theForm.act_category[2].checked) || (theForm.act_category[3].checked) || (theForm.act_category[4].checked) || (theForm.act_category[5].checked) || (theForm.act_category[6].checked) || (theForm.act_category[7].checked) || (theForm.act_category[8].checked) || (theForm.act_category[9].checked) || (theForm.act_category[10].checked) || (theForm.act_category[11].checked)) == false)	{
		alert("Identify an activity category for this activity.");
		theForm.act_category[0].focus();
	}
	else if ((theForm.act_category[11].checked == true) && (theForm.other_act_category.value == ""))	{
		alert("You have selected 'Other' as your activity category, please specify.");
		theForm.other_act_category.focus();
	}
	
//	else if ((theForm.act_overview.value.length > 250) || (theForm.act_overview.value == "")) {
//		alert("Enter an overview for this activity OR limit your message length to 250 characters.");
//		theForm.act_overview.focus();
//	}
	
	else if (theForm.act_description.value == "")	{
		alert("Please enter a description for this activity.");
		theForm.act_description.focus();
	}
	else if (theForm.audience.value == "")	{
		alert("Please enter an audience for this activity.");
		theForm.audience.focus();
	}
	else if ((theForm.audience.value == "Other") && (theForm.audience_other.value == "")) {
		alert("You have selected 'Other' as your audience, please specify.");
		theForm.audience_other.focus();
	}
	else if (theForm.attendance_reach.value == "")	{
		alert("Please enter the anticipated attendance/reach for this activity.");
		theForm.attendance_reach.focus();
	}
	else if (((theForm.setting[0].checked) || (theForm.setting[1].checked) || (theForm.setting[2].checked) || (theForm.setting[3].checked) || (theForm.setting[4].checked) || (theForm.setting[5].checked) || (theForm.setting[6].checked) || (theForm.setting[7].checked) || (theForm.setting[8].checked) || (theForm.setting[9].checked) || (theForm.setting[10].checked)) == false)	{
		alert("Identify a setting for this activity.");
		theForm.setting[0].focus();
	}
	else if ((theForm.setting[10].checked == true) && (theForm.other_setting.value == ""))	{
		alert("You have selected 'Other' as your setting, please specify.");
		theForm.other_setting.focus();
	}

	else if (theForm.first_name.value == "")	{
		alert("Enter a firstname for the contact person.");
		theForm.first_name.focus();
	}
	else if (theForm.first_name.value == "      FIRSTNAME")	{
		alert("Enter a firstname for the contact person.");
		theForm.first_name.focus();
	}
	else if (theForm.last_name.value == "")	{
		alert("Enter a lastname for the contact person.");
		theForm.last_name.focus();
	}
	else if (theForm.last_name.value == "    LASTNAME")	{
		alert("Enter a lastname for the contact person.");
		theForm.last_name.focus();
	}
	else if (theForm.contact_title.value == "")	{
		alert("Enter a title for the contact person.");
		theForm.contact_title.focus();
	}
	else if (theForm.address1.value == "")	{
		alert("Enter an address for the contact organization.");
		theForm.address1.focus();
	}
	else if (theForm.city.value == "")	{
		alert("Enter a city for the contact organization.");
		theForm.city.focus();
	}
	else if (((theForm.state.value == "") && (theForm.state_other.value == "")) && ((theForm.country.value == "UNITED STATES") || (theForm.country.value == "CANADA") || (theForm.country.value == "AUSTRALIA")))	{
		alert("Enter a state for the contact organization.");
		theForm.state.focus();
	}
	else if (theForm.zip.value == "")	{
		alert("Enter a ZIP/Postal code for the contact organization.");
		theForm.zip.focus();
	}
	else if (theForm.country.value == "")	{
		alert("Enter a country for the contact organization.");
		theForm.country.focus();
	}
	else if ((theForm.telephone1.value == "") || (theForm.telephone2.value == "") || (theForm.telephone3.value == "")) {
		alert("Enter telephone for the contact organization.");
		theForm.telephone1.focus();
	}
	else if (theForm.email_address.value == "")	{
		alert("Enter an email address.");
		theForm.email_address.focus();
	}	
	else if (theForm.strCAPTCHA.value == "")	{
		alert("That is not the correct code.  Please re-enter it.");
		theForm.strCAPTCHA.focus();
	}
	else	{	
		bolPassed	=	true;
	}
	if (bolPassed)	{
		return valEmailBox(theForm.email_address.value);
	}
}
function valEmailBox( email_address ) {
				bolPassed	=	true

    fieldName   = document.forms[2].email_address;
    fieldValue  = document.forms[2].email_address.value;

    var err02   = "Please enter a valid 'E-mail' address!";

        if( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test( fieldValue )) {
            // return true;
        } else {
            alert( err02 );
            document.forms[2].email_address.focus();
            bolPassed	=	false

        }
    			if (bolPassed)	{
					document.forms[2].submit();
}
}

var dtCh= "/";
var minYear=1900;
var maxYear=2100;

function isInteger(s){
	var i;
    for (i = 0; i < s.length; i++){   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag){
	var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++){   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function daysInFebruary (year){
	// February has 29 days in any year evenly divisible by four,
    // EXCEPT for centurial years which are not also divisible by 400.
    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
function DaysArray(n) {
	for (var i = 1; i <= n; i++) {
		this[i] = 31
		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
		if (i==2) {this[i] = 29}
   } 
   return this
}

function isDate(dtStr){
	var daysInMonth = DaysArray(12)
	var pos1=dtStr.indexOf(dtCh)
	var pos2=dtStr.indexOf(dtCh,pos1+1)
	var strMonth=dtStr.substring(0,pos1)
	var strDay=dtStr.substring(pos1+1,pos2)
	var strYear=dtStr.substring(pos2+1)
	strYr=strYear
	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) {
		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
	}
	month=parseInt(strMonth)
	day=parseInt(strDay)
	year=parseInt(strYr)
	if (pos1==-1 || pos2==-1){
		//alert("The date format should be : mm/dd/yyyy")
		return false
	}
	if (strMonth.length<1 || month<1 || month>12){
		//alert("Please enter a valid month")
		return false
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
		//alert("Please enter a valid day")
		return false
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
		//alert("Please enter a valid 4 digit year between "+minYear+" and "+maxYear)
		return false
	}
	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
		//alert("Please enter a valid date")
		return false
	}
return true
}
//-->