/*++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
	function clearForm(){
		if (document.forms['subscribe'].email.value == "email address"){
			document.forms['subscribe'].email.value = "";
		}
	}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

	function validate_pledge_search(form){
			var alerts = new Array();
			var theIndex = 0;
			var alert_str = "";

			if ( document.pledge_form.last_name.value != "" && document.pledge_form.participant.value != ""){
				alerts[theIndex] = "Please search either by last name or participant ID, not both.  Thanks!";
				theIndex++;
			}

			if (alerts.length>0){
					alert(alerts[0]);
					document.pledge_form.last_name.value = "";
					document.pledge_form.participant.value = "";
					document.pledge_form.last_name.focus();
					return false;
			} 
		return true;

		}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

function validate(form){
		var alerts = new Array();
		var theIndex = 0;
		var alert_str = "";

		var pledge_amount = document.form1.amount.value;

		if ( (document.form1.amount.value == "") || isNaN(document.form1.amount.value) ){
			alerts[theIndex] = "Please enter a valid dollar amount";
			theIndex++;
		}

		if (document.form1.first_name.value == ""){
			alerts[theIndex] = "Please enter your first name";
			theIndex++;
		}

		if (document.form1.last_name.value == ""){
			alerts[theIndex] = "Please enter your last name";
			theIndex++;
		}

		if (document.form1.address.value == ""){
			alerts[theIndex] = "Please enter your address";
			theIndex++;
		}

		if (document.form1.city.value == ""){
			alerts[theIndex] = "Please enter your city";
			theIndex++;
		}

		if (document.form1.state[0].selected){
			alerts[theIndex] = "Please select your state";
			theIndex++;
		}

		if ( (document.form1.zip.value == "") || (document.form1.zip.value.length < 5) || isNaN(document.form1.zip.value) ){
			alerts[theIndex] = "Please enter your zip";
			theIndex++;
		}

		if ( (document.form1.phone.value == "") || (document.form1.phone.value.length < 10) || isNaN(document.form1.phone.value) ){
			alerts[theIndex] = "Please enter your phone number - no dashes or parenthesis\n\t(ex: 1231231234)";
			theIndex++;
		}

			if (alerts.length>0){
				for ( var i=0; i<alerts.length; i++ ){
					alert_str += eval(i+1) + ". " + alerts[i] + "\n\n";
				}
					alert("Your pledge form is incomplete.  Please examine the messages below:\n\n" + alert_str);
					return false;
			} 


			if (!confirm( 'You are about to pledge $' + pledge_amount + '.  Is this okay? (OK - Yes, Cancel and change - No)' )){
			return false;
			}

	return true;

	}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

function admin_validate(form){
		var alerts = new Array();
		var theIndex = 0;
		var alert_str = "";


		if ( (document.form1.entry.value == "") || !isNaN(document.form1.entry.value) ){
			alerts[theIndex] = "Please enter your initials to get started";
			theIndex++;
		}

			if (alerts.length>0){
				for ( var i=0; i<alerts.length; i++ ){
					alert_str += eval(i+1) + ". " + alerts[i] + "\n\n";
				}
					alert(alert_str);
					return false;
			} 
	return true;

	}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
