title: newbie help: if else Javascript statement that conditionally displays linked images
body: <p>I'm new to javascript, and need some direction on how to build this code.</p>
  
  <p>I have 2 sets of 6-10 linked images (  )</p>
  
  <p>First, I want the javascript code to select which set to display using an if else statement like below</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
  
      if (mmjsRegion == "CO")
         {
         document.write("&lt;b&gt;Colorado&lt;/b&gt;");
         }
      else
         {
         document.write("&lt;b&gt;California&lt;/b&gt;");
         }
      &lt;/script&gt;
  </code></pre>
  
  <p>Then, I want the javascript code to randomly choose 3 linked images of the selected set, and display only those three.</p>
  
  <p>How would the structure of this code look? </p>
  
  <p>Any direction would help so much.</p>
  
  <p>Thanks!
  zeem</p>