var	ajax = new Ajax();

// - - Cria o Objeto ajax - - //
function Ajax() {
  try {
    return new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    try {
      return new ActiveXObject("Msxml2.XMLHTTP");
    } catch(ex) {
      try {
        return new XMLHttpRequest();
      } catch(exc) {
        return false;
      }
    }
  }
}

function loadXMLDoc(url,id){

    if (window.XMLHttpajaxuest){
        ajax = new XMLHttpajaxuest();
		ajax.onreadystatechange = processajaxChange;
		ajax.open("GET", url + '?cont='+ id , true);
		ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=ISO-8859-1");
        ajax.setRequestHeader("Cache-Control", "no-store, no-cache, must-revalidate");
        ajax.setRequestHeader("Pragma", "no-cache");
		ajax.send(null);
		ajax.close();
		delete ajax;
		
    // Procura por uma versao ActiveX (IE)
    }else if (window.ActiveXObject) {
        ajax = new ActiveXObject("Microsoft.XMLHTTP");
        if (ajax) {
			ajax.onreadystatechange = processajaxChange;
			ajax.open("GET", url + '?cont='+ id, true);
			ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=ISO-8859-1");
			ajax.setRequestHeader("Cache-Control", "no-store, no-cache, must-revalidate");
			ajax.setRequestHeader("Pragma", "no-cache");
            ajax.send(null);
            delete ajax;
        }
		
    }
	delete ajax;
}

function processajaxChange(){
    
    if (ajax.readyState == 4) {
        if (ajax.status == 200) {
            document.getElementById('id_busca').innerHTML = ajax.responseText;
			delete ajax;
        } else {
			<!-- ajax.statusText; -->
        }
    }
	
	delete ajax;
}

function busca_lista(id){
	loadXMLDoc("pagina.php",id);
}

delete ajax;