function formatCurrency(num) {
num = num.toString().replace(/\\$|\\,/g,'');
if (isNaN(num)) num = '0';
...
JavaScript Format Currency
//function that loops through the elements
function __validateForm(theform){
...
JavaScript Simple form validator with ...
by eljota,
November 11, 2007 10:32,
5 refactorings, tagged with javascript, js, form, validation, regex
This is a real simple form ...
During a code review we fou...