$(document).ready(function(){
$("#passwordform").submit(function(){



var str = $("#passwordform").serialize();

   $.ajax({
   type: "POST",
   url: "/full/lost_pass/?ajax=1",
   data: str,
   success: function(msg){

$("#passwordform").ajaxComplete(function(event, request, settings){

if(msg == 'OK')
{
	$('#passworderror').html("pwd sent");
	$('#clcbtn').val('Close');
	$('#okbtn').attr("disabled", true);
}
else
{
	$('#passworderror').html("chybny mail");
}


});

}

 });

return false;

});

});
