This is for gMax. It won't work right in 3ds, and 3ds already has layers capability.
This is a macroscript which opens a dialog window. Assign it a hotkey (I suggest Alt-L) and/or a menu item (I suggest Tools), toolbar button, or whatever you like. It lets you affect selection, transparency, visability, and freezing of groups of objects.