  //Função para desabilitar botões em formulários HTML e mostrar mensagem
  //Observações:
  //  1. Implemente uma função para criar um array com os botões a serem
  //     desabilitados
  //  2. Chame a função JavaScript gerarSpanMesgBotao() abaixo dos botões
  //Sintaxe: desabilitarBotoes(<Array contendo os botões do formulário>)
   function desabilitarBotoes(arrBotoes)
   {
      //Desabilitando os botoes obtidos
      for(var i = 0; i < arrBotoes.length; i++)
      {
         arrBotoes[i].disabled = true;
         arrBotoes[i].className = "SEFAZ-INPUT-Botao-Disabled";
      }

      //Configurando o tamanho da figura
      document.imgCarregando.width = 250;
      document.imgCarregando.height = 12;

   }

   function habilitarBotoes(arrBotoes)
   {
      //Habilitando os botoes obtidos
      for(var i = 0; i < arrBotoes.length; i++)
      {
         arrBotoes[i].disabled = false;
         arrBotoes[i].className = "SEFAZ-INPUT-Botao";
      }

      //Configurando o tamanho da figura
      document.imgCarregando.width = 0;
      document.imgCarregando.height = 0;
   }

   function gerarSpanMesgBotao()
   {
      var html = '&nbsp;<br>' +
                 '<img src="/imagens/aguarde.gif" name="imgCarregando" height="0" width="0" border="0">';
      document.write(html);
   }