function SaveProfile()
            {
                // Ustawia dane kontaktowe.
                Sys.Services.ProfileService.properties.Contact.FirstName = document.getElementById("txtFirstName").value;
                Sys.Services.ProfileService.properties.Contact.LastName = document.getElementById("txtLastName").value;
                Sys.Services.ProfileService.properties.Contact.Age = document.getElementById("txtAge").value;
                Sys.Services.ProfileService.properties.Contact.Email = document.getElementById("txtEmail").value;
                // Ustawia dane adresowe.
                Sys.Services.ProfileService.properties.Address.Street = document.getElementById("txtStreet").value;
                Sys.Services.ProfileService.properties.Address.City = document.getElementById("txtCity").value;
                Sys.Services.ProfileService.properties.Address.PostalCode = document.getElementById("txtPostalCode").value;
                // Ustawia kolor tła.
                Sys.Services.ProfileService.properties.Backgroundcolor = document.getElementById("txtBackgroundcolor").value;
                // Zapisuje dane profilu.
                Sys.Services.ProfileService.save(null, OnSaveCompletedCallback, OnProfileFailedCallback, null);
            }
