Equivalent to PHP function number_format in jquery/javascript
<p>PHP Function:</p>

<pre><code>function formatNumberForDisplay($number, $decimal=0, $decimalSeperator='.', $numberSeperator=',')
{
     return number_format($number, $decimal, $decimalSeperator, $numberSeperator);
}
</code></pre>

<p>My need:
Can any body suggest me the equivalent functionality in jquery/javascript. </p>

<p>Thanks in advance.</p>
