Go to this link
http://www.integraxor.com/blog/number-formatter-is-now-localized
download numberformat.js . its simple plug in. supports multiple format of currency, very easy to use. We have been uses it our online retail project.
How to use it..
add .js to your website,
on blur of text field.
$('input[id$="totalAmount"]').val(format("###,###,###.##",amount.toFixed(2)));
on calculation of amount replace , and other separator.
var temp=($('input[id$="totalAmount"]').val()).replace(/\,/g,"");