
function calendario(mes, anio){
	alert(4);
	document.getElementById('indicador').style.visibility = 'visible';
	createXMLHttpRequest();
	xmlHttp.onreadystatechange = handle_calendario;
	xmlHttp.open('GET', 'calendario.php?mes='+mes+'&anio='+anio, true);
	xmlHttp.send(null);
}
//-------------------------------------------------------------------
function handle_calendario(){
	if(xmlHttp.readyState == 4){
		if(xmlHttp.status == 200){
			resultado_calendario();
		} else {alert("Error mientras se realizaba el proceso.");}
	}
}
//-------------------------------------------------------------------
function resultado_calendario(){
	var response = xmlHttp.responseText;
	if (response){
		document.getElementById('indicador').style.visibility = 'hidden';
		document.getElementById('contenedor').innerHTML = response;

	}
}