var RightMenu = {};

RightMenu.FontSize = function(obj, nFontSize){
	var request = new CHttpRequest();	
	request.QueryString = "AjaxType=HTML&RequestFile=PublicControls.RightMenu&MethodName=XWriteInSession";
	request.AsyncCall = true;
	//request.State = sender;
	request.AddProperty("Arguments[FontSize]", nFontSize);
	request.OnResponse = RightMenu.FontSize_CallBack;
	request.Send();
	ChangeFontSize(obj, nFontSize);
}

RightMenu.FontSize_CallBack = function(request, state)
{
	return true;
}

function ChangeFontSize(Element, nSize){
    for(var nCount = 0; nCount < Element.childNodes.length; nCount++)
    {
        if(Element.childNodes[nCount].innerHTML != undefined)
                Element.childNodes[nCount].style.fontSize= nSize + "px";
        ChangeFontSize(Element.childNodes[nCount], nSize);
    } 
}