/* ############################# # AJAX ############################# */ function ajaxInit() { var req; try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch(ex) { try { req = new XMLHttpRequest(); } catch(exc) { alert("Esse browser não tem recursos para uso do Ajax"); req = null; } } } return req; } /* ############################# # RELOGIO ############################# */ function getthedate() { var Data = new Date(); var Fuso = Data.getTimezoneOffset()/60 - 3; if (Fuso) { Data = new Date(Data.valueOf() + (Fuso * 3600000)); } var DataCompleta = new String(Data); var Hora = DataCompleta.split(' '); if (document.all) { document.all.clock.innerHTML = Hora[3]; } else if (document.getElementById) { document.getElementById("clock").innerHTML = Hora[4]; } else { document.write(Hora[4]); } } if (!document.all&&!document.getElementById) { getthedate(); } function DataFuso() { if (document.all||document.getElementById) { setInterval("getthedate()",1000); } } /* ############################# # FUNÇÕES DE FORMULARIO ############################# */ function Invalido(CAMPO, CLASSE) { CAMPO.className = CLASSE; } function Valido(CAMPO, CLASSE) { CAMPO.className = CLASSE; return true; } function trim(stringToTrim) { return stringToTrim.replace(/^\s+|\s+$/g,""); } function ltrim(stringToTrim) { return stringToTrim.replace(/^\s+/,""); } function rtrim(stringToTrim) { return stringToTrim.replace(/\s+$/,""); } function supertrim(StringToTrim){ return( StringToTrim.replace( /^\s+|\s+$/gi, "" ).replace( /\s{2,}/gi, " " ) ); } function get(id) { return(document.getElementById(id)); } function FechaDHtml() { document.getElementById("PubDHtml").style.display = "none"; } function MostraDHtml() { document.getElementById("PubDHtml").style.display = "block"; } function MM_preloadImages() { /* v3.0 */ var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i