////////////////////////////////////////////////////////////数据显示
function get_bookData_Result_CallBack(response){
				if (response.value != null)
				{
　　　　			var ds = response.value;
　　　　			var _indexContainer=document.getElementById("splitpage");
					if(ds != null && typeof(ds) == "object" && ds.Tables != null)
					{
						Tds=ds;
						_totalLog=ds.Tables[0].Rows.length;
						_indexContainer.innerHTML=pageNo(_totalLog,_currentPage,18,5).join("&nbsp;");
						goToPage(_currentPage,10,_totalLog,5,_currentPage,_totalPages);
					}
					else
					{
						alert("数据读取失败!请刷新\n有疑问请按以下QQ联系管理员\nQQ1:28937303\nQQ2:20028636");
						return;
					}
				}
				return
}
/*
pageNo()分页初始化数据显示
*/
function pageNo(total,currentPage,perPage,showIndex){
var showIndex=showIndex?showIndex:5;
var currentPage=currentPage?currentPage:1;
var perPage=perPage?perPage:5;
	if(total/perPage>parseInt(total/perPage)){
		pages=parseInt(total/perPage)+1;
	}
	else{
	    pages=parseInt(total/perPage);
	}
	_totalPages=pages;
	var pageIndex=[];
	if (total==0){
	    return pageIndex;
	    }
   if(Tds != null && typeof(Tds) == "object" && Tds.Tables != null){
    pageIndex.push("<ul>");
    pageIndex.push("<li style='width:50px'><span onclick=goToPage(_currentPage-1,"+perPage+","+total+","+showIndex+","+currentPage+","+pages+")>上一页</span></li>");
    if(pages<=2*showIndex)
	{
		for(var i=1;i<=pages;i++)
		{
			if(i==currentPage){
			pageIndex.push("<li><span style='background:#F00;color:#FFF;font-weight:bold;' onclick=goToPage("+i+","+perPage+","+total+","+showIndex+","+currentPage+","+pages+")>"+i+"</span></li>");
			}
			else{
			pageIndex.push("<li><span onclick=goToPage("+i+","+perPage+","+total+","+showIndex+","+currentPage+","+pages+")>"+i+"</span></li>");
			}
		}
	
	}
    else{
        if((currentPage-showIndex)<1)
            {var startIndex=1;}
        else
            {var startIndex=currentPage-showIndex;}
        
        if((currentPage+showIndex-1)>pages)
            {var endIndex=pages;}
        else
            {var endIndex=(currentPage+showIndex-1);}
		for(var i=startIndex;i<=endIndex;i++)
		{
			if(i==currentPage){
			pageIndex.push("<li><span style='background:#F00;color:#FFF;font-weight:bold;' onclick=goToPage("+i+","+perPage+","+total+","+showIndex+","+currentPage+","+pages+")>"+i+"</span></li>");
			}
			else{
			pageIndex.push("<li><span onclick=goToPage("+i+","+perPage+","+total+","+showIndex+","+currentPage+","+pages+")>"+i+"</span></li>");
			}
		}
	}
	pageIndex[pageIndex.length]="<li style='width:50px'><span onclick=goToPage(_currentPage+1,"+perPage+","+total+","+showIndex+","+currentPage+","+pages+")>下一页</span></li></ul>"
	}
	return pageIndex;
}
/*
goToPage()页面跳转函数
getRecord()数据显示函数
*/
function goToPage(index,RecordsPerPage,totalRecords,onceShow,currentPage,total_page){
index<1?index=total_page:"";
index>total_page?index=1:"";
var startIndex=(index-1)*RecordsPerPage;
var endIndex=index*RecordsPerPage-1;
var _indexContainer=document.getElementById("splitpage");
_currentPage=index;
if(endIndex>totalRecords-1){endIndex=totalRecords-1;}
    getRecord(startIndex,endIndex);
_indexContainer.innerHTML=pageNo(totalRecords,index,RecordsPerPage,onceShow).join("&nbsp;");
}