Code:
<input name="price" type="text" value="0" onChange="this.value=this.value.replace(/,/g,'')"/>
will remove all the ',' from a field - basically /,/g is a regular expression to matching any ','s in the string - the g bit says do it all over the string, not just the first occurance.