title: more than currency input field
body: <p>I have this input tag where you put the total of your receipt :</p>
  
  <pre><code>&lt;input type="text" name="currency" id="currency" class="text-input" onBlur="this.value=formatCurrency(this.value);"   /&gt;
  </code></pre>
  
  <p>The Javascript is as follows:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  function formatCurrency(num) {
      num = num.toString().replace(/\$|\,/g,'');
      if(isNaN(num)) {
          num = "0";
      }
      sign = (num == (num = Math.abs(num)));
      num = Math.floor(num*100+0.50000000001);
      cents = num % 100;
      num = Math.floor(num/100).toString();
      if(cents &lt; 10) {
          cents = "0" + cents;
      }
      for (var i = 0; i &lt; Math.floor((num.length-(1+i))/3); i++) {
          num = num.substring(0,num.length-(4*i+3))+','+num.substring(num.length-(4*i+3));
      }
      return (((sign)?'':'-') + '$' + num + '.' + cents);
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Users can only enter receipts more than $10.00 bucks, how can I set that on my script? Also they need to know they can not enter currency less than $10.</p>