loadLastViewedPersons = function(blockDiv, wwwGidsUrl) {
  $.ajax({
    type: "GET",
    url: wwwGidsUrl,
    data: {
      ajax: true,
      mode: "persons"
    },
    success: function(msg) {
      var lastSeen = $('.bekekenblok div.bekeken', msg);

      if(lastSeen.length > 0) {
        $('#' + blockDiv).replaceWith(lastSeen);
        $('div.bekeken').click(function(evt) {
          document.location = $(evt.target).closest("div.bekeken").find("a[href]").attr("href");
          evt.preventDefault();
          evt.stopPropagation();
          evt.stopImmediatePropagation();
          return false;
        });
      }
    },
    error: function(request, status, exception) {
      // do nothing
    }
  });
};

