﻿
var xmlHttp;
function createXMLHttpRequest(){
	if(window.ActiveXObject)
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	else if(window.XMLHttpRequest)
		xmlHttp = new XMLHttpRequest();
}

function startRequest(SortID,id,page){
	document.getElementById("target").innerHTML = "正在读取数据……";
	createXMLHttpRequest();
	xmlHttp.open("GET","../Memo.asp?SortID="+SortID+"&NID="+id+"&page="+page,true)
	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState == 4 && xmlHttp.status ==200)
			document.getElementById("target").innerHTML = xmlHttp.responseText;
	}
	//为服务器缓存
	xmlHttp.setRequestHeader("If-Modified-Since","0");
	xmlHttp.setRequestHeader("Content-Type","text/html;charset=utf-8");
	xmlHttp.send(null);
}