title: Simple javascript only working in FireFox
body: <p>I created a script that requires selecting a beginning year then only displays years from that Beginning year -> 2009. It's just a startYear to endYear Range selector. </p>
  
  <p>The script only works in firefox. I'm LEARNING javascript, so I'm hoping someone can point me into the right direction. Live script can be found at <a href="http://motolistr.com" rel="nofollow noreferrer">http://motolistr.com</a></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function display_year2(start_year) {
  //alert(start_year);
  if (start_year != "Any") {
      var i;
      for(i=document.form.year2.options.length-1;i&gt;=0;i--)
      {
          document.form.year2.remove(i);
      }
  
      var x = 2009;
      while (x &gt;= start_year) {
          var optn = document.createElement("OPTION");
          optn.text = x;
          optn.value = x;
          document.form.year2.options.add(optn);
          //alert(x);
          x--;
      }
  }
  else 
  {
      var i;
      for(i=document.form.year2.options.length-1;i&gt;=0;i--)
      {
          document.form.year2.remove(i);
      }
      var optn = document.createElement("OPTION");
      optn.text = "Any";
      optn.value = "Any";
      document.form.year2.options.add(optn);
  } // end else
  } // end function
  &lt;/script&gt;
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks,
  Nick</p>