function LocalLoginSubmit(form){
	form_object = $(form)
	$.ajax({
		type: form_object.attr("method"),
		url: form_object.attr("action"),
		data: form_object.serialize(),
        beforeSend: function() { $.blockUI({ message: 'Logging in...' });  },
        complete: function() { $.unblockUI();  },
		success: function(text_return){
			location.href = text_return;
		},
		error: function(xhr) {
			$("#login_errors").html(xhr.responseText);
		}
	});
	return false;
}

function showLoginOthers() {
	$('#login_others').show();
	$('#login_form').hide();
}


