function ProcessMessageList(b,a){var c,g=0;var d=b.attributes;gTotalItems=parseInt(GetXMLValue(d.getNamedItem("TOTAL_ITEMS")));var f=parseInt(GetXMLValue(d.getNamedItem("PAGE")));gItemsArrayServerTopIndex=parseInt(GetXMLValue(d.getNamedItem("TOP_INDEX")));gCurrSelectedPage=f;var l=GetXMLValue(d.getNamedItem("SORT_COLUMN"));var m=GetXMLValue(d.getNamedItem("SORT_ORDER"));var e=CalculateItemsPerPage(gMsgListHeight,gUnitScrollLength);gSecondPageNum=f;gThirdPageNum=gSecondPageNum+1;gFirstPageNum=gSecondPageNum- 1;if(gTotalItems=d&&c<=h&&(DataItemList_AddRowToList(LIST_ID, oItemsArray[c],a,c),g++),gCurrSelectedPage=1)}gRowsDrawn=g;DataItemList_SetSortColumnIcon(l,m);DataItemList_SetItemCount(LIST_ID,gTotalItems);1>=f&&(gScrollMode==SCROLL_MODE_VIRTUAL&&ScrollBar_SetUnitScrollPos(SCROLLBAR_DIV,SCROLLBAR_TD,0,gUnitScrollLength),gPrevFirstScrollPos=0,gPrevLastScrollPos=gNumItemsThisPage-1,gSecondPageNum=1);return!0} function ResizeControls(b){gMsgListHeight=DataItemList_GetMessageListBodyHeight(document);DataItemList_Init(LIST_ID);gMsgListHeight&&(DataItemList_RewriteTableRows(LIST_ID,0,arrTableColumns),gScrollMode==SCROLL_MODE_VIRTUAL&&ScrollBar_UpdateScrollState(SCROLLBAR_DIV,SCROLLBAR_TD,"PanelMessageList",gTotalItems))} function AdminList_Resize(){var b=document.body.clientHeight,a=document.getElementById("content_header_js").clientHeight+1;b-=2*a;0>b&&(b=0);document.getElementById("msgList_shell_js").style.height=b+"px";document.getElementById("msgList_container_js").style.height=b+"px";if(a=document.getElementById("ME_ScrollControlDiv"))a.style.height=b-27+"px"} function AdminList_CreateScroller(b,a){a&&1!=a?(oTd=document.createElement("td"),oTd.id="ME_ScrollControlTD",oTd.style.background="#D3D3D3",oTd.style.width="35px",oTd.style.borderLeft="1px solid #C0C0C0",a=document.createElement("div"),a.className="bttn_scroll_pgUp",addEvent(a,"click",function(){DataItemList_PageUp(LIST_ID,!1,!1)},!0),oTd.appendChild(a),a=document.createElement("div"),a.className="bttn_scroll_up",addEvent(a,"click",function(){DataItemList_SelectPrev(LIST_ID,!1,!1)},!0),oTd.appendChild(a), a=document.createElement("div"),a.className="bttn_scroll_down",addEvent(a,"click",function(){DataItemList_SelectNext(LIST_ID,!1,!1)},!0),oTd.appendChild(a),a=document.createElement("div"),a.className="bttn_scroll_pgDown",addEvent(a,"click",function(){DataItemList_PageDown(LIST_ID,!1,!1)},!0),oTd.appendChild(a)):(oTd=document.createElement("td"),oTd.id="ME_ScrollControlTD",oTd.className="msgList_table_scroll",oDivTop=document.createElement("div"),oDivTop.className="dataTable_scrollbar_top",oTd.appendChild(oDivTop), oDiv=document.createElement("div"),oDiv.id="ME_ScrollControlDiv",oDiv.className="msgList_scroller",addEvent(oDiv,"scroll",function(){clearTimeout(ME_ScrollControl_Timeout);ME_ScrollControl_Timeout=setTimeout("ScrollBar_DoScroll(SCROLLBAR_DIV, SCROLLBAR_TD, LIST_ID);",ME_SCROLL_DELAY)},!0),a=document.createElement("div"),a.id="ME_ScrollControlCanvas",a.style.visibility="hidden",oDiv.appendChild(a),oTd.appendChild(oDiv));b.appendChild(oTd)};