nice idea for script...
But, the commands aren't reconized as commands!
Also, are you sure you use the correct convertions? They do not seem right to me, at least after cross referencing them with other currency converters. Make sure you do not use exchange units, but currency convertion units. They are different! Exchange units are the units that banks charge you (they always charge you more than the actual convertion)
Tip: add a GUI where you can select your default output currency (this can be even in the form of an submenu of the Plus! icon in the main contactlist (like a global setting) and convo window (like a temporary setting) where you simply tick the currency of your choice).
Tip: Use
http://www.xe.com/ for all your currency converting, it contains every possible currency there is (more than 180 currencies in over 250 geographical locations) and is updated every minute!
Tip: for your symbols look at
http://www.xe.com/symbols.htm
Tip:
for(i=0;i<arr.length;i++) {} isn't needed with arrays you can simply do
for(i in arr) {}