/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function utworzFakture(userId) {
    $('document').ready(function() {
        $('#message .center .right').html('<p>Twoje konto zostało doładowane</p><p>trwa generowanie faktury...</p><img style="margin: 0;" src="/images/ajax-loader2.gif" />');
        $.getJSON('/ajax.html', {action: 'utworzFakture', userId: userId}, function(data) {

            $('#message .center .right').html('<p style="color: #268c80;">Faktura została wysłana pod Twój adres email.<br />Jest również dostepna <a href="'+data.src+'" target="_blank">tutaj</a></p>');
        })
    });
    
}

