function validateSubscribe(theForm) {
	if(theForm.name.value == "") {
		alert("Please enter your name.");
		theForm.name.focus();
		return;
	} else if(!getEmailIsValid(theForm.email.value)) {
		alert("Sorry, the email address is invalid, please enter again.");
		theForm.email.focus();
		return;
	}
	
	theForm.submitType.value = "subscribe";
  
	theForm.submit();
}

function validateUnsubscribe(theForm) {
	if(!getEmailIsValid(theForm.email.value)) {
		alert("Sorry, the email address is invalid, please enter again.");
		theForm.email.focus();
		return;
	}
	
	theForm.submitType.value = "unsubscribe";
  
	theForm.submit();
}