var userRemindPasswordCallback = null;

function UserRemindPassword()
{
    this.request = BASE_URL + 'indexajax.php?action=UserRemindPassword';
}

UserRemindPassword.prototype.show = function(callback)
{
    window.location.href='http://www.eska.pl/klub?przypomnij_haslo=true';
}

UserRemindPassword.prototype.remind = function(email) 
{
    var ajaxResponseResult;
    var ajaxResponseErrors;
    var ajaxResponseMessage;
    
    $.ajax({
        'type'     : 'get',
        'url'      : this.request + '&start=submit',
        'data'     : {
            'usrzu_email_ajax'  : email
        },
        'dataType' : 'xml',
        'async'    : false,
        'success'  : function(xml) {
            $("response > success", xml).each (
                function()
                {
                	ajaxResponseMessage = ($(this).text());
                }
            );
        
            $("response > error", xml).each (
                function()
                {
                	ajaxResponseMessage = ($(this).text());
                }
            );
        }
    });
    
    return ajaxResponseMessage;
}



