function init() {
   var xmlhttp;
   try{
      xmlhttp = new XMLHttpRequest();
   }catch(ee){
      try{
         xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
      }catch(e){
         try{
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
         }catch(E){
            xmlhttp = false;
         }
      }
   }
   return xmlhttp;
}

function ind(id, n, nc, t) {
   var atual=n
   var xmlhttp = init();
   xmlhttp.open("GET", "phps/indice.php?id="+id+"&n="+n+"&nc="+nc+"&t="+t,true);
   xmlhttp.onreadystatechange = function() {
      if (xmlhttp.readyState==4){
         if (xmlhttp.status == 200) {
            var texto = xmlhttp.responseText;
            //texto=texto.replace(/\+/g," ");
            //texto=unescape(texto);
            document.getElementById("indice").innerHTML=texto;  
         }
      }
   }
   xmlhttp.send(null);
}

function ser() {
   var xmlhttp = init();
   xmlhttp.open("GET", "servicos.inc",true);
   xmlhttp.onreadystatechange=function() {
      if (xmlhttp.readyState==4){
         if (xmlhttp.status == 200) {
            var texto=xmlhttp.responseText;
            texto=texto.replace(/\+/g," ")
            texto=unescape(texto)
            var conteudo=document.getElementById("indice")
            conteudo.innerHTML=texto
         }
      }
   }
   xmlhttp.send(null);
}
