var TextSizeBlock = {}


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

TextSizeBlock.SaveFontSize = function(sender, nSize) {
   var request = new CHttpRequest();
	request.QueryString = "AjaxType=HTML&RequestFile=Blocks.TextSizeBlock&MethodName=XSaveFontSize";
	request.AsyncCall = true;
	request.State = sender
	request.AddProperty("Arguments[FontSize]", nSize);

	request.OnResponse = TextSizeBlock.SaveFontSize_Callback;
	request.Send();
}

TextSizeBlock.SaveFontSize_Callback = function(request, state){

	
}
