谁能帮我改改啊! <script type="text/javascript" language="javascript">
function getNum(val){
location.href="service_getServiceList4?pageNum=1&pageSize="+val;
}
function forwoard(){
 var pages = document.getElementById("go").value;
window.location.href="service_getServiceList4?pageNum="+pages;
}
function getPage(val){
location.href="service_getServiceList4?pageNum="+val;
}
/* function init(val){
    val=document.getElementById("go").value;
    if(val>${pageMax})
        return false;
}*/
</script><tr>
<th colspan="100" class="pager">
<div class="pager"> 共${count}条记录 每页
<input id="Page" value="2" size="2" onchange="getNum(this.value)" />
条 第
<input id="num" value="1" size="2" onchange="getPage(this.value)"/>
页/共
${pageMax}

<a href="service_getServiceList4?pageNum=1">第一页</a>
<a href="service_getServiceList4?pageNum=${pageNum>1?pageNum-1:1}">上一页</a>
<a href="service_getServiceList4?pageNum=${pageNum<pageMax?pageNum+1:pageMax }">下一页</a>
<a href="service_getServiceList4?pageNum=${pageMax}">最后一页</a> 转到
<input id="go" type="text" size="2" onselect="selected"/>

<button onclick="forwoard()">
GO
</button>
</div>
</th>
</tr>