you have to specify the base (not sure of the english word here !! i mean : binary, decimal, octo-something, hex ... is it radix ??)
the proper syntax is : parseInt(string, base) and if you don't supply the base part here is how it goes :
If the input string begins with "0x", the radix is 16 (hexadecimal). <---- your case !
If the input string begins with "0", the radix is eight (octal).
If the input string begins with any other value, the radix is 10 (decimal).
If the first character cannot be converted to a number, parseInt returns NaN.
ok this part (in blue) was stoleen from devedge doc :-/