function formvalidate() {
// JS 10/21/2002
// validate forms
// some parts vary depending on forms
// if ok, submit

	var strErr = "";
	var frm = document.forms[0];

	if (frm.request_type.value == "camp_listing_form") {	
		if (frm.business_name.value == "") {
			strErr = appendError(strErr, "You did not enter a business name.");
		}
		if (frm.business_location.value == "") {
			strErr = appendError(strErr, "You did not enter a business location.");
		}
		if (frm.contact_person.value == "") {
			strErr = appendError(strErr, "You did not enter a contact person.");
		}
		if (frm.address_1.value == "") {
			strErr = appendError(strErr, "You did not enter a mailing address.");
		}
		if (frm.business_name.value == "") {
			strErr = appendError(strErr, "You did not enter a business name.");
		}
		if (frm.phone.value == "") {
			strErr = appendError(strErr, "You did not enter a local phone number.");
		}
		if (frm.range_of_rages.value == "") {
			strErr = appendError(strErr, "You did not enter a range of rates.");
		}
		
	}
	
	if (frm.request_type.value == "travel_guide" || frm.request_type.value == "getaway_card") {
		if (frm.first_name.value == "") {
			strErr = appendError(strErr, "You did not enter your first name.");
		}
		if (frm.last_name.value == "") {
			strErr = appendError(strErr, "You did not enter your last name.");
		}
		if (frm.email_address.value == "") {
			strErr = appendError(strErr, "You did not enter your e-mail address.");
		}
		if (frm.address_1.value == "") {
			strErr = appendError(strErr, "You did not enter your address.");
		}
		if (frm.city.value == "") {
			strErr = appendError(strErr, "You did not enter your city.");
		}
		if (frm.state_province.value == "") {
			strErr = appendError(strErr, "You did not enter your state.  For countries other than United States, please select N/A in the state field");
		}
		if (frm.postal_code.value == "") {
			strErr = appendError(strErr, "You did not enter your zip code.");
		}
		if (frm.country.selectedIndex == "") {
			strErr = appendError(strErr, "You did not specify your country.");
		}	
		if (frm.how_did_you_learn.selectedIndex == "") {
			strErr = appendError(strErr, "You did not enter how you found us.");
		}
		if (frm.mailing_list.selectedIndex == "") {
			strErr = appendError(strErr, "You did not specify if you want to be on the mailing list.");
		
		}
		}

	if (strErr == "") {
		document.forms[0].submit();
	} else {
		alert(strErr);
	}
}
function appendError(passedError, passedNew) {
// JS 10/21/2002
// write error at end of current error
	
	var strErrTemp = passedError;

	if (strErrTemp != "") {
		strErrTemp = strErrTemp + "\n"
	}
	strErrTemp = strErrTemp + passedNew;
	
	return strErrTemp;
}