

function enewsletter_validation() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.


	if (!validatePresent(document.forms.registration.ZipCode,  'zip_code_msg')){ errs += 1;} 

    if (!validateEmail(document.forms.registration.email_address,  'email_address_msg',true)){ errs += 1;} 

	if (!validatePresent(document.forms.registration.full_name,  'full_name_msg')){ errs += 1;}



    if (errs>1){  alert('Please correct all fields marked with ***');}

    if (errs==1){ alert('Please correct the field marked with ***');}

 

	return (errs==0);

}



function contactus_validation1() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.



	if (!validatePresent(document.forms.registration.last_name,  'last_name_msg')){ errs += 1;}

	if (!validatePresent(document.forms.registration.first_name,  'first_name_msg')){ errs += 1;}



    if (errs>1){  alert('Please correct all fields marked with ***');}

    if (errs==1){ alert('Please correct the field marked with ***');}

 

	return (errs==0);

}



function contactus_validation3() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.

	if (!validateEmail(document.forms.registration.email_address,  'email_address_msg',true)){ errs += 1;} 

	if (!validatePresent(document.forms.registration.comments,  'comments_msg')){ errs += 1;}

	

    if (errs>1){  alert('Please correct all fields marked with ***');}

    if (errs==1){ alert('Please correct the field marked with ***');}

 

	return (errs==0);

}





function booking_validation1() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.



    	if (!validateEmail(document.forms.registration.email_address,  'email_address_msg',true)){ errs += 1;} 

	if (!validatePresent(document.forms.registration.last_name,  'last_name_msg')){ errs += 1;}

	if (!validatePresent(document.forms.registration.first_name,  'first_name_msg')){ errs += 1;}

	if (!validatePresent(document.forms.registration.organization_name,  'organization_name_msg')){ errs += 1;}



    	if (errs>1){  alert('Please correct all fields marked with ***');}

    	if (errs==1){ alert('Please correct the field marked with ***');}

 

	return (errs==0);

}



function booking_validation2() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.



	if (!validatePresent(document.forms.registration.phone,  'phone_msg')){ errs += 1;}

	if (!validatePresent(document.forms.registration.city, 'city_msg')){ errs += 1;}

	if (!validateSelectBox(document.forms.registration.state, 'state_msg')){ errs += 1;}

	if (!validatePresent(document.forms.registration.zip_code, 'zip_code_msg')){ errs += 1;}

	if (!validatePresent(document.forms.registration.comments, 'comments_msg')){ errs += 1;}



    	if (errs>1){  alert('Please correct all fields marked with ***');}

    	if (errs==1){ alert('Please correct the field marked with ***');}

 

	return (errs==0);

}





function testimony_validation1() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.



	if (!validatePresent(document.forms.registration.name,  'name_msg')){ errs += 1;} 



    	if (errs>1){  alert('Please correct all fields marked with ***');}

    	if (errs==1){ alert('Please correct the field marked with ***');}

 

	return (errs==0);

}



function testimony_validation2() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.



    	if (!validateEmail(document.forms.registration.email_address,  'email_address_msg',true)){ errs += 1;} 



    	if (errs>1){  alert('Please correct all fields marked with ***');}

    	if (errs==1){ alert('Please correct the field marked with ***');}

 

	return (errs==0);

}



function testimony_validation3() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.



	if (!validatePresent(document.forms.registration.testimony,  'testimony_msg')){ errs += 1;} 



    	if (errs>1){  alert('Please correct all fields marked with ***');}

    	if (errs==1){ alert('Please correct the field marked with ***');}

 

	return (errs==0);

}





function donations_validation1() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.



	if (!validatePresent(document.forms.registration.last_name,  'last_name_msg')){ errs += 1;}

	if (!validatePresent(document.forms.registration.first_name,  'first_name_msg')){ errs += 1;}



    if (errs>1){  alert('Please correct all fields marked with ***');}

    if (errs==1){ alert('Please correct the field marked with ***');}

 

	return (errs==0);

}



function donations_validation2() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.

	if (!validateEmail(document.forms.registration.email_address,  'email_address_msg',true)){ errs += 1;} 

	if (!validatePresent(document.forms.registration.zip_code,  'zip_code_msg')){ errs += 1;}

	if (!validateSelectBox(document.forms.registration.state,  'state_msg')){ errs += 1;}	

	if (!validatePresent(document.forms.registration.city,  'city_msg')){ errs += 1;}

	if (!validatePresent(document.forms.registration.address,  'address_msg')){ errs += 1;}

	



    if (errs>1){  alert('Please correct all fields marked with ***');}

    if (errs==1){ alert('Please correct the field marked with ***');}

 

	return (errs==0);

}



function donations_validation3() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.

	if (!validatePresent(document.forms.registration.gift_amount,  'gift_amount_msg')){ errs += 1;}

	



    if (errs>1){  alert('Please correct all fields marked with ***');}

    if (errs==1){ alert('Please correct the field marked with ***');}

 

	return (errs==0);

}



function donations_validation4() 

{

	var elem;

	var errs=0;

	// execute all element validations in reverse order, so focus gets

	// set to the first one in error.



	if (!validatePresent(document.forms.registration.signature,  'signature_msg')){ errs += 1;}

	if (!validateMonthYear(document.forms.registration.exp_month,document.forms.registration.exp_year,  'exp_msg')){ errs += 1;}	



	if (!validateCreditCard(document.forms.registration.cc_number,  'cc_number_msg')){ errs += 1;}

	if (!validatePresent(document.forms.registration.name_on_card,  'name_on_card_msg')){ errs += 1;}

	



    if (errs>1){  alert('Please correct all fields marked with ***');}

    if (errs==1){ alert('Please correct the field marked with ***');}

 

    // If everything checks out, we'll submit the form, if not, we return the false status

	if (errs > 0){

		return false;

	}

	else theForm.submit();    

    

	//return (errs==0);

}