rem: var max = Math.min (idx+10, size); 
add: var max = Math.min (10, size); 
context: function storylist_macro(param) {   res.write(param.prefix)   var show = req.data.show;   var size = this.size();   var idx = parseInt (req.data.start,10);   if (isNaN (idx)|| idx > size-1)      idx = 0;   var cnt = 0;   var max = Math.min (idx+10, size);   if (idx > 0)      res.write ("...&nbsp;<a href='"+this.href()+"?start="+Math.max(0, idx-10) + (show ? "&show=" + show : "") + "'>newer stories</a><br>");   while (cnt < max && idx < size) {      var render = true;      var s = this.get(idx);      if (show == "offline" && s.isOnline())         render = false;      else if (show == "mystories" && s.author != user)         render = false;      if (render) {         var sp = new Object();         sp.story = s.renderSkinAsString("listitem");         if (s.isOnline())            this.renderSkin("onlinestory",sp);         else {            this.renderSkin("offlinestory",sp);         }         cnt++;      }      idx++;   }   if (idx < size)      res.write ("<br><a href='"+this.href()+"?start=" + idx + (show ? "&show=" + show : "") + "'>older stories</a>&nbsp;...");   res.write(param.suffix);}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/0b3f3ee2ba7d9c9fd23a5583f2cd7c5e50c05516/macros.js/clean/code/StoryMgr/macros.js