var ajax_queues = [];

function get_http_request(){
	http_req = false;
	try{
		http_req = new XMLHttpRequest();
	}catch(e){
		// adivinha para quem é isso ... :-p
		try{
			http_req = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				http_req = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				alert("Sem XMLHttpRequest disponível!");
			}
		}
	}
	return http_req;	
}

function ajax_send(obj,method,url,func){
	obj.open(method,url,func!=null);
	if(func)
		obj.onreadystatechange=func;
	obj.send(null);
}
