title: Javascript Function not Called onClick()
body: <p>I was trying to clean up some of the code on our website (in its current form, we would have to make 50 or so JS files and 50 or so PHP files for all of our offered products). I am looking at the code and it SHOULD be working, so I am confused as to where I screwed up. It doesn't seem like the Function is being called at all (I put an Alert at the top of it that never got called) so I assume I screwed up something in the first section.</p>
  
  <pre><code>                &lt;select class="gameserverselecion4" name="slots"&gt;
                      &lt;option value="10|457"&gt;10 Slots - 9.90 / mo&lt;/option&gt;
                      &lt;option value="12|458"&gt;12 Slots - 11.88 / mo&lt;/option&gt;
                      &lt;option value="14|459"&gt;14 Slots - 13.86 / mo&lt;/option&gt;
                  &lt;option value="16|460"&gt;16 Slots - 15.84 / mo&lt;/option&gt;
                      &lt;option value="18|461"&gt;18 Slots - 17.82 / mo&lt;/option&gt;
                      &lt;option value="20|462"&gt;20 Slots - 19.80 / mo&lt;/option&gt;
                      &lt;option value="22|463"&gt;22 Slots - 21.78 / mo&lt;/option&gt;
                      &lt;option value="24|464"&gt;24 Slots - 23.76 / mo&lt;/option&gt;
                      &lt;option value="26|465"&gt;26 Slots - 25.74 / mo&lt;/option&gt;
                      &lt;option value="28|466"&gt;28 Slots - 27.72 / mo&lt;/option&gt;
                      &lt;option value="30|467"&gt;30 Slots - 29.70 / mo&lt;/option&gt;
                      &lt;option value="32468"&gt;32 Slots - 31.68 / mo&lt;/option&gt;
              &lt;/select&gt;
              &lt;/div&gt;
              &lt;div id="inputTopRight"&gt;
                  &lt;input type="button" name="submit" onclick="ProcessOrder('0','167','44');"/&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>Then the Javascript...</p>
  
  <pre><code>function ProcessOrder(loc,pid,cfopID)
  {
      var values = document.dropTop.slots.value;
      var valuesArray = values.split("|");
      var slots = valuesArray[0];
      var cfopValue = valuesArray[1];
      alert("Slots is: " + slots " cfopValue is:" + cfopValue);
  
      switch (slots)
      {
          case 10:
          {
              window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&amp;pid=" + pid + "&amp;configoption[" + cfopID + "]=" + cfopValue;
          }
          case 12:
          {
              window.location = "https://www.xfactorservers.com/clients/cart.php?a=add&amp;pid=" + pid + "&amp;configoption[" + cfopID + "]=" + cfopValue;
          }
  </code></pre>