// JavaScript Document
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 MostrarPagina(pagina,boton){
   cont = document.getElementById('contenido');
   
   ajax=objetoAjax();
   
   ajax.open("GET", pagina);
   ajax.onreadystatechange = function(){
   if (ajax.readyState == 4 && ajax.status == 200) {
   cont.innerHTML = ajax.responseText;
   }
   }
   ajax.send(null);
   //----------- configuraciones previas -------------//
   
   //definir los titulos de los botones
   titulo=new Array();
   titulo[0]="Home";
   titulo[1]="La Asociacion";
   titulo[2]="Servicios";
   titulo[3]="Consultas";
   titulo[4]="Noticias";
   titulo[5]="Descargas";
   titulo[6]="Contacto";
   titulo[7]="Actividades";
   titulo[8]="Solicitud de Alta";
   titulo[9]="Colabora";


   //definir numero de botones
   nrobtn=10;
   
   //definir prefijo de botones
   //(esto con el objetivo de no tener
   //problemas al momento de validar
   //nuestra página.)
   pref="boton_";
}