<!--<script>-->
  function removeSpaces(string)
  {
    return string.split(' ').join('');
  }
  function ValidCaptcha()
  {
    var retorno = true;
    $("#txtNome").removeClass('error');
    $("#txtEmail").removeClass('error');
    $("#txtTelefone").removeClass('error');
    $("#txtMensagem").removeClass('error');
    if ($('#txtNome').val() == "")
    {
      $("#txtNome").addClass('error');
      retorno = false;
    }
    if ($('#txtEmail').val() == "")
    {
      $("#txtEmail").addClass('error');
      retorno = false;
    }
    if ($('#txtTelefone').val() == "")
    {
      $("#txtTelefone").addClass('error');
      retorno = false;
    }
    if ($('#txtMensagem').val() == "")
    {
      $("#txtMensagem").addClass('error');
      retorno = false;
    }
    if (grecaptcha.getResponse() == "")
    {
      alert("Você não clicou no reCAPTCHA, por favor, faça!");
      retorno = false;
    }
    return retorno;
  }





  function DrawCaptcha()
  {
    var a = Math.ceil(Math.random() * 9) + '';
    var b = Math.ceil(Math.random() * 9) + '';
    var c = Math.ceil(Math.random() * 9) + '';
    var d = Math.ceil(Math.random() * 9) + '';
    var e = Math.ceil(Math.random() * 9) + '';
    var f = Math.ceil(Math.random() * 9) + '';
    var g = Math.ceil(Math.random() * 9) + '';
    var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d;
    document.getElementById("txtCaptcha").value = code
  }
  (function ($)
  {
    "use strict";
    $(document).ready(function ()
    {
      DrawCaptcha();
    });
  })(jQuery);