ASM.connect.Ajax = function () {
	var req;
	this.loadXMLDoc = function(url, query, method, reqchange) 
	{
		try {
			this.req = new XMLHttpRequest();
		}
		catch (trymicrosoft) {
			try {
				this.req = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (othermicrosoft) {
				try {
					this.req = new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (failed) {
					this.req = false;
				}
			}
		}
	
		if (!this.req) {
			alert("Error initializing XMLHttpRequest!");
		}
		else {
			this.req.onreadystatechange = reqchange;
			this.req.open(method, url, true);
			this.req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
			this.req.setRequestHeader( 'Content-Length', query.length );
			this.req.send(query);
		}
	}
}

