NÃO utilize o botão voltar (back) do seu Navegador (browser)
![]() |
|

carregando...
"; } else { document.getElementById(div_retorno).innerHTML = "

carregando...
"; } //evita o cache var dt = new Date(); if (metodo == "POST") { url = url + "?" + encodeURI(Math.random() + "_" + dt.getTime()); } else { url = url + "&" + encodeURI(Math.random() + "_" + dt.getTime()); } http_request.onreadystatechange = mostra_consulta; if (metodo == "POST") { http_request.open('POST', url, true); http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http_request.setRequestHeader("Content-length", campos.length); http_request.setRequestHeader("Connection", "close"); http_request.send(campos); } else { http_request.open('GET', url, true); http_request.setRequestHeader("Cache-Control", "no-cache"); http_request.setRequestHeader("Pragma", "no-cache"); http_request.send(null); } } function mostra_consulta() { var msg, retorno; if (http_request.readyState == 4) { if (http_request.status == 200) { // coloca o valor no objeto requisitado //texto=unescape(http_request.responseText.replace(/\+/g," ")); texto=http_request.responseText; document.getElementById(div_retorno).innerHTML=texto; // executa scripts extraiScript(texto); } else { alert('Houve um problema durante o processamento!['+http_request.status+']'); } } } /* function stoperror() { return true } window.onerror=stoperror */ function URLEncode(campo) { // The Javascript escape and unescape functions do not correspond // with what browsers actually do... var SAFECHARS = "0123456789" + // Numeric "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + // Alphabetic "abcdefghijklmnopqrstuvwxyz" + "-_.!~*'()"; // RFC2396 Mark characters var HEX = "0123456789ABCDEF"; var plaintext = campo; var encoded = ""; for (var i = 0; i < plaintext.length; i++ ) { var ch = plaintext.charAt(i); if (ch == " ") { encoded += "+"; // x-www-urlencoded, rather than %20 } else if (SAFECHARS.indexOf(ch) != -1) { encoded += ch; } else { var charCode = ch.charCodeAt(0); if (charCode > 255) { alert( "Unicode Character '" + ch + "' cannot be encoded using standard URL encoding.\n" + "(URL encoding only supports 8-bit characters.)\n" + "A space (+) will be substituted." ); encoded += "+"; } else { encoded += "%"; encoded += HEX.charAt((charCode >> 4) & 0xF); encoded += HEX.charAt(charCode & 0xF); } } } // for return encoded; // document.URLForm.F2.select(); // return false; }; function voltar() { if (div_retorno) { document.getElementById(div_retorno).innerHTML = Conteudo; } } div_retorno = "texto_conteudo"; busca_dados("conteudos/capa.php?id=0&msg=", "texto_conteudo");