<!--
function blockError(){return true;}
window.onerror = blockError;

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function abre_jan(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function chkCep(formato, keypress, objeto)
{
campo = eval (objeto);
if (formato=='cep')
{
caracteres = '01234567890';
separacoes = 1;
separacao1 = '-';
conjuntos = 2;
conjunto1 = 5;
conjunto2 = 3;
if ((caracteres.search(String.fromCharCode (keypress))!=-1) && campo.value.length < (conjunto1 + conjunto2 + 1))
{
if (campo.value.length == conjunto1) 
campo.value = campo.value + separacao1;
}
else 
event.returnValue = false;
}
}
// -->