function ajaxObjs() {
	this.http = null;
	this.data = null;
	this.busy = false;
	this.init = function _init() {

		if (!this.http && typeof XMLHttpRequest != 'undefined') {
			try {
				this.http = new XMLHttpRequest();
			} catch (e) {
				this.http = false;
			}
		}

		if (!this.http && window.createRequest) {
			try {
				this.http = window.createRequest();
			} catch (e) {
				this.http=false;
			}
		}

		if (!this.http) {
			return (false);
		}

		return (true);
	}

	this.proc = function _proc() {
		if (this.http.readyState == 4) {
			if (this.http.status == 200) {
				this.data = this.http.responseXML;
			} else {
				alert('There was a problem with the request.');
				this.data = null;
			}
			this.busy = false;
		}
	}

	this.send = function _send(surl, pstr) {
		var lh = this;
		if (!this.busy) {
			this.http.onreadystatechange = function() { lh.proc(); }
			this.http.open('POST', surl, true);
			this.http.setRequestHeader('Charset', 'windows-1251');
			this.http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
			this.http.setRequestHeader('Content-length', pstr.length);
			this.http.setRequestHeader('Connection', 'close');
			this.http.send(encodeURI(pstr));
			this.busy = true;
			return (true);
		} else {
			return (false);
		}
	}
}


