<search function="wtp">
  <name>Watch that page</name>
  <category>Login</category>
  <contributor>Tom Corcoran</contributor>
  <link>http://www.watchthatpage.com/</link>
  <email></email>
  <description>Login to WatchThatPage
    <div class="helpboxDescLabels">Example:</div>
    <table class="helpboxDescTable">
      <tr><td>wtp</td></tr>
    </table>
    <div class="helpboxDescLabels">Variable:</div>
    <table class="helpboxDescTable">
      <tr><td>wtpid('user','pwd');</td><td>An array storing a user and password profile for watchthatpage.
  	You SHOULD provide the <em>wtpid()</em> variable, eg in localpref.js.<br />
  	var wtpid = Array("user","pwd")</td></tr>
    </table>
  </description>
  <form name="wtpf"
        method="post"
        action="http://www.watchthatpage.com/checkLogin.jsp">
    <input type="hidden" name="userName" value="" />
    <input type="hidden" name="password" value="" />
  </form>
  <script><![CDATA[
    function wtp(q)
    {
      if (q=="?"){
        nullArgs("wtp",q);
        return false;
      }
      var wtpids = wtpid;
      try{
        eval("var wtpids = " + q + ";");
      }catch(e){
        var wtpids = wtpid;
      }
      try{
        document.wtpf.userName.value = wtpids[0];
        document.wtpf.password.value = wtpids[1];
      }catch(e){}

      submitForm(wtpf);
    }
  ]]></script>
</search>