function checktheForm(CF_this)
{

	if ( !hasValue(CF_this.f_teamname, "TEXT") ) { if (!onError(CF_this.f_teamname, "You Must Enter the Team Name")) { return false; } }
	
	if ( !hasValue(CF_this.f_contactname, "TEXT") ) { if (!onError(CF_this.f_contactname, "You Must enter Contact's Name")) { return false; } }
	
	if ( !hasValue(CF_this.f_address, "TEXT") ) { if (!onError(CF_this.f_address, "You Must enter the Address")) { return false; } }
	
	if ( !hasValue(CF_this.f_city, "TEXT") ) { if (!onError(CF_this.f_city, "You Must Enter a City")) { return false; } }

	if ( !hasValue(CF_this.f_state, "TEXT") ) { if (!onError(CF_this.f_state, "You Must Enter a State")) { return false; } }

	if ( !checkstate(CF_this.f_state.value) ) {	if (!onError(CF_this.f_state, "You Have Entered an Invalid State (ex: MO,CA)")) { return false; } }

	if ( !hasValue(CF_this.f_zip, "TEXT") ) { if (!onError(CF_this.f_zip, "You Must Enter a Zip Code")) { return false; } }

	if ( !checkzip(CF_this.f_zip.value) ) {	if (!onError(CF_this.f_zip, "You Have Entered an Invalid Zip Code (ex: 65804,91505)")) { return false; } }

	if ( !hasValue(CF_this.f_email, "TEXT") && !hasValue(CF_this.f_dayphone, "TEXT") && !hasValue(CF_this.f_eveningphone, "TEXT") ) { if (!onError(CF_this.f_dayphone, "You Must enter an Email Address or Phone Number so that We Can Contact You")) { return false; } }

	if ( hasValue(CF_this.f_dayphone, "TEXT") && !checkphone(CF_this.f_dayphone.value) ) { if (!onError(CF_this.f_dayphone, "You Have Entered an Invalid Home Phone Number")) { return false; } }

	if ( hasValue(CF_this.f_eveningphone, "TEXT") && !checkphone(CF_this.f_eveningphone.value) ) { if (!onError(CF_this.f_eveningphone, "You Have Entered an Invalid Evening Phone Number")) { return false; } }

	if ( hasValue(CF_this.f_email,"TEXT") && !checkemail(CF_this.f_email.value) ) { if (!onError(CF_this.f_email, "You Have Entered an Invalid Email Address")) { return false; } }

	if ( hasValue(CF_this.f_fax, "TEXT") && !checkphone(CF_this.f_fax.value) ) {	if (!onError(CF_this.f_fax, "You Have Entered an Invalid FAX Number")) { return false; } }

	if ( ( hasValue(CF_this.f_catbackyard2, "SELECT") || hasValue(CF_this.f_catbackyard3) ) && !hasValue(CF_this.f_catbackyard1,"SELECT") ) {	if (!onError(CF_this.f_catbackyard1, "You Must Choose the FIRST Backyard Category BEFORE Selecting a Second or Third Category")) { return false; } }

	if ( !hasValue(CF_this.f_catentry1, "SELECT") && !hasValue(CF_this.f_catentry2, "SELECT") && !hasValue(CF_this.f_catentry3, "SELECT") && !hasValue(CF_this.f_catbackyard1, "SELECT") ) { if (!onError(CF_this.f_catentry1, "You Must Choose What Category(ies) Your Team Wants To Compete In")) { return false; } }

	var catval1 = CF_this.f_catentry1.options[CF_this.f_catentry1.selectedIndex].value;
	var catval2 = CF_this.f_catentry2.options[CF_this.f_catentry2.selectedIndex].value;
	var catval3 = CF_this.f_catentry3.options[CF_this.f_catentry3.selectedIndex].value;
	
	if (  ( catval2 != '' && (catval1 == catval2 || catval2 == catval3) ) ||
			( catval3 != '' && catval1 == catval3 )  ) { if (!onError(CF_this.f_catentry1, "Please Choose a DIFFERENT Option for EACH MIM Category")) { return false; } }

	var catval1 = CF_this.f_catbackyard1.options[CF_this.f_catbackyard1.selectedIndex].value;
	var catval2 = CF_this.f_catbackyard2.options[CF_this.f_catbackyard2.selectedIndex].value;
	var catval3 = CF_this.f_catbackyard3.options[CF_this.f_catbackyard3.selectedIndex].value;
	
	if (  ( catval2 != '' && (catval1 == catval2 || catval2 == catval3) ) ||
			( catval3 != '' && catval1 == catval3 )  ) { if (!onError(CF_this.f_catentry1, "Please Choose a DIFFERENT Option for EACH Backyard Category")) { return false; } }

	return true;

} //end checktheForm function


function updateTotal(theForm) {
	newvalue=0;
	if (theForm.f_catentry1.options[theForm.f_catentry1.selectedIndex].value != '') { newvalue = newvalue + 125; }
	if (theForm.f_catentry2.options[theForm.f_catentry2.selectedIndex].value != '') { newvalue = newvalue + 100; }
	if (theForm.f_catentry3.options[theForm.f_catentry3.selectedIndex].value != '') { newvalue = newvalue + 75; }
	if (theForm.f_catbackyard1.options[theForm.f_catbackyard1.selectedIndex].value != '') { newvalue = newvalue + 50; }
	if (theForm.f_electricity.options[theForm.f_electricity.selectedIndex].value != '0') { newvalue = newvalue + 10; }
	if (isNaN(newvalue)){ newvalue = 0;}
	theForm.f_total.value = newvalue;
}// end updateTotal function
