  var options = {
            success: showResponse
        };

  jQuery('#frmcontato').submit(function() {

      jQuery(this).ajaxSubmit(options);

      return false;

  });

  function showResponse(responseText, statusText)  {

      if ( trim(responseText)=="captcha" ){

            Sexy.error("<strong>Atenção</strong><br /><br /> Código de confirmação ( Captcha ) incorreto. Tente novamente.", {onComplete:

              function() {

                  jQuery("#imgcaptcha").click();
                  jQuery("#captcha").val("");
                  return false;

              }

            });

      }else if( trim(responseText)=="true" ){

            Sexy.info("<strong>Email enviado com sucesso!!</strong><br /><br /> Em breve responderemos.", {onComplete:

              function() {

                  document.location.href="/";
                  return false;

              }

            });

      }else{

          jQuery("#imgcaptcha").click();
          jQuery("#captcha").val("");

          Sexy.error("<strong>Atenção</strong><br /><br />" + responseText);

          return false;

      }

  }
