// Empresa: Web Actions Consultoria 
// Autor: Alfredo Mansour 
// Contato: webactions@webactions.com.br 
 
function TAjax() {   this.conectar = function () {     this.http = null;     if (window.XMLHttpRequest) {       this.http = new XMLHttpRequest();     } else if (window.ActiveXObject) {       try {         this.http = new ActiveXObject("Msxml12.XMLHTTP");       } catch (e) {         try {           this.http = new ActiveXObject("Microsoft.XMLHTTP");         } catch (e) {}       }     }   } } function carregaConteudo(pg) {   var Ajax = new TAjax;   if (!Ajax) { return; }   Ajax.conectar();   Ajax.http.onreadystatechange = carrega;   Ajax.http.open("GET", "/scripts/man.exe/wa_materias?pg="+pg, true);   Ajax.http.send(null);   function carrega() {     if (Ajax.http.readyState == 4) {       if (Ajax.http.status == 200) {         document.getElementById("wa_conteudo").innerHTML = Ajax.http.responseText;       } else {         document.getElementById("wa_conteudo").innerHTML = "Erro no servidor";       }     }   } } function carregaConteudo2(ano,pg) {   var Ajax = new TAjax;   if (!Ajax) { return; }   Ajax.conectar();   Ajax.http.onreadystatechange = carrega;   Ajax.http.open("GET", "/scripts/man.exe/wa_materias?pg="+pg+"&year="+ano, true);   Ajax.http.send(null);   function carrega() {     if (Ajax.http.readyState == 4) {       if (Ajax.http.status == 200) {         document.getElementById("wa_conteudo").innerHTML = Ajax.http.responseText;       } else {         document.getElementById("wa_conteudo").innerHTML = "Erro no servidor";       }     }   } } function carregaAnosMateria(ano) {   var Ajax = new TAjax;   if (!Ajax) { return; }   Ajax.conectar();   Ajax.http.onreadystatechange = carrega;   Ajax.http.open("GET", "/scripts/man.exe/wa_anos_materia?year="+ano, true);   Ajax.http.send(null);   function carrega() {     if (Ajax.http.readyState == 4) {       if (Ajax.http.status == 200) {         document.getElementById("menuArquivo").innerHTML = Ajax.http.responseText;       } else {         document.getElementById("menuArquivo").innerHTML = "Erro no servidor";       }     }   } } 