function abrirUrlJanela(a){window.open(a,"InfoPWD","width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes")}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g," ")};
function reformarUrl(){var a=document.getElementById("reformaUrlInput").value.trim();document.getElementById("reformaUrlInput").value=Base64.encode(a);document.getElementById("reformaUrlInput").disabled=true;EnviaFormAjax("reformaUrl","scripts/php/criarUrl.php","urlReformada");document.getElementById("reformaUrlInput").value=a;document.getElementById("reformaUrlInput").disabled=false;document.reformaUrl.ativarSenha.checked=false;document.reformaUrl.redirecionarDiretoSite.checked=false;document.getElementById("senha").value=
"";document.getElementById("senha").style.visibility="hidden";document.getElementById("lavelsenha").innerHTML="...";document.getElementById("redirecionarDiretoSite").disabled=false;document.getElementById("redirecionarSpan001").style.textDecoration="none";document.getElementById("redirecionarSpan001").style.cursor="pointer"}try{xmlhttp=new XMLHttpRequest}catch(ee){try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){xmlhttp=false}}}
fila=[];ifila=0;errBoxPre='<table width="300" height="50" align="center" border="0" style="font-size: 14px; font-family: Arial, Helvetica, sans-serif; color: #990000; background-color: #FFCCCC; border: 1px solid #990000;"><tr><td align="center">';errBoxPos="</td></tr></table>";function carrega(a,b){document.getElementById(b).innerHTML='<div align="left">Aguarde, renovando...</div>';fila[fila.length]=[a,b];ifila+1==fila.length&&ajaxRun()}
function ajaxRun(){url=fila[ifila][0];destino=fila[ifila][1];xmlhttp.open("GET",url,true);xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");xmlhttp.setRequestHeader("Cache-Control","no-store, no-cache, must-revalidate");xmlhttp.setRequestHeader("Cache-Control","post-check=0, pre-check=0");xmlhttp.setRequestHeader("Pragma","no-cache");xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(xmlhttp.status!=200)switch(xmlhttp.status){case 400:document.getElementById(destino).innerHTML=
errBoxPre+"ERRO 400<br />Erro de sintaxe."+errBoxPos;break;case 401:document.getElementById(destino).innerHTML=errBoxPre+"ERRO 401<br />N&atilde;o autorizado."+errBoxPos;break;case 403:document.getElementById(destino).innerHTML=errBoxPre+"ERRO 403<br />Acesso negado."+errBoxPos;break;case 404:document.getElementById(destino).innerHTML=errBoxPre+"ERRO 404<br />Sua requisi\u00c3\u00a7\u00c3\u00a3o n&atilde;o foi encontrado."+errBoxPos;break;case 500:document.getElementById(destino).innerHTML=errBoxPre+
"ERRO 500<br />Erro interno do servidor."+errBoxPos;break;case 501:document.getElementById(destino).innerHTML=errBoxPre+"ERRO 501<br />N\u00c3\u00a3o suportado."+errBoxPos;break;case 502:document.getElementById(destino).innerHTML=errBoxPre+"ERRO 502<br />Servidor temporariamente indispon\u00c3vel."+errBoxPos;break;case 503:document.getElementById(destino).innerHTML=errBoxPre+"ERRO 503<br />Erro no retorno dos dados."+errBoxPos;break}else{texto=unescape(xmlhttp.responseText.replace(/\+/g," "));document.getElementById(destino).innerHTML=
texto}ifila++;ifila<fila.length&&setTimeout("ajaxRun()",20)}};xmlhttp.send(url)}function EnviaFormAjax(a,b,c){f=document.getElementById(a);a=b;for(i=0;i<f.elements.length;i++){a+=i==0?"?":"&";a+=f.elements[i].name+"="+f.elements[i].value}carrega(a,c)}var copytoclip=1;
function HighlightAll(a){a=eval(a);a.focus();a.select();if(copytoclip==1){therange=a.createTextRange();therange.execCommand("Copy");window.status="Conteudo selecionado e copiado para a area de transferencia!";setTimeout("window.status=''",2400)}}function highlight(a){a.focus();a.select()}function goToURL(){HighlightAll("document.getElementById('urlFinal')")};