anchor.diff:              $("#ajaxLogin").jqmHide();
               $("#loginLink").html(
                  'Logged in as ' + json.username +
  -               ' (<a href="' + $("#logoutLink").attr("href") +
  +               ' (<a href="' + $("#logout").attr("href") +
                  '" id="logout">Logout</a>)');
               if (onLogin) {
                  // execute the saved event.success function
  
positive.code:                'Sorry, there was a problem with the login request</error>');
           }
           else {
              var responseText = jqXHR.responseText || "[]";
              var json = responseText.evalJSON();
              if (json.error) {
                 $("#loginMessage").html('<span class="errorMessage">' +
                                         json.error + "</error>");
              }
              else {
                 $("#loginMessage").html(responseText);
              }
           }
        }
     });
  
negative.code: function logout(event) {
     event.preventDefault();
     $.ajax({
        url: $("#logout").attr("href"),
        method: "POST",
        success: function(data, textStatus, jqXHR) {
           window.location = "/";
        },
  