function login(form) {
	var messageDiv = $('loginMessage');
	url = 'siteLoginP.php';
	pars = Form.serialize(form);
	Form.disable(form);
	messageDiv.innerHTML = 'Submitting...';
	var unlockTimeout = setTimeout(function() {
		Form.enable(form);
	}, 30000);
	myAjax = new Ajax.Request(url, {
		method: 'post',
		postBody: pars,
		onLoading: function() { },
		onComplete: function(transport) {
			var status = transport.responseJSON;
			if (status.good) {
				messageDiv.innerHTML = status.messages;
				location.href = status.redirect;
			}
			else {
				messageDiv.innerHTML = status.errors;
			}
			Form.enable(form);
			clearTimeout(unlockTimeout);
		}
	});
}
