function $(obj){return document.getElementById(obj);} var xmlHttp; function cxhr() { if (window.ActiveXObject) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { xmlHttp=new XMLHttpRequest(); } } function pager(id,page) { $("commentlist").innerHTML="Loading..." cxhr(); var url="/plug/commentList.asp?id="+id+"&page="+page xmlHttp.open("POST",url,true); xmlHttp.onreadystatechange=hsc; xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;"); xmlHttp.send(null); } function hsc() { if(xmlHttp.readyState==4) { if (xmlHttp.status==200) { $("commentlist").innerHTML=xmlHttp.responseText; } } } pager(,1)