// Wczytuje dane profilu i wyświetla je.
function OnLoadCompletedCallback(numProperties, userContext, methodName)
            {
                // Pobiera dane kontaktowe.
                document.getElementById("txtFirstName").value = Sys.Services.ProfileService.properties.Contact.FirstName;
                document.getElementById("txtLastName").value = Sys.Services.ProfileService.properties.Contact.LastName;
                document.getElementById("txtAge").value = Sys.Services.ProfileService.properties.Contact.Age;
                document.getElementById("txtEmail").value = Sys.Services.ProfileService.properties.Contact.Email;
                // Pobiera dane adresowe.
                document.getElementById("txtStreet").value = Sys.Services.ProfileService.properties.Address.Street;
                document.getElementById("txtCity").value = Sys.Services.ProfileService.properties.Address.City;
                document.getElementById("txtPostalCode").value =  Sys.Services.ProfileService.properties.Address.PostalCode;
                // Pobiera informacje o kolorze tła.
                document.getElementById("txtBackgroundcolor").value = Sys.Services.ProfileService.properties.Backgroundcolor;
                document.body.bgColor = Sys.Services.ProfileService.properties.Backgroundcolor;
            }
