function Pages(requestpage,MaxPage,RecordCount,PageName){
// Pages(当前页,总页数,主题总数,传递的参数)
var p,ii;
if((requestpage-1)%10==0) 
	p=(requestpage-1)/10;
else
	p=parseInt((requestpage-1)/10);
//document.write(p);

document.write('<table border="0" cellpadding="0" cellspacing="0" align="center" width="98%">');
document.write('   <tr><td height="3"></td></tr>');
document.write('    <tr>');
document.write('<td width="100%">');
document.write('<table class="tableborder" cellpadding="0" cellspacing="1">');
//document.write('<form method="Post" name="PageForm" target="">');
document.write('<tr align="center">');
//document.write('<td class="header" title="RecordPages">&nbsp;'+MaxPage+'&nbsp;</td>');
document.write('<td class="header" title="RecordCount">&nbsp;'+RecordCount+'&nbsp;</td>');
document.write('<td class="header">&nbsp;'+requestpage+'/'+MaxPage+'&nbsp;&nbsp;Pages&nbsp;</td>');


document.write('<td bgcolor="#FFFFFF">&nbsp;');

if(requestpage==1)
   document.write('<font face=webdings color="#FF0066">9</font>');
else
   document.write('<a href=?'+PageName+'=1 title=首页><font face=webdings>9</font></a>');
document.write('&nbsp;</td>');

if(p*10>0)
	{
	document.write('<td bgcolor="#FFFFFF">&nbsp;');
    document.write('<a href=?'+PageName+'='+p*10+' title=上十页><font face=webdings>7</font></a>');
	document.write('&nbsp;</td>')
	}

for(ii=p*10+1;ii<=p*10+10;ii++)
 {
  if(ii==requestpage)
	 {
     document.write('<td bgcolor="#E4E8EF">&nbsp;');
	 document.write ('<font color="#CC0033">'+ii+'</font>');
     document.write('&nbsp;</td>');
	 }
  else
	 {
     document.write('<td bgcolor="#FFFFFF">&nbsp;');
     document.write ('<a href=?'+PageName+'='+ii+'>'+ii+'</a>');
     document.write('&nbsp;</td>');
	 }
  if(ii==MaxPage)
    break;
 }


if(ii<MaxPage)
	{
document.write('<td bgcolor="#FFFFFF">&nbsp;');
document.write('<a href=?'+PageName+'='+ii+' title=下十页><font face=webdings>8</font></a>');
document.write('&nbsp;</td>');}

document.write('<td bgcolor="#FFFFFF">&nbsp;');
if(requestpage==MaxPage)
    
	document.write('<font face=webdings color="#CC0033">:</font>');
    
else
	document.write('<a href=?'+PageName+'='+MaxPage+' title=尾页><font face=webdings>:</font></a>');
document.write('&nbsp;</td>');

document.write('<td bgcolor="#FFFFFF"><input type="text" name="page" size="1" value="'+requestpage+'" class="PageInput"><input type="button" value="GO"  onclick="window.location=\'?'+PageName+'=\'+page.value" class="PageInput"></td>');
document.write('</tr>');
//document.write('</form>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');



}
