function disclaimSite(the_site) {
	if (confirm('Please Note You are visiting a site outside of WFGW.\n\n Links to outside sites are provided as a convenient means to access additional relevant or useful information;\n\n however, WFGW is not responsible for the content, accuracy or opinions of these sites.\n\n Click OK to continue.')) {
		window.open(the_site, 'sitewindow', 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=640,height=480');
	}
	return false;
}

function validate_closings(the_form) {
	var why = '';
	if (the_form.organization.value == '') {
		why += 'Please enter an organization name.\n';
	}
	if (the_form.city.value == '') {
		why += 'Please enter a city.\n';
	}
	if (the_form.state.value == '') {
		why += 'Please enter a state.\n';
	}
	var email_reg = /[_a-zA-Z0-9.-]+@[_a-zA-Z0-9.-]+[.][_a-zA-Z0-9.-][_a-zA-Z0-9.-]+/;
	var res = email_reg.test(the_form.email.value);
	if (!res) {
		why += 'Please enter a valid email address.\n';
	}
	if (why != '') {
		alert(why);
		return false;
	} else {
		return true;
	}
}

function validate_prayer(the_form) {
	var why = '';
	if (the_form.yourname.value == '') {
		why += 'Please enter a name.\n';
	}
	if (the_form.prayer_request.value == '') {
		why += 'Please enter a prayer request.\n';
	}
	if (why != '') {
		alert(why);
		return false;
	} else {
		return true;
	}
}

function validate_elist(the_form) {
	var why = '';
	var email_reg = /[_a-zA-Z0-9.-]+@[_a-zA-Z0-9.-]+[.][_a-zA-Z0-9.-][_a-zA-Z0-9.-]+/;
	var res = email_reg.test(the_form.email.value);
	if (!res) {
		why += 'Please enter a valid email address.\n';
	}
	if (why != '') {
		alert(why);
		return false;
	} else {
		return true;
	}
}

function validate_pledge(the_form) {
	var why = '';
	if (the_form.firstname.value == '') {
		why += 'Please enter your first name.\n';
	}
	if (the_form.lastname.value == '') {
		why += 'Please enter you last name.\n';
	}
	if (the_form.address.value == '') {
		why += 'Please enter your address.\n';
	}
	if (the_form.city.value == '') {
		why += 'Please enter a city.\n';
	}
	if (the_form.state.value == '') {
		why += 'Please enter a state.\n';
	}
	if (the_form.zip.value == '') {
		why += 'Please enter a zip code.\n';
	}
	if (the_form.country.value == '') {
		why += 'Please enter a country.\n';
	}
	if (the_form.telephone.value == '') {
		why += 'Please enter a phone number.\n';
	}
	var email_reg = /[_a-zA-Z0-9.-]+@[_a-zA-Z0-9.-]+[.][_a-zA-Z0-9.-][_a-zA-Z0-9.-]+/;
	var res = email_reg.test(the_form.email.value);
	if (!res) {
		why += 'Please enter a valid email address.\n';
	}
	if (why != '') {
		alert(why);
		return false;
	} else {
		return true;
	}
}

function validate_contact(the_form) {
	var why = '';
	if (the_form.yourname.value == '') {
		why += 'Please enter a name.\n';
	}
	var email_reg = /[_a-zA-Z0-9.-]+@[_a-zA-Z0-9.-]+[.][_a-zA-Z0-9.-][_a-zA-Z0-9.-]+/;
	var res = email_reg.test(the_form.email.value);
	if (!res) {
		why += 'Please enter a valid email address.\n';
	}
	if (the_form.comment.value == '') {
		why += 'Please enter a prayer request.\n';
	}
	if (why != '') {
		alert(why);
		return false;
	} else {
		return true;
	}
}
