rem: function _setPageState(hasPrevPage, hasNextPage, curPage, itemsPerPage, items) { 
add: function _setPageState(self, hasPrevPage, hasNextPage, curPage, itemsPerPage, items) { 
context:     function _setPageState(hasPrevPage, hasNextPage, curPage, itemsPerPage, items) {        var cp = self._getHandyNode("tdb-control-panel");        if(items == 0) {            cp.style.display = "none";        } else {            cp.style.display = "table-cell";        }        function setValue(eid, value) {            var e = self._getHandyNode(eid);            if(e.childNodes.length == 0) {                e.appendChild(document.createTextNode(value));            } else {                e.firstChild.nodeValue = value;            }        }        var offset = (curPage - 1) * itemsPerPage + 1;        var end = offset + itemsPerPage - 1;        if(items < end) {            end = items;        }        setValue("tdb-item-start", offset);        setValue("tdb-item-end", end);        setValue("tdb-total-items", items);        function enable(things) {            for(var i = 0; i < things.length; i++) {                var thing = things[i];                self._getHandyNode(thing).style.display = "inline";                self._getHandyNode(thing + "-disabled").style.display = "none";            }        }        function disable(things) {            for(var i = 0; i < things.length; i++) {                var thing = things[i];                self._getHandyNode(thing + "-disabled").style.display = "inline";                self._getHandyNode(thing).style.display = "none";            }        }        var prevs = ["prev-page", "first-page"];        var nexts = ["next-page", "last-page"];        if (hasPrevPage) {            enable(prevs);        } else {            disable(prevs);        }        if (hasNextPage) {            enable(nexts);        } else {            disable(nexts);        }    },
meta: 3455	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3455/53193d0d94fd4671d8048573d01cff886bdd76a4/tdb.js/clean/xmantissa/static/js/tdb.js