function ajaxInit() {
	var req;
		try {
			req = new ActiveXObject("Microsoft.XMLHTTP");
		} catch(e) {
		try {
			req = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(ex) {
			try {
		req = new XMLHttpRequest();
			} catch(exc) {
	alert("Esse browser não tem recursos para uso do Ajax");
		req = null;
			}
		}
	}
	return req;
}

function mostrarAjaxLoader() {
	var div = document.createElement("div");
	var sTxt = document.createTextNode("Carregando...");
	var oBody = document.getElementsByTagName("body")[0];
	div.appendChild(sTxt);
	div.setAttribute("id","ajaxstatus");
	div.style.backgroundColor = "#CC0000";
	div.style.padding = "2px";
	div.style.position = "absolute";
	div.style.color = "#FFFFFF";
	div.style.zIndex = "100";
	div.style.top = "0px";
	div.style.right = "0px";
	oBody.appendChild(div);
}

function ocultarAjaxLoader() {
	var oBody = document.getElementsByTagName("body")[0];
	oBody.removeChild(document.getElementById("ajaxstatus"));
}
