﻿function login(_username, _password, _ricordami){
    jQuery('#errore').hide('slow');

    $.ajax({ url: 'Account.login.aspx',
            type: 'POST',
            data: 'username=' + _username + '&password=' + _password + '&ricordami=' + _ricordami,
            success: function(html) {
                if (html == 'FAILED') {
                    jQuery('#txtLoginErrore').show('slow');
                } else {
                    location.reload(true);
                };
            }
    });
}
