<!--
//Função para mover o menu horizontalmente de acordo com o valor passado
function move(x) {
  if (document.all) {
    object1.style.pixelLeft += x;
    object1.style.visibility = "visible"}
  else if (document.layers) {
    document.object1.left += x;
    document.object1.visibility = "show"
  }
};

//Função para fixar o menu no local enquanto se está com o mouse sobre ele
function makeStatic() {
  if (document.all) {
    object1.style.pixelTop=document.body.scrollTop+50
  } else {
    eval(document.object1.top=eval(window.pageYOffset+50));
  }
  setTimeout("makeStatic()",0);
}


function SaltaCampo (campo,prox,tammax,teclapres) {
  var tecla = teclapres.keyCode;
  vr = document.frmsalva[campo].value;
  if( tecla == 109 || tecla == 188 || tecla == 110 || tecla == 111 || tecla == 223 || tecla == 108 ) {
    document.frmsalva[campo].value = vr.substr( 0, vr.length - 1 );
  } else {
    vr = vr.replace( "-", "" );
    vr = vr.replace( "/", "" );
    vr = vr.replace( "/", "" );
    vr = vr.replace( ",", "" );
    vr = vr.replace( ".", "" );
    vr = vr.replace( ".", "" );
    vr = vr.replace( ".", "" );
    vr = vr.replace( ".", "" );
    tam = vr.length;
    if (tecla != 0 && tecla != 9 && tecla != 16 )
      if ( tam == tammax )
        document.frmsalva[prox].focus() ;
  }
}


function FormataData(Campo,teclapres) {
  var tecla = teclapres.keyCode;
  vr = document.frmsalva[Campo].value;
  vr = vr.replace( ".", "" );
  vr = vr.replace( "-", "" );
  vr = vr.replace( ",", "" );
  vr = vr.replace( "/", "" );
  vr = vr.replace( "/", "" );
  vr = vr.replace( "/", "" );
  vr = vr.replace( "*", "" );
  tam = vr.length + 1;
  if ( tecla != 9 && tecla != 8 ) {
    if ( tam > 2 && tam < 5 ) document.frmsalva[Campo].value = vr.substr( 0, tam - 2  ) + '/' + vr.substr( tam - 2, tam );
    if ( tam >= 5 && tam <= 10 ) document.frmsalva[Campo].value = vr.substr( 0, 2 ) + '/' + vr.substr( 2, 2 ) + '/' + vr.substr( 4, 4 );
  }
}

function muda_hora(escala) {
  if (document.forms[0].tmpped.value == "") document.forms[0].tmpped.value = 0;
  if (escala == "dia") document.forms[0].tmpped.value = document.forms[0].tmpped.value * 8;
  if (escala == "semana") document.forms[0].tmpped.value = document.forms[0].tmpped.value * 40;
  if (escala == "mes") document.forms[0].tmpped.value = document.forms[0].tmpped.value * 160;
  document.forms[0].unitmp.value = "hora";
}

function numeros(campo) {
  var tecla;
  var num="";
  var vr = campo.value;
  for (var x=0; x <= vr.length; x++){
    tecla = vr.substr(x,1).charCodeAt(0);
    if (tecla > 48 && tecla < 57) {
      num = num + vr.substr(x,1);
    }
  }
  campo.value = num;
}

function abrir_not1 () {
  window.open ('./conteudo/meta4_1.htm', 'Popup' ,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=474");
}

function abrir_not2 () {
  window.open ('./conteudo/meta4_2.htm', 'Popup' ,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=477");
}

function abrir_not3 () {
  window.open ('./conteudo/meta4_3.htm', 'Popup' ,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=402");
}

function abrir_not4 () {
  window.open ('./conteudo/meta4_4.htm', 'Popup' ,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=477");
}

function abrir_not5 () {
  window.open ('./conteudo/meta4_5.htm', 'Popup' ,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=474");
}

function abrir_not6 () {
  window.open ('./conteudo/meta4_6.htm', 'Popup' ,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=442,height=331");
}

//-->
