function nuevoAjax() { 
	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 CargoDescripcion(e) {
       //alert(e.value)
	Ajax=nuevoAjax();
	if(e.value!=""){
		Ajax.open("POST", "TablaDatos.php", true);
		Ajax.onreadystatechange=function() { 
			if (Ajax.readyState==1) {
				document.getElementById('Div_descrip').innerHTML="Cargando......";
			}
			if (Ajax.readyState==4)	{ 
				document.getElementById('Div_descrip').innerHTML=Ajax.responseText;
			} 
		}
	Ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	Ajax.send("TdEntidad="+e.value);
	}
}
