Javascript function not being found when Button is clicked to invoke it
<p>I have defined my OpenWin() function to handle opening the new window and pass params to it but when I compile it it says it is not defined.</p>

<pre><code>&gt;     &lt;script type="text/javascript"&gt;
&gt;         function OpenWin()
&gt;             {
&gt;                 var
&gt; 
&gt;                     Parms = document.getElementById('PassParmString').value;
&gt; 
&gt; 
&gt;                 window.open("ViewerPane.aspx?prm=" + Parms,"_blank","left=20,top=20,width=1000,height=1140,toolbar=0,resizable=1")
&gt;             }
&gt;     &lt;/script&gt;
</code></pre>

<p>And further down is the button script ...</p>

<pre><code>&gt;             &lt;asp:Button ID="btnAuthenticate" OnClick="OpenWin()" runat="server" Height="44px" Style="z-index: 108;
&gt;                 left: 716px; position: absolute; top: 243px" Text="Authenticate" Width="97px" /&gt;
</code></pre>

<p>Message:...</p>

<blockquote>
  <p>Description: An error occurred during the compilation of a resource
  required to service this request. Please review the following specific
  error details and modify your source code appropriately. </p>
  
  <p>Compiler Error Message: BC30456: 'OpenWin' is not a member of
  'ASP.default_aspx'.</p>
  
  <p>Source Error:</p>
  
  <p>Line 38:             
  top: 243px" Text="UserName :"> Line 40:<br>
   Line 42:             
  
  <p>Source File: C:\projects\Centauri_0.01\ASPXRPT\Default.aspx    Line:
  40</p>
</blockquote>
