Lookup Country and Area code

Enter a telephone number. Format: 00 Country code Area code. E.G.: 003170.
A leading '+' will be replaced by '00'.
Anything between brackets, '(...)' will be ignored.
All non-digits are ignored as well.

This form is based on the Asterisk name and location lookup AGI, which displays names and locations on SIP phones.
Names are shortened to 20 characters. If you know a better way of doing this, please let me know.
If you find any errors, please let me know.