function login(form) {
	url = 'alumniLoginP.php';
	pars = Form.serialize(form);
	Form.disable(form);
	$('message').innerHTML = 'Logging in...';
	
	var unlockTimeout = setTimeout(function() {
		Form.enable(form);
		$('message').innerHTML = 'There was an error logging in. Please try again.';
	}, 10000);
	
	myAjax = new Ajax.Request(url, {
		method: 'post',
		postBody: pars,
		onLoading: function() { },
		onComplete: function(transport) {
			var status = transport.responseJSON;
			if (status.good) {
				$('message').innerHTML = 'Logged in... redirecting';
				location.href = status.redirect;
			}
			else {
				$('message').innerHTML = status.errors;
			}
			Form.enable(form);
			clearTimeout(unlockTimeout);
		}
	});
}