function ShowMenu() {

  if (document.getElementById("selectOne")) {
    document.getElementById("selectOne").style.visibility = "hidden"; 
  }
  if (document.getElementById("selectTwo")) {
    document.getElementById("selectTwo").style.visibility = "hidden"; 
  }
}

function HideMenu() {
  if (document.getElementById("selectOne")) {
    document.getElementById("selectOne").style.visibility = "visible";
  }
  if (document.getElementById("selectTwo")) {
    document.getElementById("selectTwo").style.visibility = "visible"; 
  }
}


// Início do código de Adicionar aos Favoritos
var bookmarkurl=document.location
var bookmarktitle=document.title

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
// Fim do código de Adicionar aos Favoritos


// Início do código de Aumentar/ Diminuir a letra
 
// Para usar coloque o comando: "javascript:mudaTamanho('tag_ou_id_alvo', -1);" para diminuir
// e o comando "javascript:mudaTamanho('tag_ou_id_alvo', +1);" para aumentar
 
var tagAlvo = new Array('p','div'); //pega todas as tags p//
 
// Especificando os possíveis tamanhos de fontes, poderia ser: x-small, small...
var tamanhos = new Array( '11px','12px','13px','14px','15px','16px','17px','18px' );
var tamanhoInicial = 1;
 
function mudaTamanho( idAlvo,acao ){
  if (!document.getElementById) return
  var selecionados = null,tamanho = tamanhoInicial,i,j,tagsAlvo;
  tamanho += acao;
  if ( tamanho < 0 ) tamanho = 0;
  if ( tamanho > 6 ) tamanho = 6;
  tamanhoInicial = tamanho;
  if ( !( selecionados = document.getElementById( idAlvo ) ) ) selecionados = document.getElementsByTagName( idAlvo )[ 0 ];
  
  selecionados.style.fontSize = tamanhos[ tamanho ];
  
  for ( i = 0; i < tagAlvo.length; i++ ){
    tagsAlvo = selecionados.getElementsByTagName( tagAlvo[ i ] );
    for ( j = 0; j < tagsAlvo.length; j++ ) tagsAlvo[ j ].style.fontSize = tamanhos[ tamanho ];
  }
}
// Fim do código de Aumentar/ Diminuir a letra
                               
                                                          
function do_clean()                                       
{                                                         
    document.formmail.nome.value='';                         
    document.formmail.email.value='';                        
    document.formmail.matricula.value='';                     
    document.formmail.mensagem.value='';                     
}                                                         
                                                          
                                                          
function do_post()                                        
{                                                         
    if( document.formmail.nome.value == '' )                  
    {                                                     
        alert( 'Preencha o campo "Nome".' );                      
        document.formmail.nome.focus();                      
        return false;                                     
    }       
    
    if( document.formmail.matricula.value == '' )               
    {                                                     
        alert( 'Preencha o campo "Matrícula."' );
        document.formmail.matricula.focus();                    
        return false;                                     
    }                                                
                                                          
    if( document.formmail.email.value == '' )                
    {                                                     
        alert( 'Preencha o campo "E-mail".' );                     
        document.formmail.email.focus();                     
        return false;                                     
    }                                                     
                                                                                                             
                                                          
    if( document.formmail.mensagem.value == '' )             
    {                                                     
        alert( 'Preencha o campo "Mensagem".' );                  
        document.formmail.mensagem.focus();                  
        return false;                                     
    }                                                     
                                                          
    document.formmail.submit();                              
}

function data(dia,mes,ano) {
datareal = new Date(ano, mes, dia);
var sem = datareal.getDay();
var descMes= new Array  ("Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro");
var descSemana = new Array("Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado");
//document.write(descSemana[sem]+ ", " +dia +" de " +descMes[mes] + " de " +ano);
document.write(descSemana[sem]);
}

function overIframe() {

var obj = document.getElementById('menuServ');
var objChildUL = obj.getElementsByTagName('ul'); 

var maxUL = objChildUL.length
for(var i = 0;i < maxUL;i++)
   {
   var nodeObjUL = objChildUL.item(i)
   nodeObjUL.style.visibility = 'hidden';
   } 

}

function overMenuServ() {

var obj = document.getElementById('menuServ');
var objChildUL = obj.getElementsByTagName('ul'); 

var maxUL = objChildUL.length
for(var i = 0;i < maxUL;i++)
   {
   var nodeObjUL = objChildUL.item(i)
   nodeObjUL.style.visibility = 'visible';
   } 

}

//-->
