你应该传一个ID就行了,然后在showDiv函数中根据ID用document.getElementById(ID)获取对象。
echo "<a href='phpwan.php?pageno=" . ($pageno+1) . "'>下一页</a>"