function JTongPager_changePageSize(eventSource){var $pageSizeList=$(".jtongui-pager div.pageSizeListPanel").eq(0);if($pageSizeList.is(":visible")){$pageSizeList.hide()}else{$pageSizeList.show();var left=$(eventSource).offset().left;var top=$(eventSource).offset().top;var pageSizeListHeight=$pageSizeList[0].scrollHeight;top=top-pageSizeListHeight;$pageSizeList.css("left",left);$pageSizeList.css("top",top)}};function JTongPager_changePageSizeTo(pageSize){var url=window.location.href;var newUrl="";url=url.replace("#","");url=url.replace("pagesize=1000","");url=url.replace("pagesize=500","");url=url.replace("pagesize=300","");url=url.replace("pagesize=100","");url=url.replace("pagesize=50","");url=url.replace("pagesize=30","");url=url.replace("pagesize=20","");url=url.replace("pagesize=10","");var endStr=url.substr(url.length-1,url.length);if(endStr=="?"||endStr=="&"){newUrl=url+"pagesize="+pageSize}else{if(url.indexOf("?")==-1){newUrl=url+"?pagesize="+pageSize}else{newUrl=url+"&pagesize="+pageSize}};window.location.href=newUrl};function JTongPager_showPageSizeListPanel(domObj){domObj.style.display="block"};function JTongPager_hidePageSizeListPanel(domObj){domObj.style.display="none"};function JTongPager_changePageIndex(eventSource){var $pageGotoPanel=$(".jtongui-pager div.pageGotoPanel").eq(0);if($pageGotoPanel.is(":visible")){$pageGotoPanel.hide()}else{$pageGotoPanel.show();var left=$(eventSource).offset().left;var top=$(eventSource).offset().top;var pageGotoPanelHeight=$pageGotoPanel[0].scrollHeight;left=left-($pageGotoPanel[0].scrollWidth-eventSource.scrollWidth);top=top-pageGotoPanelHeight;$pageGotoPanel.css("left",left);$pageGotoPanel.css("top",top)}};function JTongPager_showPageGotoPanel(domObj){domObj.style.display="block"};function hidePageGotoPanel(domObj){domObj.style.display="none"};function JTongPager_gotoBoxKeyDown(event){if(event.keyCode==13){pageDirectTo()}};function JTongPager_pageTo(pageIndex){var sPageIndex=$("#pageIndexGotoBox").val();pageTo(pageIndex,false)};function JTongPager_pageDirectTo(){var sPageIndex=$("#pageIndexGotoBox").val();if($.trim(sPageIndex)==""){return};if(isNaN(sPageIndex)){return};var pageIndex=parseInt(sPageIndex);pageGoTo()}