anchor.diff:      updatePlaceHolderInViewSettings();
       bindEvent();
     });
  -</script>+</script>
  
positive.code: <script src="js/cookies.js" type="text/javascript"></script>
  <script type="text/javascript">
    var nTotalFile = <%= request.getAttribute("inMemoryFileNum") %>;
  
  
negative.code:     currentPage = Math.floor(currentOffset / nFilePerPage) + 1;
    }
    function updateViewSettings() {
      if (Cookies.get("nFilePerPage") != undefined) {
        nFilePerPage = Cookies.get("nFilePerPage");
      }
      if (Cookies.get("nMaxPageShown") != undefined) {
        nMaxPageShown = Cookies.get("nMaxPageShown");
      }
    }
    function saveNewViewSettings() {
      var updated = false;
      var nfpg = parseInt($("#nFilePerPage").val());
      if (!isNaN(nfpg)) {
        Cookies.set("nFilePerPage", nfpg);
        updated = true;
      }
      var nmps = parseInt($("#nMaxPageShown").val());
      if (!isNaN(nmps)) {
        Cookies.set("nMaxPageShown", nmps);
        updated = true;
      }
      return updated;
  