Javascript change commas for points and points for commas?
<p>I want to convert all commas in a string in points and vice-versa. However I don't know how to do it since I get all commas or points after the first change.</p>

<pre><code>"1.000,20" should become "1,000.20"
</code></pre>

<p>How can this be done?</p>
