anchor.diff:                              <div class="form-group">
                                   <label>CNPJ</label>
   
  -                                <input name="cnpj" class="form-control" placeholder="Informe o CNPJ...">
  +                                <input name="cnpj" onKeyPress="MascaraCNPJ(form1.cnpj);" class="form-control" onBlur="ValidarCNPJ(form1.cnpj);" placeholder="Informe o CNPJ...">
   
                               </div>
   
  
positive.code:                             </div>
                              <div class="form-group">
                                  <label>Telefone Fixo</label>
                                  <input name="tel" class="form-control" placeholder="Informe Telefone...">
                              </div>
                              <div class="form-group">
                                  <label>Endereço</label>
  
negative.code: 
              </div>
              <!-- /#wrapper -->
              
              function MascaraTelefone(tel){  
          if(mascaraInteiro(tel)==false){
                  event.returnValue = false;
          }       
          return formataCampo(tel, '(00) 0000-0000', event);
  }
  
  function ValidarCNPJ(ObjCnpj){
          var cnpj = ObjCnpj.value;
          var valida = new Array(6,5,4,3,2,9,8,7,6,5,4,3,2);
          var dig1= new Number;
          var dig2= new Number;
  
          exp = /\.|\-|\//g
          cnpj = cnpj.toString().replace( exp, "" ); 
          var digito = new Number(eval(cnpj.charAt(12)+cnpj.charAt(13)));
  
          for(i = 0; i<valida.length; i++){
                  dig1 += (i>0? (cnpj.charAt(i-1)*valida[i]):0);  
                  dig2 += cnpj.charAt(i)*valida[i];       
          }
          dig1 = (((dig1%11)<2)? 0:(11-(dig1%11)));
          dig2 = (((dig2%11)<2)? 0:(11-(dig2%11)));
  
          if(((dig1*10)+dig2) != digito)  
                  alert('CNPJ Invalido!');
  
  }
  
                  
                  function MascaraCNPJ(cnpj){
          if(mascaraInteiro(cnpj)==false){
                  event.returnValue = false;
          }       
          return formataCampo(cnpj, '00.000.000/0000-00', event);
  }
  
  
              <!-- jQuery -->
              <script src="${pageContext.request.contextPath}/bootstrap/js/jquery.js"></script>
  