Problem with KeyPress Javascript function
<p>I call a javascript function from a textbox by using OnKeyPress="clickSearchButton()"</p>

<p>Here is my function:</p>

<pre><code>function clickSearchButton()
{
  var code = e.keyCode || e.which;
  var btnSearch = document.getElementById("TopSubBanner1_SearchSite1_btnSearchSite");
  if(code == 13);
      {          
           btnSearch.click(); 
           return false; 
      } 
}
</code></pre>

<p>My problem is that this function fires when the user hits the enter button in any textbox, not just the one that calls the function.  What am I missing?</p>

<p>EDIT:  Still not working correctly.  So I'll throw my HTML out there if that helps.</p>

<pre><code>&lt;input name="TopSubBanner1:SearchSite1:txtSearch" type="text" id="TopSubBanner1_SearchSite1_txtSearch" OnKeyPress="clickSearchButton(this)" /&gt;&lt;input type="submit" name="TopSubBanner1:SearchSite1:btnSearchSite" value="Search" id="TopSubBanner1_SearchSite1_btnSearchSite" /&gt;
</code></pre>

<p>Also, this is an ASP.NET page if that makes a difference.</p>
