Added a new AGM_Core function that when passed a number or string containing a number will return the number.
Made use of the new toNumber function for the openSelectMenu calls that require it.
Converted tab to space
Merge pull request #1188 from CorruptedHeart/toNumberFunction

To number function