1. Make your data array bigger
==>
2. Take this line out
PHP Code:
new iCountry = str_to_num(data);
3. Take out the switch.
4. Replace all occurrences of
iCountry with
data
You were trying to turn the country name string into a number (integer), and then copy that integer into a string...
btw, you should rename
iSelectedCountry to
szSelectedCountry, though it isn't necessary.