function ValidateForgotPasswordForm(theForm) {
  var email = theForm.email.value;
	
	if (!email) {
		alert("Please enter your email.");
		return false;
	} else {
		if ((email.indexOf('@') == -1) || (email.indexOf('.') == -1)) {
			alert("Wrong email format.");
			return false;
		} else {
			return true;
		}
	}
}
function ValidateLoginForm(theForm) {
  var username = theForm.username.value;
  var password = theForm.password.value;
	
	if (!username) {
		alert("Please enter your username.");
		return false;
	} else if (!password) {
			alert("Please enter your password.");
			return false;
	} else {
		return true;
	}
}
function goToMember(theAction) {

  lochref = 'index.php?pageaction=member&action='+theAction;
	
	location = lochref;
}

