I am trying to trap the text of an textbox in a form on one of my web pages.

I have a textbox that allows the user to enter a dollar amount. Some users will enter just numbers, and some users will enter the dollar sign and then the numbers.

I want to use OnFocusOut to see if the user has entered a dollar sign and strip it out if he or she has.

Can anyone give me some help with this? I'd appreciate it.

Here is what I am using right now. I want to embed the onfocusout either inside the <input ...> tags or in a <script ...> set of tags:

Code:
<tr>
     <td align="right"><font class="form_label">Annual Revenue (USD):</font></td>
     <td><input name="revenue"></font></td>
</tr>
Thanks.