The manual would tell you all about this, but...
Do a hard reset (hold Menu + Select for a few seconds) until the the apple logo appears and immediately turn on the Hold switch. From there you can either follow the instructions in the manual or you can use iTunes to restore your ipod.