function CheckMembershipForm(sForm) {
var str;
var title;
var other_title;
var email;
var location_method;
var other_search_engine;

title = sForm.Title.value;
other_title = sForm.OtherTitle.value;
	
	if (title == "") {
		alert("Please enter your title (e.g. 'Mr').");
		sForm.Title.focus();
		return false;
	}

	if ( (title == "Other") && (other_title == "") ){
		alert("Please enter your title.");
		sForm.OtherTitle.focus();
		return false;
	}

str = sForm.Forenames.value;
	
	if (str == "") {
		alert("Please enter your forename(s).");
		sForm.Forenames.focus();
		return false;
	}

str = sForm.Surname.value;
	
	if (str == "") {
		alert("Please enter your surname.");
		sForm.Surname.focus();
		return false;
	}

str = sForm.Telephone.value;

	if (str == "") {
		alert("Please enter your telephone number.");
		sForm.Telephone.focus();
		return false;
	}

email = sForm.email.value;

	if (email == "") {
		alert("Please enter your e-mail address.");
		sForm.email.focus();
		return false;
	}

	if ( ( (email.indexOf('@',0) == -1) || (email.indexOf ('.',0) == -1) ) && (email != "") ) {
		alert("The e-mail address given does not appear to be formatted correctly.\n\nPlease re-enter your e-mail address.");
		
		with (sForm.email) {
			select();
			focus();
		}

		return false;
	}


location_method = sForm.LocationMethod.value;
other_search_engine = sForm.OtherSearchEngine.value;
	
	if ( (location_method == "OtherSearchEngine") && (other_search_engine == "") ){
		alert("Please enter the search method you used to find our site.");
		sForm.OtherSearchEngine.focus();
		return false;
	}

sForm.submit();
return true;
}


function CheckFeedbackForm(sForm) {
var str;
var title;
var other_title;
var email;
var location_method;
var other_search_engine;

title = sForm.Title.value;
other_title = sForm.OtherTitle.value;
	
	if (title == "") {
		alert("Please enter your title (e.g. 'Mr').");
		sForm.Title.focus();
		return false;
	}

	if ( (title == "Other") && (other_title == "") ){
		alert("Please enter your title.");
		sForm.OtherTitle.focus();
		return false;
	}

str = sForm.Forenames.value;
	
	if (str == "") {
		alert("Please enter your forename(s).");
		sForm.Forenames.focus();
		return false;
	}

str = sForm.Surname.value;
	
	if (str == "") {
		alert("Please enter your surname.");
		sForm.Surname.focus();
		return false;
	}

str = sForm.Telephone.value;

	if (str == "") {
		alert("Please enter your telephone number.");
		sForm.Telephone.focus();
		return false;
	}

email = sForm.email.value;


	if (email == "") {
		alert("Please enter your e-mail address.");
		sForm.email.focus();
		return false;
	}

	if ( ( (email.indexOf('@',0) == -1) || (email.indexOf ('.',0) == -1) ) && (email != "") ) {
		alert("The e-mail address given does not appear to be formatted correctly.\n\nPlease re-enter your e-mail address.");
		
		with (sForm.email) {
			select();
			focus();
		}

		return false;
	}


location_method = sForm.LocationMethod.value;
other_search_engine = sForm.OtherSearchEngine.value;
	
	if ( (location_method == "OtherSearchEngine") && (other_search_engine == "") ){
		alert("Please enter the search method you used to find our site.");
		sForm.OtherSearchEngine.focus();
		return false;
	}

str = sForm.Comments.value;

	if (str == "") {
		alert("Please enter your comments in the box provided.");
		sForm.Comments.focus();
		return false;
	}

sForm.submit();
return true;
}
