validateUnsubscribe = function() {
	// validate inputs

	
	
var emailPassed = validateInput($("#email"), new RegExp(/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i), "", "Please enter a valid email address:");
//var emailPassed = true;
	// check attempted insertion has passed all conditions
	if(emailPassed) {
		
	
		return true;
		
	} else {
		
		return false;
	}
}

$(function() {
	
	$("fieldset.last p.button").click(function(e) {
		e.preventDefault();
		if(validateUnsubscribe()) $(this).parent().parent()[0].submit();
		//if(validateSignUpFull()) document.location = $("a", this).attr("href");
	});
	
});