//Triming the leading spaces. function trimspace(str) { var len= str.length; if (len != 0) { for (var i=0;i= 0 && String.fromCharCode(whichCode) <= 9) return true; return false; }