title: pass multiple arguments into a single parameter
body: <p>I found a script on the internet which displays and hides snippets of code:</p>
  
  <pre><code> function show(shown, hidden,) {
      document.getElementById(shown).style.display='block';
      document.getElementById(hidden).style.display='none';
      return false;
   }
  
  
  &lt;a href="#" onclick="return show('Page1','Page2');"&gt;Page 1&lt;/a&gt;
  &lt;a href="#" onclick="return show('Page2','Page1');"&gt;Page 2&lt;/a&gt;
  </code></pre>
  
  <p>My question is, how would I alter this to include more pages?</p>
  
  <p>The only way I could find that worked was this:</p>
  
  <pre><code>    function show(shown, hidden1, hidden2, hidden3) {
        document.getElementById(shown).style.display='block';
        document.getElementById(hidden1).style.display='none';
        document.getElementById(hidden2).style.display='none';
        document.getElementById(hidden3).style.display='none';
        return false;
      }
  
  
  &lt;a href="" onclick="return show('Page1','Page2','Page3','Page4' );"&gt;Page 1&lt;/a&gt;
  &lt;a href="" onclick="return show('Page2','Page1','Page3','Page4' );"&gt;Page 2&lt;/a&gt;
  &lt;a href="" onclick="return show('Page3','Page1','Page2','Page4' );"&gt;Page 3&lt;/a&gt;
  &lt;a href="" onclick="return show('Page4','Page1','Page2','Page3' );"&gt;Page 4&lt;/a&gt;
  </code></pre>
  
  <p>...but it seems a little messy.  So is there a way to pass 3 pages all at once into the  'hidden' argument in the script?</p>
  
  <p>Thanks!</p>