<!--公共分页部分-->
<script language="JavaScript" type="text/javascript">
<!--
var currentpage='{$page}';
var Pcount='{$Pcount}';
currentpage=Math.floor(currentpage);
Pcount=Math.floor(Pcount);
document.write ('</table>');
document.write ('<table border="0" cellpadding="0" cellspacing="3" width="{$width}" align="center">');
document.write ('<tr><td valign="middle" nowrap="nowrap">');
document.write ('页次：<b>'+currentpage+'</b>/<b>'+Pcount+'</b>页');
document.write ('每页<b>{$pagelimited}</b> 共有<b>{$listnum}</b>条</td>');
document.write ('<td valign=middle nowrap><div align=right><p>分页：');
var endpage;
if (currentpage>4)
{
	document.write ('<a href="?{$action}page=1&boardid={$boardid}&keyword={$keyword}">[1]</a> ...');
}
if (Pcount>currentpage+3)
{
	endpage=currentpage+3;
}else{
	endpage=Pcount;
}
for (i=currentpage-3;i<endpage+1 ;i++ )
{
	i=Math.floor(i);
	if (i>0)
	{
		if (i>currentpage || i<currentpage)
		{
			document.write (' <a href="?{$action}page='+i+'&boardid={$boardid}&keyword={$keyword}">['+i+']</a>')
		}
		else{
			document.write (' <font color="{$alertcolor}">['+i+']</font>');
		}
	}
}
if (currentpage+3 < Pcount)
{
	document.write ('... <a href="?{$action}page='+Pcount+'&boardid={$boardid}&keyword={$keyword}">['+Pcount+']</a>');
}
document.write ('</font></td></tr>');
document.write ('</table>');
//-->
</script>