In addition to what Paul says, note that the
parseInt function takes an optional second parameter (radix) that specifies which numeral system is to be used.
For example, a radix of 16 (hexadecimal) indicates that the number in the string should be parsed from a hexadecimal number to a decimal number.
If the string begins with "0x", the radix is 16 (hexadecimal)
If the string begins with "0", the radix is 8 (octal). This feature is deprecated
If the string begins with any other value, the radix is 10 (decimal)[/QUOTE]
If your string is already in the form of a number, it might be better to use
Number() which converts the object argument to a number that represents the object's value.
If the value cannot be converted to a legal number, NaN is returned.