
function EscreveCalendario(P){
	var Ajax;
	var Retorno;
	Ajax = CriaAJAX();
	Ajax.onreadystatechange = function(){
		if( Ajax.readyState == 4 ){
			if( Ajax.status == 200 ){
				Retorno = unescape(Ajax.responseText.replace(/\+/g," "));
				document.getElementById("ret-calendario").innerHTML = Retorno;
			}else{
				alert("Erro");
			};
		};
	}
	Ajax.open("GET", "monta-calendario.php?P=" + P, true);
	Ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	Ajax.send( null );
}