// JavaScript Document

/* Create a new XMLHttpRequest object to talk to the Web server */
var xmlHttp = false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttp = false;
  }
}
@end @*/
if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

function ajaxpagelist(spid,pageno,pagesize){  
  // Build the URL to connect to
  var url="http://xxgk.pingxiang.gov.cn/app/ext/pagelist_slice.php?spid="+spid+"&pageno="+pageno+"&psize="+pagesize;
  // Open a connection to the server
  xmlHttp.open("GET", url, true);
  // Setup a function for the server to run when it's done
  xmlHttp.onreadystatechange =function(){
			if(xmlHttp.readyState==4 && xmlHttp.status==200)
			{		
				var response=xmlHttp.responseText;	
				document.getElementById("infolist").innerHTML=response;
			}
		}		
  // Send the request
  xmlHttp.send(null); 

}
