function createrequest() {
	if (window.XMLHttpRequest)
		return new XMLHttpRequest();
	else if (window.ActiveXObject)
		return new ActiveXObject("Microsoft.XMLHTTP");
	else
		return null;
}
function http_request(url, method, data) {
	if (!method)
		method = "GET";
	if (!data)
		data = null;
		
	var http = createrequest();
	
	if (http != null) {
		http.open(method, url, false);
				
		http.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
		if (method == "POST")
			http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		http.send(data);
		
		return http;
	}
}