function objetoAjax(){

	var xmlhttp=false;

	try {

		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");

	} catch (e) {

		try {

		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

		} catch (E) {

			xmlhttp = false;

  		}

	}



	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

		xmlhttp = new XMLHttpRequest();

	}

	return xmlhttp;

}

function envio(form){

	sede = form;

	//alert(sede);

	//alert(sede);

	Resultado = document.getElementById('resultado');

	ajax=objetoAjax();

	

	ajax.open("GET", "listado.php?sede="+sede);

	ajax.onreadystatechange=function() {

		if (ajax.readyState==4){

			Resultado.innerHTML = ajax.responseText;			

		}

	}

	ajax.send(null)

}



function envio2(form){

	actividad = form.value;

	location = "actividad.php?tipo=1&idact="+actividad;

}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

