[Asking smart questions] [About Bear] [Books by Bear]
Originally posted by Surasak Leenapongpanit: Hi var zeroes = new Array("00000", "0000", "000", "00", "0"); function padZeroes(n) { n = n.toString(); return zeroes[n.length] + n; }