// JavaScript Document
<!-- Copyright 2003 Bontrager Connection, LLC
function CheckRequiredFields() {
var errormessage = new String();
// Put field checks below this point.

if(WithoutContent(document.registration.Info_TownCity.value))
	{ errormessage += "\n\nPlease enter the Town/City you live in."; }

if(WithoutContent(document.registration.Info_Address.value))
	{ errormessage += "\n\nPlease enter your Address."; }

if(WithoutContent(document.registration.Info_PostalCode.value))
	{ errormessage += "\n\nPlease enter your Postal Code."; }

if(WithoutContent(document.registration.Info_PhoneNumber.value))
	{ errormessage += "\n\nPlease enter your Phone Number."; }

if(WithoutContent(document.registration.Participant_1.value))
	{ errormessage += "\n\nPlease enter a Participant Name for the First participant."; }

if(WithoutSelectionValue(document.registration.ShirtSize_1))
	{ errormessage += "\n\nPlease select the shirt size for the First participant."; }

if((document.registration.Participant_2.value) != "" && (WithoutSelectionValue(document.registration.ShirtSize_2)))
	{ errormessage += "\n\nPlease select the shirt size for the Second participant."; }

if((document.registration.Participant_2.value) == "" && (!WithoutSelectionValue(document.registration.ShirtSize_2)))
	{ errormessage += "\n\nPlease enter a Participant Name for the Second participant."; }

if((document.registration.Participant_3.value) != "" && (WithoutSelectionValue(document.registration.ShirtSize_3)))
	{ errormessage += "\n\nPlease select the shirt size for the Third participant."; }

if((document.registration.Participant_3.value) == "" && (!WithoutSelectionValue(document.registration.ShirtSize_3)))
	{ errormessage += "\n\nPlease enter a Participant Name for the Third participant."; }


if((document.registration.Participant_4.value) != "" && (WithoutSelectionValue(document.registration.ShirtSize_4)))
	{ errormessage += "\n\nPlease select the shirt size for the Fourth participant."; }

if((document.registration.Participant_4.value) == "" && (!WithoutSelectionValue(document.registration.ShirtSize_4)))
	{ errormessage += "\n\nPlease enter a Participant Name for the Fourth participant."; }


if((document.registration.Participant_5.value) != "" && (WithoutSelectionValue(document.registration.ShirtSize_5)))
	{ errormessage += "\n\nPlease select the shirt size for the Fifth participant."; }

if((document.registration.Participant_5.value) == "" && (!WithoutSelectionValue(document.registration.ShirtSize_5)))
	{ errormessage += "\n\nPlease enter a Participant Name for the Fifth participant."; }


if((document.registration.Participant_6.value) != "" && (WithoutSelectionValue(document.registration.ShirtSize_6)))
	{ errormessage += "\n\nPlease select the shirt size for the Sixth participant."; }

if((document.registration.Participant_6.value) == "" && (!WithoutSelectionValue(document.registration.ShirtSize_6)))
	{ errormessage += "\n\nPlease enter a Participant Name for the Sixth participant."; }


if(WithoutSelectionValue(document.registration.Registering_Adults))
	{ errormessage += "\n\nPlease select the number of adults being registered."; }

if(WithoutSelectionValue(document.registration.Registering_Children))
	{ errormessage += "\n\nPlease select the number of children being registered."; }

// Put field checks above this point.


if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()


function WithoutContent(ss) {
if(ss.length > 0) { return false; }
return true;
}

function NoneWithContent(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].value.length > 0) { return false; }
	}
return true;
}

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}

function WithoutCheck(ss) {
if(ss.checked) { return false; }
return true;
}

function WithoutSelectionValue(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].selected) {
		if(ss[i].value.length) { return false; }
		}
	}
return true;
}

//-->