try this its working
function changeNo (v)
{
v = (Math.round((v - 0) * 100)) / 100;
v = (v == Math.floor(v)) ? v + ".00" : ((v * 10 == Math.floor(v * 10)) ? v + "0" : v);
v = String(v);
var ps = v.split('.'),
whole = ps[0],
sub = ps[1] ? '.' + ps[1] : '.00',
r = /(\d+)(\d{2})/;
if(parseInt(whole)>999)
{
var whole1=whole.substring(whole.length-3);
var whole2=whole.substring(0,whole.length-3);
while (r.test(whole2))
{
whole2 = whole2.replace(r, '$1' + ',' + '$2');
}
v = whole2+','+whole1 + sub;
}
else
{
v = whole+ sub;
}
return v;
}