function enviaEmail(){
        fastAjax('cadastraNewsLetter.php', 'email='+document.getElementById('emailNewsLetter').value, 'respostaNewsLetter')
}

    // contador de caracteres da textarea dos recados
function Contador(MaxLength) {
          obj = document.getElementById('textRecado');
          if (MaxLength !=0) {
                 if (obj.value.length > MaxLength)  {
                        obj.value = obj.value.substring(0, MaxLength);
                        }
          }
          document.getElementById('contador').value = obj.value.length + '/'+MaxLength;
   }

   function enviaRecado(acao){
       if(acao){
           nomeR = window.document.getElementById('recadoNome').value;
           textoR = window.document.getElementById('textRecado').value;
           emailR = window.document.getElementById('recadoEmail').value;
           fastAjax('ajaxRecados.php', 'nome='+nomeR+'&texto='+textoR+'&email='+emailR, 'recados');
           $('#fomRecados').html('<span id="respostaRecado"><h3>Obrigado!</h3><p>Seu comentário foi para aprovação</p></span>');
       }else{
           document.getElementById('mostraMais').style.display='none';
           fastAjax('ajaxRecados.php', 'limitMax=1', 'recados');
           document.getElementById('mostraTudo').style.display='block';

       }
}
function abreRecados(){
    window.open('ajaxRecados.php?noLimite=1','janela', 'width=400px, height=800px, top=50px, left=30%, scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}

function enviaForm(form){
         fastAjax('processaContato.php' , 'nome='+window.document.forms[form].nome.value+'&email='+window.document.forms[form].email.value+'&msg='+window.document.forms[form].msg.value,'respContato');
      return false;
}

function enviaPedido(form){
         fastAjax('processaPedido.php' , 'nome='+window.document.forms[form].nome.value+'&email='+window.document.forms[form].email.value+'&telefone='+window.document.forms[form].telefone.value+'&endereco='+window.document.forms[form].endereco.value+'&cep='+window.document.forms[form].cep.value+'&cidade='+window.document.forms[form].cidade.value+'&uf='+window.document.forms[form].uf.value,'respPedido');
         return false;
}
