getting string length in JS
<p>This is my html code <a href="http://pastebin.com/fEryHwv2" rel="nofollow">the code</a>!
But the JS is not working
I tried a few things but i cant get the popup window if it less than 2</p>

<pre><code>&lt;script&gt;
    function Check(name) {
        if (name.length &lt; 2)
           alert("פחות משני תווים בשם");
    }
&lt;/script&gt;

&lt;input 
  id="Text1" 
  name="Text1" 
  type="text" 
  value="שם פרטי" 
  onmouseover="value=''" 
  onclick="Check();" 
/&gt;
</code></pre>
