try{
    xmlhttp = new XMLHttpRequest();
}catch(ee){
    try{
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
        try{
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(E){
            xmlhttp = false;
        }
    }
}

fila=[]
ifila=0

function ajaxHTML(id,url){

    document.getElementById(id).innerHTML="<span class='carregando'>"+
                                          "<font face='Verdana' size='1'></font></span>"
    fila[fila.length]=[id,url]
    if((ifila+1)==fila.length)ajaxRun()
}

function ajaxRun(){
    xmlhttp.open("GET",fila[ifila][1],true);
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4){
            retorno=unescape(xmlhttp.responseText.replace(/\+/g," "))
            document.getElementById(fila[ifila][0]).innerHTML=retorno
            ifila++
            if(ifila<fila.length)setTimeout("ajaxRun()",20)
        }
    }
    xmlhttp.send(null)
}

