function formCheck(form) 
{
	var errorcount = 0;
	var errors = "";
	var errorField = document.getElementById('messages');
	var email = document.registrationForm.email.value;
	var spamtest = document.registrationForm.stest.value;
	//if (spamtest != 'blue' && spamtest != 'Blue') { errors += "VERIFICATION, "; errorcount++; }
	if (document.registrationForm.camper_name.value == "") { errors += "Name, "; errorcount++; }
	if (document.registrationForm.address.value == "") { errors += "Address, "; errorcount++; }
	if (document.registrationForm.city_state_zip.value == "") { errors += "City State Zip, "; errorcount++; }
	if (document.registrationForm.birthday.value == "") { errors += "Birthday, "; errorcount++; }
	if (document.registrationForm.grade.value == "") { errors += "Grade, "; errorcount++; }
	if (document.registrationForm.emergency_contact.value == "") { errors += "Emergency Contact, "; errorcount++; }
	if (document.registrationForm.emergency_phone.value == "") { errors += "Emercency Phone, "; errorcount++; }
	if (document.registrationForm.parent_name.value == "") { errors += "Parent Names, "; errorcount++; }
	if (document.registrationForm.home_phone.value == "") { errors += "Home Phone, "; errorcount++; }
	if (document.registrationForm.first_camp_name.value == "") { errors += "1st Camp Name, "; errorcount++; }
	if (document.registrationForm.first_camp_date.value == "") { errors += "1st Camp Date, "; errorcount++; }
	if (document.registrationForm.first_camp_code.value == "") { errors += "1st Camp Code, "; errorcount++; }
	if ((email.indexOf(".") < 2) || (email.indexOf("@") < 0)) { errors += "Email, "; errorcount++; }
	if (errorcount >= 1)
	{
		errorField.style.display = "block";
		errorField.innerHTML = "<p>The following fields are incorrect or missing: </p><p>" + errors + "</p>"; 
		scroll(0,0);
		return false;
	}
}
function show(id)
{
	if(document.getElementById(id).style.display =="none")
	{
		document.getElementById(id).style.display = "block";
	}
}
function hide(id)
{
	if(document.getElementById(id).style.display =="block")
	{
		document.getElementById(id).style.display = "none";
	}
	else if(document.getElementById(id).style.display == "none")
	{
		document.getElementById(id).style.display = "none";
	}
}
