function Ajax_request() {
	var Obj = new Object();
	Obj.load = Ajax_load;
	Obj.onload = function() { };
	try { Obj.request=new XMLHttpRequest(); }
	catch (e) {	try { Obj.request=new ActiveXObject("Msxml2.XMLHTTP"); }
		catch (e) {	try { Obj.request=new ActiveXObject("Microsoft.XMLHTTP"); }
			catch (e) {	alert("Your browser does not support AJAX!"); }
		}
	}
	
	Obj.request.onreadystatechange = function() {
		if (Obj.request.readyState == 4) {
			if (Obj.request.status == 200) {
				Obj.responseText = Obj.request.responseText;
				Obj.onload();
			}
		}
	}
	
	return Obj;
}

function Ajax_load(url,parameters) {
	if (url != null) {
		if (parameters == null) {
			this.request.open('GET',url,true);
		} else {
			this.request.open('POST',url,true);
			this.request.setRequestHeader("Content-length", parameters.length);
		}
		
		//this.request.setRequestHeader("User-agent","AJAX Request v1.0");
		//this.request.setRequestHeader("Pragma", "no-cache");
		this.request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		this.request.setRequestHeader("If-Modified-Since", "1");
		this.request.setRequestHeader("Cache-Control", "no-cache");
		this.request.setRequestHeader("Connection", "close");
		this.request.send(parameters);
	}
}