//////////////////////////////////////////ajax/////////////////////////////////////// 
function Ajax(url, recvT, stringS, resultF) {
	this.url = url;
	this.stringS = stringS;
	this.xmlHttp = this.createXMLHttpRequest();
	this.resultF = resultF;
	this.recvT = recvT;
	if (this.xmlHttp == null) {
		return;
	}
	var objxml = this.xmlHttp;
	var othis = this;
	objxml.onreadystatechange = function () {
		othis.handleStateChange();
	};
}
Ajax.prototype = {createXMLHttpRequest:function () {
	try {
		return new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e) {
	}
	try {
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch (e) {
	}
	try {
		return new XMLHttpRequest();
	}
	catch (e) {
	}
	return null;
}, createQueryString:function () {
	var queryString = this.stringS;
	return queryString;
}, get:function () {
	url = this.url;
	var queryString = url;
	this.xmlHttp.open("GET", queryString, true);
	this.xmlHttp.send(null);
}, post:function () {
	url = this.url;
	var url = url;
	var queryString = this.createQueryString();
	this.xmlHttp.open("POST", url, true);
	this.xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	this.xmlHttp.send(queryString);
}, handleStateChange:function () {
	var xmlhttp = this.xmlHttp;
	var recvT = this.recvT;
	var resultF = this.resultF;
	if (xmlhttp.readyState == 4) {
		if (xmlhttp.status == 200) {
			resultF.call(this, recvT ? xmlhttp.responseXML : xmlhttp.responseText);
		} else {
			alert("\u8bf7\u6c42\u5931\u8d25!");
		}
	}
}};
function tipState(revDate) {
}


