try{
	xmlhttp = new XMLHttpRequest();
}catch(ee){
	try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}catch(e){
		try{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(E){
			xmlhttp = false;
		}
	}
}

//Fila de conexões
fila = new Array();
ifila=0;

function ajaxRun(url, f_retorno){
	
	xmlhttp.open("GET",url,true);
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4){
			//Mostra o HTML recebido
			retorno=unescape(xmlhttp.responseText);			
			eval(f_retorno+"('"+retorno+"')");
		}
	}
	//Executa
	xmlhttp.send(null)
}

function r_email_disponibilidade(retorno){
	var ar_retorno = retorno.split("|");
	alert(ar_retorno[1]);
}

function r_extrato_horas(retorno){
	if(retorno = "zero"){
		retorno = "0";
	}
	document.getElementById("div_extrato").innerHTML = "Horas: " + retorno;
}