function sendLostPassword()
{
	var email = $('lostpassword').value;
	
	var req = new AJAX.Request('lostpassword.php?action=beready_lost_password&lang=' + $varLang, {
		method: 'POST',
		parameters: ['email=' + email],
		onComplete: function(e) {
			
			$('lost_password_form').style.display = 'none';
			
			if (e.responseText == '1')
			{
				show('lost_password_confirm');
			}
			else
			{
				show('lost_password_error');
			}
		}
	});
}

function showLostPassword()
{
	$('clearsite_password').onclick = lostpassword;
	
	$('lost_password_confirm').style.display = 'none';
	$('lost_password_error').style.display = 'none';
	show('lost_password_form');
	lostpassword('lost_password');
}
