title: Pass cliendid from a control as a parameter from ASP to javascript function
body: <p>I have a function that shows the password on a textbox and another the hides it and hows the dots.</p>
  
  <p>Here's one of them:</p>
  
  <pre><code>function MouseOver_MudarTipoPassword() {
          document.getElementById('&lt;%= tb_PalavraPasse.ClientID %&gt;').setAttribute('type', 'singleline');
      }
  </code></pre>
  
  <p>And the control that has the events:</p>
  
  <pre><code>&lt;img id="img_Eye" runat="server" src="~/Recursos/Imagens/eye-icon.png" onmouseover="MouseOver_MudarTipoPassword()" onmouseout="MouseLeave_MudarTipoPassword()" /&gt;
  </code></pre>
  
  <p>So, I I've been cleaning up the code because there are functions being used on several pages and I'm combining them into a javascript file. It works like this if I put it in the head section of the page. But I want to pass an argument instead. I want to pass the textbox clientid. How can I do that?</p>