login = function() {
	Oasys.callMethod(
		"WebsiteLogin", 
		{
			email: $("Email").value,
			password: $("Password").value,
			rememberMe: $("RememberMe").checked,
			language: "en"
		}, 
		"Authenticating...",
		onLoggedIn
	);
}

onLoggedIn = function() {
	//underlying system knows to write a cookie on the ajax response, so we're done.
	//just redirect back to booking screen with a message:
	setCookie("NotifyClass", "InfoMessage");
	setCookie("Notification", "You have been successfully logged in. Please use our quick quote feature to enter your client's transfer details and click 'get quote'. You can then select private or shared and enter your client's details. Cham Van will then invoice you monthly.");
	document.location.href = "../"
}

