function ajaxHTML(id,url){
try{
    xmlhttp = new XMLHttpRequest();
}catch(ee){
    try{
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
        try{
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(E){
            xmlhttp = false;
        }
    }
}

    //Obtém o objeto HTML
    objetoHTML=document.getElementById(id)
    //Exibe "Carregando..."
    objetoHTML.innerHTML="<span class='cadastro'>"+
                         "Carregando...</span>"
    //Abre a conexão
    xmlhttp.open("GET",url);
    //Função para tratamento do retorno
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4){
            //Mostra o HTML recebido
            retorno=unescape(xmlhttp.responseText.replace(/\+/g," "))
            objetoHTML.innerHTML=retorno
        }
    }
    //Executa
    xmlhttp.send(null)
}