how to write the javascript code to get the effect?
<p>mysite have two searches, one is the whole site search. another is google search. </p>

<p>the html structure is :</p>

<pre><code>&lt;div class="fr_search"&gt;        
      &lt;select class="search_l"&gt;
        &lt;option value="0"&gt;the whole site search&lt;/option&gt;
         &lt;option value="1"&gt;google search&lt;/option&gt;
      &lt;/select&gt;

    &lt;form action="1.php"  method="post" id="search-theme-form"&gt;      
   &lt;input type="text" maxlength="128" name="search_theme_form" id="edit-search-theme-form-1" size="15" value="" title="input search term" class="form-text" /&gt;
   &lt;input type="image" name="submit" id="edit-submit"  class="form-submit"     src/images/search_btn_top.gif" /&gt;
  &lt;input type="hidden" name="form_build_id" id="form-9fb5cf2703f7df33fe84873222db2cbe" value="form-9fb5cf2703f7df33fe84873222db2cbe"  /&gt;
   &lt;input type="hidden" name="form_id" id="edit-search-theme-form"   value="search_theme_form"  /&gt;  
&lt;/form&gt;
</code></pre>

<p></p>

<p>now,  i want to do is when the site vistor select "the whole site search" from the  drop-down list . when he input the term in the textbox, and click the submit button, the search result he get coming form the site. </p>

<p>when the vistor select "google search" fromm the  drop-down list . when he input the search term in the textbox, and click the submit button,  the search result he get coming form the  Google Custom Search .
thank you.</p>
