In Internet Explorer. Go to Internet Options->Connections->Lan settings.
If you enable "Automatically detect settings", you should no longer have to manually configure the proxy settings for each environment.
When you laptop is behind a proxy, those settings should be detected and your browser configured accordingly.
If that doesn't work, perhaps this might be of use.