// function moneyFormat(input) { if (!isNum(input)) return null; } function isNum(str) { var i, ch for (i = 0; i < str.length; i++) { ch = str.substring(i, i + 1) if ((ch < "0" || "9" < ch) && ch != '.') { alert(ch + " is not a number. Please type in only numbers.") return false } } return true } // -->
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||