<search function="pp">
  <name>PayPal</name>
  <category>Finance</category>
  <contributor>Shawn K. Hall</contributor>
  <email>Shawn[@]ReliableAnswers.com</email>
  <description>Login to Paypal
  <div class="helpboxDescLabels">Example:</div>
  <table class="helpboxDescTable">
    <tr><td>pp</td></tr>
    <tr><td>pp myid</td></tr>
    <tr><td>pp myotherid</td></tr>
  </table>
  <div class="helpboxDescLabels">Variables:</div>
  <table class="helpboxDescTable">
    <tr><td>ppid('user','pwd');</td><td>An array storing a user and password profile for Paypal.
	You SHOULD provide the <em>ppid()</em> variable, however, you may also provide as many other 
	profiles as necessary to account for your Paypal ID's. If you were to create a 'second' profile 
	you would need only to pass the variable name on the command line: <br />
	<strong>pp otherVariable</strong><br />
	These variables are, however, case sensitive. If the variable passed does not exist (misspelled, 
	incorrect case...), this search will 'default' to using the <em>ppid</em> variable.</td></tr>
  </table>
  </description>
  <link>http://www.paypal.com/</link>
  <comment>
    This is pretty spiffy, eh?
  </comment>
  <form name="ppf" method="post"
	action="https://www.paypal.com/cgi-bin/webscr?__track=_home:p/wel/index-outside:_login-submit">
	<input type="hidden" name="cmd" value="_login-submit" />
	<input type="hidden" name="login_email" value="" />
	<input type="hidden" name="login_password" value="" />
	<input type="hidden" name="submit.x" value="Log In" />
  </form>
  <script><![CDATA[
    function pp(q){
	if (q=="?"){
	  nullArgs("pp",q);
	  return false;
	}
	var ppids = ppid;
	try{
	  eval("var ppids = " + q + ";");
	}catch(e){
	  var ppids = ppid;
	}
	try{
	  document.ppf.login_email.value = ppids[0];
	  document.ppf.login_password.value = ppids[1];
	}catch(e){}
	submitForm(ppf);
    }
  ]]></script>
  <copyright>
    Copyright (c) 2004 Shawn K. Hall
    Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  </copyright>
</search>
