anchor.diff:            }
           }
         }
  -      $check.removeClass("hidden");
  +      $success.removeClass("hidden");
  +      $failure.addClass("hidden");
  +      $submit.addClass("hidden");
  +    }).fail(function(_, msg, errorText) {
  +      $success.addClass("hidden");
  +      $failure.removeClass("hidden").attr('title', errorText).tooltip('fixTitle');
  +      $submit.removeClass("hidden");
       });
       return false; // prevents normal behaviour
     }).map(function() {
  
positive.code:       $("#success_" + $form.find("input[name='id']").val()).addClass("hidden");
      });
    });
    $("tr").on("focusout", function(e) {
      if (e.relatedTarget !== null && $(e.target).parents("tr")[0] !== $(e.relatedTarget).parents("tr")[0]) {
        $(e.target).parents("tr").find("form").submit();
      }
    });
  </script>
  
negative.code: <script>
    $("form").submit(function() {
      var $form = $(this);
      var $success = $("#" + $form.attr("id").replace('reg', 'success'));
      var $failure = $("#" + $form.attr("id").replace('reg', 'failure'));
      var $submit = $("#" + $form.attr("id").replace('reg', 'submit'));
      var valuesToSubmit = $form.serialize();
      $.ajax({
          type: "POST",
  