If you are replacing an existing switch, make a diagram of how the wires were attached to the old switch before you remove them. Snap a picture with your camera phone or draw a diagram. Then replace them in the same position on the new switch.