function MovePaging(status,total,offset)
{var pagingPos=parseFloat(document.getElementById("PagingPos").value);var startPage=1;var endPage=(total/12);if((total%12)>0)
{endPage++;}
if(endPage>500){endPage=500;}
var startShow=(Math.floor((offset/12))+1);startShow=(startShow-(startShow%10));if(pagingPos!=-1)
{startShow=pagingPos;}
var endShow=startShow+9;if(endShow>endPage)
{endShow=endPage;}
if(status=="next"){startShow=startShow+10;endShow=startShow+9;}else if(status=="prev"){startShow=startShow-10;endShow=startShow+9;}
document.getElementById("PagingAreaTop").style.display="inline";document.getElementById("PagingAreaBot").style.display="inline";for(i=startPage;i<=endPage;i++){var pTop=document.getElementById("PageLinkTop"+i);var pBot=document.getElementById("PageLinkBot"+i);if((i>=startShow)&&(i<=endShow)){if(pTop){pTop.style.display="inline";}
if(pBot){pBot.style.display="inline";}}
else{if(pTop){pTop.style.display="none";}
if(pBot){pBot.style.display="none";}}}
var nt=document.getElementById("btNextTop");var nb=document.getElementById("btNextBot");var pt=document.getElementById("btPrevTop");var pb=document.getElementById("btPrevBot");if(endShow>=endPage){nt.style.display="none";nb.style.display="none";}
else{nt.style.display="inline";nb.style.display="inline";}
if(startShow<=1){pt.style.display="none";pb.style.display="none";}
else{pt.style.display="inline";pb.style.display="inline";}
if(startShow<=0){startShow=1}
document.getElementById("PagingPos").value=startShow;}
