function doneforgot(data) {
	if (data.success) $("#content").html("<h1>Account Recovery</h1>" + data.text);
	else $("#errors").html(data.message);
	eval(data.javascript);
	loading();
}

$(document).ready(function() {
	$('#recover').ajaxForm({
		beforeSubmit: function() { loading(); },
		dataType: 'json',
		success: doneforgot
	});
});