The function can be improved. Also this can be done easy if you look into the code. The problem is that it can be applied to multiple tables in one page (usind classes as selectors), where setting particular parameters is dificcult, but will see what I can do.