Parameters:
Str, a string containing numbers.
Return value:
If the first few characters in str are numbers, the number is returned.
If the first character of str is not a number, NaN is returned.
For example:
parse int(" 1234 "); //Return 1234
parse int(" 1234 a "); //Return 1234
parse int(" 1234 a5 "); //Return 1234
parse int(" a 1234 "); //return NaN
parse int(" ABCD "); //return NaN