function Page(current,count,fun,pagediv){var start=1,end=1;pagehtml="";if(current==1){pagehtml=pagehtml+"<i>首页</i><i>上页</i>"}else{pagehtml=pagehtml+'<a style="cursor:pointer;" onclick="'+fun+"('"+(1)+'\');return false;" class="s1">首页</a><a style="cursor:pointer;" onclick="'+fun+"('"+(current-1)+'\');return false;" class="s1">上页</a>'}if(count<=5){start=1;end=count}else{var tmp=eval(count)-eval(current);if(tmp>2){if(current>2){start=eval(current)-2;end=eval(current)+2}else{start=1;end=5}}else{start=eval(count)-4;end=count}}for(var i=start;i<=end;i++){if(i==current){pagehtml=pagehtml+"<span >"+i+"</span>"}else{pagehtml=pagehtml+'<a title="第'+i+'页" style="cursor:pointer;" onclick="'+fun+"('"+i+"');return false;\">"+i+"</a>"}}if(current==count){pagehtml=pagehtml+"<strong>...</strong><i>下页</i><i>末页</i>"}else{var next=eval(current)+1;pagehtml=pagehtml+'<strong>...</strong><a style="cursor:pointer;" onclick="'+fun+"('"+next+'\');return false;" class="s1">下页</a><a style="cursor:pointer;" onclick="'+fun+"('"+count+'\');return false;" class="s1">末页</a>'}$(pagediv).innerHTML=pagehtml}function PageNone(current,count,fun,pagediv){var start=1,end=1;pagehtml="";if(current==1){pagehtml=pagehtml+"<i>上页</i>"}else{pagehtml=pagehtml+'<a style="cursor:pointer;" onclick="'+fun+"('"+(current-1)+'\');return false;" class="s1">上页</a>'}if(count<=7){start=1;end=count}else{var tmp=eval(count)-eval(current);if(tmp>3){if(current>3){start=eval(current)-3;end=eval(current)+3}else{start=1;end=7}}else{start=eval(count)-6;end=count}}for(var i=start;i<=end;i++){if(i==current){pagehtml=pagehtml+"<span>"+i+"</span>"}else{pagehtml=pagehtml+'<a title="第'+i+'页" style="cursor:pointer;" onclick="'+fun+"('"+i+"');return false;\">"+i+"</a>"}}if(current==count){pagehtml=pagehtml+"<strong>...</strong><i>下页</i>"}else{var next=eval(current)+1;pagehtml=pagehtml+'<strong>...</strong><a style="cursor:pointer;" onclick="'+fun+"('"+next+'\');return false;" class="s1">下页</a>'}$(pagediv).innerHTML=pagehtml}function Pagepara(current,count,fun,pagediv,para){var start=1,end=1;pagehtml="";if(current==1){pagehtml=pagehtml+"<i>首页</i><i>上页</i>"}else{pagehtml=pagehtml+'<a style="cursor:pointer;" onclick="'+fun+"('1',"+para+');return false;" class="s1">首页</a><a style="cursor:pointer;" onclick="'+fun+"('"+(current-1)+"',"+para+');return false;" class="s1">上页</a>'}if(count<=7){start=1;end=count}else{var tmp=eval(count)-eval(current);if(tmp>3){if(current>3){start=eval(current)-3;end=eval(current)+3}else{start=1;end=7}}else{start=eval(count)-6;end=count}}for(var i=start;i<=end;i++){if(i==current){pagehtml=pagehtml+"<span>"+i+"</span>"}else{pagehtml=pagehtml+'<a title="第'+i+'页" style="cursor:pointer;" onclick="'+fun+"('"+i+"',"+para+');return false;">'+i+"</a>"}}if(current==count){pagehtml=pagehtml+"<strong>...</strong><i>下页</i><i>末页</i>"}else{var next=eval(current)+1;pagehtml=pagehtml+'<strong>...</strong><a style="cursor:pointer;" onclick="'+fun+"('"+next+"',"+para+');return false;" class="s1">下页</a><a style="cursor:pointer;" onclick="'+fun+"('"+count+"',"+para+');return false;" class="s1">末页</a>'}$(pagediv).innerHTML=pagehtml}function Page1(current,count,fun,pagediv){var start=1,end=1;pagehtml="";if(current==1){pagehtml=pagehtml+"<font>&lt;</font>"}else{pagehtml=pagehtml+'<a style="cursor:pointer;" onclick="'+fun+"('"+(current-1)+"');return false;\"> &lt; </a>"}if(count<=7){start=1;end=count}else{var tmp=eval(count)-eval(current);if(tmp>3){if(current>3){start=eval(current)-3;end=eval(current)+3}else{start=1;end=7}}else{start=eval(count)-6;end=count}}for(var i=start;i<=end;i++){if(i==current){pagehtml=pagehtml+"<font>"+i+"</font>"}else{pagehtml=pagehtml+'<a title="第'+i+'页" style="cursor:pointer;" onclick="'+fun+"('"+i+"');return false;\">"+i+"</a>"}}if(current==count){pagehtml=pagehtml+"<font>&gt;</font>"}else{var next=eval(current)+1;pagehtml=pagehtml+'<a style="cursor:pointer;" onclick="'+fun+"('"+next+"');return false;\"> &gt; </a>"}$(pagediv).innerHTML=pagehtml}function Pagefirst(current,count,fun,pagediv){var start=1,end=1;pagehtml="";if(current==1){pagehtml=pagehtml+"<i>首页</i><i>上页</i>"}else{pagehtml=pagehtml+'<a style="cursor:pointer;" onclick="'+fun+'(\'1\');return false;" class="s1">首页</a><a style="cursor:pointer;" onclick="'+fun+"('"+(current-1)+'\');return false;" class="s1">上页</a>'}if(count<=7){start=1;end=count}else{var tmp=eval(count)-eval(current);if(tmp>3){if(current>3){start=eval(current)-3;end=eval(current)+3}else{start=1;end=7}}else{start=eval(count)-6;end=count}}for(var i=start;i<=end;i++){if(i==current){pagehtml=pagehtml+"<span>"+i+"</span>"}else{pagehtml=pagehtml+'<a title="第'+i+'页" style="cursor:pointer;" onclick="'+fun+"('"+i+"');return false;\">"+i+"</a>"}}if(current==count){pagehtml=pagehtml+"<strong>...</strong><i>下页</i><i>末页</i>"}else{var next=eval(current)+1;pagehtml=pagehtml+'<strong>...</strong><a style="cursor:pointer;" onclick="'+fun+"('"+next+'\');return false;" class="s1">下页</a><a style="cursor:pointer;" onclick="'+fun+"('"+count+'\');return false;" class="s1">末页</a>'}$(pagediv).innerHTML=pagehtml};
