@@rsName@@_total) { @@rsName@@_numRows = @@rsName@@_total; } // set the first and last displayed record @@rsName@@_first = Math.min(@@rsName@@_first, @@rsName@@_total); @@rsName@@_last = Math.min(@@rsName@@_first + @@rsName@@_numRows - 1, @@rsName@@_total); } %> ]]>