﻿function GetUserProfile (idClient, RsltElem, changeBalisage )
{
    AsyncData.GetAvatar(idClient.value, SucceededCallback, FailedCallBack ,RsltElem);
}



function SucceededCallback(result, userContext ,methodName)
{
    if(methodName == 'GetAvatar'){
        result = result.replace("<strong>", "<p><strong>");
        result = result.replace("</div>", "</div></p>");
        userContext.innerHTML = result;
    }
    

}
function FailedCallBack(result,userContext, eventArgs)
{
    if(methodName == 'GetAvatar'){
        var s= '<div class="avatar_block"><img width="80" height="80" alt="" src="http://forum.canalj.fr/htm2/images/forum/avatar_default.png"/><p>profil non disponible</p></div>';
        userContext.innerHTML = s;
    }
    

}
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();

