another alternative would be to use regEx for that, have a look at the following example, that matches all positve integers:
[CODE=javascript]// var val will have true assigned in case of positive ints
// otherwise it will be false
// note: string_value is the value you want to test
var val = /^\d+$/.test(string_va lue);[/CODE]
kind regards
Comment