var temJQuery;var controleBox=0;var resultados,divResultado;var icoCarregando='../images/carregando.gif';var strCarregando='
';function inicializaXmlHttp(){var xmlhttp;try{xmlhttp=new XMLHttpRequest();xmlhttp.overrideMimeType('text/plain');} catch(ee){try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");} catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");} catch(E){xmlhttp=false;}}} return xmlhttp;} function iniciaAjax(linksql,vars,div,acaoPosterior,acaoPosterior2,semCarregando,strCarregando2){var args=iniciaAjax.arguments.length;var xmlhttp=inicializaXmlHttp();xmlhttp.open("POST",linksql,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){resultados=xmlhttp.responseText;if(args>=3){if(resultados.toString().toLowerCase().indexOf('javascript:')==0) setTimeout(resultados.replace(/javascript: /i,''),1);else if(div) gel(div).innerHTML=unescape(resultados);if(controleBox==1) setBox();} if(acaoPosterior) {setTimeout(acaoPosterior,1);} if(acaoPosterior2) {setTimeout(acaoPosterior2,1);}} else{if(div&&!semCarregando) {if(strCarregando2) document.getElementById(div).innerHTML=strCarregando2;else document.getElementById(div).innerHTML=strCarregando;}}} xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(vars);} function iniciaAjaxEfeito(linksql,vars,div,efeito,acaoPosterior,semCarregando){var args=iniciaAjaxEfeito.arguments.length;var xmlhttp=inicializaXmlHttp();xmlhttp.open("POST",linksql,true);$("#"+div).fadeOut("fast",function() {xmlhttp.onreadystatechange=function() {if(xmlhttp.readyState==4) {resultados=xmlhttp.responseText;if(args>=3) {if(resultados.toString().toLowerCase().indexOf('javascript:')==0) setTimeout(resultados.replace(/javascript: /i,''),1);else gel(div).innerHTML=unescape(resultados);if(efeito=='slide') {$("#"+div).slideDown('medium');} else {$("#"+div).fadeIn('medium');} if(controleBox==1) setBox();} if(acaoPosterior) setTimeout(acaoPosterior,1);} else {if(div&&!semCarregando) document.getElementById(div).innerHTML=strCarregando;}} xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(vars);});} function iniciaPost(linksql,div,form,acaoPosterior){try{var vars="";for(var i=0;i=0) vars=vars.replace(" ","%20");var xmlhttp=inicializaXmlHttp();xmlhttp.open("POST",linksql,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4) {var t=xmlhttp.responseText;if(t.toString().toLowerCase().indexOf('javascript:')==0) setTimeout(t.replace(/javascript: /i,''),1);else if(div) document.getElementById(div).innerHTML=t;if(controleBox==1) setBox();if(acaoPosterior) setTimeout(acaoPosterior,1);}} xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(vars);document.getElementById(div).innerHTML=strCarregando;} catch(e){}} function toogle(objt){if(objt.style.display=='') objt.style.display='none';else objt.style.display='';} function exibeEfeito(config,idJanela,idResultado){var div,div2;var objSelect=document.getElementsByTagName("select");for(i=0;idocument.body.offsetHeight){y=document.body.scrollHeight;z=document.body.scrollWidth;} else{y=document.body.offsetHeight;z=document.body.offsetWidth;} div2.style.width="100%";div2.style.height="100%";tudo.appendChild(div2);if(!temJQuery) div2.style.display='';else{if(!document.all) $('#'+idJanela).fadeIn();else gel(idJanela).style.display='';} div=document.createElement("div");div.id="divResultado";tudo.appendChild(div);if(!temJQuery) div.style.display='';else $('#'+idResultado).fadeIn();document.onkeydown=function(event){tecla(event)};divResultado=document.getElementById("divResultado");document.getElementById("divResultado").focus();controleBox=1;if(document.all) {window.scrollTo(0,0);}} function setBox(){var box=document.getElementById("divResultado");var x,y,xp,yp;if(box.scrollHeight>box.offsetHeight){x=box.scrollWidth;y=box.scrollHeight;xp=document.body.scrollWidth;yp=document.body.scrollHeight;} else{x=box.offsetWidth;y=box.offsetHeight;xp=document.body.offsetWidth;yp=document.body.offsetHeight;} box.style.left=eval(xp)/2-eval(x)/2+"px";box.style.top="5%";} function apagaEfeito(idJanela,idResultado){var objSelect=document.getElementsByTagName("select");for(i=0;i');strFlash+=('');strFlash+=('');strFlash+=('');return strFlash;} function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i