problem wit a javascript function
<p>I have a html select box. And a search field (input type)</p>

<p>When i Search for something new a javascript function first clears the selectfield</p>

<p>But Javascript gives the following error:</p>

<p>gs.options.remove is not a function</p>

<p>This is the function</p>

<pre><code> function clearScholen()
  {
    for (var i=gs.options.length;i&gt;=0;i--)
    {
      gs.options.remove(i); 
    }  
  }
</code></pre>

<p>and the value of gs = </p>

<pre><code>&lt;select style="width: 420px; height: 150px;" name="selectbox" size="5"&gt;
</code></pre>

<p>Whats going wrong? </p>
