// 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 mostrarexcurs(){
	selecbann= document.imageformnineteen.selecbann.value;
	
	ajax=objetoAjax();
	ajax.open("POST", "mostrar_excursimg.php",true);
	ajax.onreadystatechange=function() {
		if (ajax.readyState==4) {
			//alert(ajax.responseText);
			 if (ajax.status == 404) {
				  //alert(ajax.responseText);
			//document.getElementById("formulario").innerHTML = ajax.responseText;
			document.getElementById("delete_banners").innerHTML = "Página no encontrada!";
			} 
			if (ajax.status == 500) {				 
				document.getElementById("delete_banners").innerHTML = " Ocurrio un error procesando los datos /n"+ajax.responseText;				
			}
			 if (ajax.status == 200) {	
			 contvalor = ajax.responseText;
			 verificartext = contvalor.match("finox");
				if (verificartext == null) {
						document.getElementById("delete_banners").innerHTML = ajax.responseText;	
				 }	 
				 else{
						document.imageformnineteen.selecbann.value = "";								
						limpiar = "";
						contenidotext = ajax.responseText;
					    textomostrar = contenidotext.replace(/finox/, limpiar);
						document.getElementById("delete_banners").innerHTML = textomostrar;	
				}
			}
		}
		//else{	 
		//	 imagen1 = "<img src=img/41.1.gif  border=0 />";	
		//	 document.getElementById("formulario").innerHTML =  imagen1;
		//}
	}
	ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	ajax.send("selecbann="+selecbann)
}
