How can i do thousand separator masking using Javascript,PHP,CSS,HTML?

Hello Guys,
I have browsed Internet continuously 4 hours but i could not get the solution to do Masking (Thousand separator) in the text-box.anybody know how to do it or else suggest me any site where i can get it.
Has anybody done this thing.please help me......

Thanks
4 answers 4