function ajax() {
	this.xmlHttp;//xmlHttpRequest object
	this.urls;//submit url
	this.xmlDOC;
	this.processMethod;//do method
	
	
	//create XMLHttpRequest object
	this.createXMLHttpRequest = function () {
		if (window.ActiveXObject) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		} else {
			if (window.XMLHttpRequest) {
				xmlHttp = new XMLHttpRequest();
			}
		}
		return xmlHttp;
	};
	
	
	//GET method submit do
	this.startProcessGet=function(){
		xmlHttp.open("GET",urls,true);
		xmlHttp.onreadystatechange = handleStateChange;
		xmlHttp.send(null);	
	};
	
	
	//opinion state
	function handleStateChange() {
		if (xmlHttp.readyState == 4) {
			if (xmlHttp.status == 200) {
				this.processMethod.call(null);
			}
		}
	};

	//setURL
	this.setURL = function (url) {
		urls = url;
	};
	
	//set response.s method
	this.setProcessMethod = function (method) {
		processMethod = method;
	};
	
	//get XMLHttpRequest object
	this.getXMLHttpRequest = function () {
		return xmlHttp;
	};
	
	//get XMLDoc object
	this.getXMLDOC = function () {
		return xmlDOC;
	};
}

