Internet Connect

I am struggling with this one and need some help.

I am trying to script internet connect to:

  1. Connect me to the internet on opening a file
  2. If I am already connected to net, then give me an option to stay connected or to disconnect from internet
  3. Disconnect me from the internet when I close the file.

Is this an easy one or is it I am just being dense today.

Any help would very much be appreciated. :rolleyes: