<search function="yweather">
  <name>Yahoo Weather</name>
  <description>Search Yahoo Weather (by the Weather channel) for weather forecasts by zip code or city name
  <div class="helpboxDescLabels">Examples:</div> 
  <table class="helpboxDescTable">
    <tr>
      <td>yweather 22204</td>
    </tr>
    <tr>
      <td>Uses personalization variables if no arguments are present: yweather</td>
    </tr>
  </table>
  </description>
  <category>News</category>
  <link>http://weather.yahoo.com/</link>
  <contributor>Neel Doshi</contributor>
  <form name="yweatherf"
        action="http://search.weather.yahoo.com/search/weather2"
        method="get">
    <input type="hidden" name="p" value=""/>
  </form>
  <script><![CDATA[
    function yweather(q)
    {
      if (q == "")
      	if (typeof user_zip != "undefined" && user_zip != "")
      	{
      		document.yweatherf.p.value=user_zip;
      		submitForm(yweatherf);
      	}
      	else if (typeof user_city != "undefined" && user_city != "")
      	{
      		document.yweatherf.p.value=user_city;
      		submitForm(yweatherf);
      	}
      	else
      	{
      		openSearchWindow("http://weather.yahoo.com/");
      		return false;
      	}
      else if (q == "?")
      {
		nullArgs("yweather", q);
		return false;
      }
      else
      {
        document.yweatherf.p.value=q;
        submitForm(yweatherf);
      }
    }
  ]]></script>

  <copyright>
	Copyright (c) 2002 David Bau
	Distributed under the terms of the
	GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  </copyright>
</search>

