// 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(codnot) {   var Ajax = new TAjax;   if (!Ajax) { return; }   Ajax.conectar();   Ajax.http.onreadystatechange = carrega_wa_noticia_detalhe;   Ajax.http.open("GET", "/scripts/man.exe/wa_noticia_detalhe?codnot="+codnot, true);   Ajax.http.send(null);   function carrega_wa_noticia_detalhe() {     if (Ajax.http.readyState == 4) {       if (Ajax.http.status == 200) {         document.getElementById("wa_noticia_detalhe").innerHTML = Ajax.http.responseText;       } else {         document.getElementById("wa_noticia_detalhe").innerHTML = "Erro no servidor";       }     }   } } function carregaNoticiaTitulo(codnot) {   var Ajax = new TAjax;   if (!Ajax) { return; }   Ajax.conectar();   Ajax.http.onreadystatechange = carrega_wa_noticia_titulo;   Ajax.http.open("GET", "/scripts/man.exe/wa_noticia_titulo?codnot="+codnot, true);   Ajax.http.send(null);   function carrega_wa_noticia_titulo() {     if (Ajax.http.readyState == 4) {       if (Ajax.http.status == 200) {         document.getElementById("wa_noticia_titulo").innerHTML = Ajax.http.responseText;         document.title = Ajax.http.responseText;       } else {         document.getElementById("wa_noticia_titulo").innerHTML = "Erro no servidor";       }     }   } } function carregaLeiaTambem() {   var Ajax = new TAjax;   if (!Ajax) { return; }   Ajax.conectar();   Ajax.http.onreadystatechange = carrega_wa_noticias_leia_tambem;   Ajax.http.open("GET", "/scripts/man.exe/wa_noticias_leia_tambem", true);   Ajax.http.send(null);   function carrega_wa_noticias_leia_tambem() {     if (Ajax.http.readyState == 4) {       if (Ajax.http.status == 200) {         document.getElementById("wa_noticias_leia_tambem").innerHTML = Ajax.http.responseText;       } else {         document.getElementById("wa_noticias_leia_tambem").innerHTML = "Erro no servidor";       }     }   } } function carregaAnosNoticia(ano) {   var Ajax = new TAjax;   if (!Ajax) { return; }   Ajax.conectar();   Ajax.http.onreadystatechange = carrega;   Ajax.http.open("GET", "/scripts/man.exe/wa_anos_noticia?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";       }     }   } } 
