// JavaScript Document
function pagebox(U,NowPage,PageCount,DataCount,PageSize)
{
	var i;
	i=Math.max(1,NowPage-1);
	document.write("<table width='100%'><tr><td width='50%'>　页次:"+NowPage+"/"+PageCount+"页 共"+DataCount+"条记录 "+PageSize+"条/每页<\/td>");
	document.write("<td>");
	document.write("<ul class='pagebox'>");
	document.write("<li class='PageBoxLi'><a href='"+U+"1' title='首页'><<<\/a><\/li>");
	document.write("<li class='PageBoxLi'><a href=\""+U+i+"\" title='上一页(第 "+i+" 页)'><</a><\/li>");
	for(i=Math.max(1,NowPage-5);i<NowPage;i++)
	{
		document.write("<li class='PageBoxLi'><a href='"+U+i+"' title='第"+i+"页'>"+i+"<\/a><\/li>");
	}
	document.write("<li class='PageBoxLi'><a href='"+U+i+"' title='第"+i+"页'>"+NowPage+"</a><\/li>");
	for(i=NowPage+1;i<=Math.min(PageCount,NowPage+5);i++)
	{
		document.write("<li class='PageBoxLi'><a href='"+U+i+"' title='第"+i+"页'>"+i+"<\/a></li>");
	}
	i=Math.min(PageCount,NowPage+1);
	document.write("<li class='PageBoxLi'><a href=/""+U+i+ "\" title='下一页(第 "+i+"页)'>></a><\/li>");
	document.write("<li class='PageBoxLi'><a href='"+U+PageCount+"' title='尾页'>>><\/a></li>");
	document.write("<\/ul>");
	document.write("<div style='clear:left;'><\/div>");
	document.write("<\/td><\/tr><\/table>");
}