function valida () { 
   //var ok = true; 
   if (fale.nome.value=="") { 
      alert("O preenchimento do campo << NOME >> é obrigatório!"); 
      fale.nome.focus(); 
      //ok = false; 
      return(false); 
   } 

   if (fale.email.value=="") { 
      alert("O preenchimento do campo << EMAIL >> é obrigatório!"); 
      fale.email.focus(); 
     // ok = false; 
      return(false); 
   } 

   if (fale.email.value.search("@") == -1 || fale.email.value.search("[.*]") == -1) { 
      alert("O preenchimento do campo << EMAIL >> está incorreto!"); 
      fale.email.focus(); 
      //ok = false; 
      return(false); 
   }
         if (fale.telefone.value=="") { 
      alert("O preenchimento do campo << TELEFONE >> é obrigatório!"); 
      fale.telefone.focus(); 
      ok = false; 
      return(false); 
   } 

   if (fale.local.selectedIndex== 0) { 
      alert("Escolha a loja!"); 
      fale.local.focus(); 
     // ok = false; 
      return(false); 
   }  
    if (fale.msg.value=="") { 
      alert("O preenchimento do campo << MENSAGEM >> é obrigatório!"); 
      fale.msg.focus(); 
      ok = false; 
      return(false); 
   } 


     return true;
}


function MM_formTel(e,src,mask) {
    if(window.event) { _TXT = e.keyCode; }
    else if(e.which) { _TXT = e.which; }
    if(_TXT >=48 && _TXT <=57) {
 var i = src.value.length; var saida = mask.substring(0,1); var texto = mask.substring(i)
 if (texto.substring(0,1) != saida) { src.value += texto.substring(0,1); }
    return true; } else { if (_TXT != 10) { return false; }
 else { return true; }
    }
}
