t.substring(0, maxChars) + "...");
                    }
                }
            });
            return nRow;
        };
        return this;
    });
    return this;
};

    function get_LastRowId() {
        var max = 0;
        $("td[data-dt-column='0']").each(function() {
            $this = parseInt($(this).text());
            if ($this > max) 
                max = $this;
        });
        //console.log(max);
        return max;
    }

    function ui_rearrange() {
        $( "#tblResultView_