JSREF
JavaScript switch Statement
Execute a block of code based on user input: