function validateForm(theForm) {
    var why = "";

    why += isEmpty(theForm.fname.value, "First Name");
    why += isEmpty(theForm.lname.value, "Last Name");
    why += isEmpty(theForm.clbname.value, "Club Name");
	why += isEmpty(theForm.clbcity.value, "Club City");
	why += isEmpty(theForm.clbstate.value, "Club State");
	why += isNotSelected(theForm.assnID.value, "Authorized Golf Association");
	    
	if (why != "") {
		alert(why);
    	return false;
    }
	return true;
}

 
function isEmpty(strng, fldName) {
	var error = "";
	if (strng.length == 0) {
     	error = fldName + " has not been filled in.\n"
  	}
	return error;	  
}

function isNotSelected(strng, fldName) {
	var error = "";
	if (strng.length == 0) {
		error = fldName + " has not been selected.\n";
  	}
	return error;
}	