There is a command called
scselect that allows you to switch your current location in Mac OS X.
Locations are Mac OS X’s way of storing a set of attributes that you can switch easily all at once.
Examples of locations are “Home”, “Office”, “Hrach’s place”.
For instance, “Hrach’s Place” for me has his WEP password set up.