// Inicializa o objeto
function Initialize(){
	try{
		xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e){
		try{
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(oc){
			xmlhttp=null;
		}
	}
	if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){
		xmlhttp=new XMLHttpRequest();
	}
}
//Manda par a página processar
function SendQueryGET(handlerPage, keyNameValue, callBackFunction){
	// Inicializa o objeto
	Initialize();
	// Página que manipulará a requisição
	var url = handlerPage + "?" + keyNameValue;

	// Se o objeto foi instanciado
	if(xmlhttp!=null){
		// Associa o evento do objeto à função criada
		xmlhttp.onreadystatechange = callBackFunction;

		// "GET"=método usada para a requisição, url=página chamada , true=chamada assíncrona
		xmlhttp.open("GET", url, true);
		
		// Envia a requisição. Diferente de NULL quando usar "POST", podendo mandar cabeçalhos
		xmlhttp.send(null);
	}
}