// JavaScript Document
atual=0;fila=[];ifila=0;
var xmlhttp2; 
try{xmlhttp2=new XMLHttpRequest();}catch(ee){try{xmlhttp2=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlhttp2=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){xmlhttp2=false;}}}
function ajaxHTML(id,url) {
	//alert("ajaxHTML("+id+","+url+")");
    //document.getElementById(id).innerHTML="Carregando...";
	fila[fila.length]=[id,url];
    if((ifila+1)==fila.length)ajaxRun();
}
function ajaxRun(){
	tmp_str = fila[ifila][1];
	/*while (tmp_str.indexOf("&") > -1) {
		tmp_str = tmp_str.replace(/&/,"|");	
	}*/
    xmlhttp2.open("GET",tmp_str,true);
    xmlhttp2.onreadystatechange=function() {
        if (xmlhttp2.readyState==4){
			document.getElementById(fila[ifila][0]).innerHTML=unescape(xmlhttp2.responseText);
            ifila++;
            if(ifila<fila.length)setTimeout("ajaxRun()",20)
        }
    }
    xmlhttp2.send(null)
}

