title: javascript text field format currency?
body: <p>I have multiple text fields that, once filled, the final text field is updated automatically via javascript, my problem is that I'd like to format this last field as currency but I have no idea where to start. </p>
  
  <p>Googled for days already. :(</p>
  
  <p>Here's the JavaScript code:</p>
  
  <pre><code>function startCalc(){
    interval = setInterval("calc()",1);
  }
  function calc(){
    one = document.myform.numberof_golfers2.value;
    two = document.myform.numberof_golfers3.value;
    three = document.myform.selected_Rate.value;
    document.myform.Costs_Total.value = (one * 13040) + (two * 10280) + (three * 1);
  }
  function stopCalc(){
    clearInterval(interval);
  }
  </code></pre>