
function setMyProfileImage (intImageId, intDesignId) {

    //$("#img_"+intImageId).html ("<img src=\"design/"+intDesignId+"/images/ajax_wait.gif\" />");

    $.post ("index.php", { ajax: "applic|modules|profile|profile.base.php", ac: "setProfileImage", intImageId: intImageId }, function (data) {

            //$("#img_"+intImageId).html (data);
            loadUserImage();
            $("#img_"+intImageId).attr ("onClick", "");
            $("#img_"+intImageId).attr ("style", "");
            $("#img2_"+intImageId).attr ("onClick", "");
            $("#img2_"+intImageId).attr ("style", "");

        }
    );

}

function setPassword () {

    var strPassword = $("#strPassword").val();
    var strRetype = $("#strPasswordRetype").val();

    $.post ("index.php", { ajax: "applic|modules|profile|profile.base.php", ac: "setPassword", strPassword: strPassword, strRetype: strRetype }, function (data) {

            var arrData = data.split(';');

            $("#strError").html(arrData[1]);

            if (arrData[0] == 'OK') {

                $("#strPassword").val("");
                $("#strPasswordRetype").val("");

            }
        }
    );

}
