Script for connecting to hidden wireless network

Hi,
i was wondering if anyone had a resource or an actual script that they know of that would allow me to join a wireles network.

the network name is “earth”, and the ssid is hidden.
the security is wep 40/128 - bit ACSII

the goal here is to be able to have our staff connect to this network if they lose the connection or if they take the laptop home and connect to their home ntwork, when they come back, the macbooks cannot find the network again.

thank you

Model: macbook
Browser: Firefox 3.0.13
Operating System: Mac OS X (10.6)