Welcome to Lockergnome.
You might want to try using a registry batch file instead. The proxy settings are stored in the registry, so what you can do is create two separate registry files. Then click on the one you want to use....
See this
site for more information.