<!--
function checkForm() {
	var why = "";
	if(document.isoform.first.value == "") why += 'Please enter your first name.\n';
	if(document.isoform.last.value == "") why += 'Please enter your last name.\n';
	why += checkEmail(document.isoform.email.value);
	if(document.isoform.address1.value == "") why += 'Please enter your address.\n';
	if(document.isoform.city.value == "") why += 'Please enter your city.\n';
	if(document.isoform.state.value == "") why += 'Please enter your state.\n';
	if(document.isoform.zip.value == "") why += 'Please enter your zip.\n';
	if(document.isoform.phone.value == "") why += 'Please enter your phone number.\n';
	if (!(document.isoform.attendeetype[0].checked || document.isoform.attendeetype[1].checked)) why += 'Please select your attendee status.\n';
	if (!(document.isoform.paymethod[0].checked || document.isoform.paymethod[1].checked)) why += 'Please select your payment method.\n';

	if (why != "") {
		alert(why);
		return false;
	}
	return true;
}

function checkEmail (strng) {
	var error="";
	var emailFilter=/^.+@.+\..{2,3}$/;
	if (!(emailFilter.test(strng))) { 
		error = 'Invalid email address.\n';
	}
	else {
	var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
	if (strng.match(illegalChars)) {
		error = 'The email address contains illegal characters.\n';
	}
	}
	if (strng == "") {
	   error = 'Please enter an email address.\n';
	}
	return error;    
}

function showdiv(active,whicharray){
	//Array of optional activities
	if(whicharray=='1'){
	var opacts = new Array("opact_golf", "opact_spa");
	}
	if(whicharray=='2'){
	var opacts = new Array("opact_golf2", "opact_spa2");
	}
	//Hide all of the levels
	for (var loop = 0; loop <opacts.length; loop++){
		document.getElementById(opacts[loop]).style.display = 'none'; 
	}
	//Make the active display
	if(active){
	document.getElementById(active).style.display = ''; 
	}
	return true;
} 
-->