var url = "cargaphp.php?nu="; // The server-side script
function handleHttpResponse() {
	if (http.readyState == 4) {
		results = http.responseText;
		document.getElementById("combo_estado").innerHTML = results;
		isWorking = false;
		return false;
	}
}
var isWorking = false;
function ajax_estado(val,est) {
	if (!isWorking && http) {
		document.getElementById("combo_estado").innerHTML = "<font color='#FFFFFF'>Cargando....</font>";
		var nmt = val;
		if (est != ''){
			http.open("GET", url+nmt+"&estado="+est, true);
		}else{
			http.open("GET", url+nmt, true);
		}
		http.onreadystatechange = handleHttpResponse;
		isWorking = true;
		http.send(null);
	}
}
function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}
var http = getHTTPObject(); // We create the HTTP Object