Removing comma from text input?

I have a text field where the user can input their salary, the only problem I have is that if they put a comma in it will break the calculations, so I need to be able to take the amount they give and then rip out the comma and have it just be the full number so I can do the necessary calculations with it.

I have everything working fine otherwise, just need to fix this hopefully minor issue.

I am working in Flash 8, but am exporting out with AS 1.0 due to limitations in the base movie file (that I did not build).

Thanks in advance.:}