Javascript isNumeric() function
/* isNumeric function in Javascript */ function isNumeric(n) { return !isNaN(parseFloat(n)) && isFinite(n); }