function validateServices() {
	var varErr = ""

	var idxFound = 0;
	objSel = document.getElementById("stateid")
	for (idx = 0; idx < objSel.length; idx++) {
		if (objSel.options[idx].selected)
			idxFound++;
	}
	if (idxFound == 0) varErr += "You must select at least one state that you service.\n"



	// max of 8

	var idxFound = 0;
	objSel = document.getElementById("serviceid")
	for (idx = 0; idx < objSel.length; idx++) {
		if (objSel.options[idx].selected)
			idxFound++;
	}
	if (idxFound > 8) varErr += "You can only select up to 8 Services.\n"


	// max of 9
	var idxFound = 0;
	objSel = document.getElementById("techexpid")
	for (idx = 0; idx < objSel.length; idx++) {
		if (objSel.options[idx].selected)
			idxFound++;
	}
	if (idxFound > 9) varErr += "You can only select up to 9 Technical Expertise.\n"


	// max of 13
	var idxFound = 0;
	objSel = document.getElementById("sectorexpid")
	for (idx = 0; idx < objSel.length; idx++) {
		if (objSel.options[idx].selected)
			idxFound++;
	}
	if (idxFound > 13) varErr += "You can only select up to 13 Sector Expertise.\n"


	// max of 1000 chars in textbox
	if (document.getElementById("textbox").value.length > 1000) varErr += "Your description can only contain up to 1000 characters.\n"

	if (varErr != "") {
		alert(varErr)
		return false;
	}
	else
		return true;
}