A generic paginate class written in java-script. It computes pagination parameters which can easly used in a template file.