function doLogin() {	authBox = $("#auth");	savedHTML = authBox.html();		login = $("#auth_login").val();	passw = $("#auth_pass").val()	if (login == '') {		alert('Вы не ввели имя.');		exit;	}	authBox.fadeOut("slow", function () {		authBox.html('<span><img src="/files/imgs/loading.gif" />&nbsp;Авторизация...</span>');		authBox.fadeIn("slow", function () {			$.ajax({				type: "POST",				url: "/users/login/",				timeout: 5000,				data: "login=" + login + "&password=" + passw,				success: function(msg){					authBox.fadeOut("slow", function() {						authBox.html(msg);						authBox.fadeIn("slow");										});				},				error: function() {					authBox.fadeOut("slow", function() {						authBox.html(savedHTML);						authBox.fadeIn("slow", function() {							alert('Извините, произошла ошибка - авторизация не удалась. Попробуйте повторить позже.');						});					});				}			});					});	});	}