title: How to validate that *first* two characters entered are letters?
body: <p>I'm looking to check that the first two characters entered in a name field are letters--beyond that it makes no difference (spaces, ', -, etc are all fair game). Here's what I have so far, but it isn't working. Thoughts? Thanks! </p>
  
  <pre><code>if (document.form01.firstName.value.length &lt; 2 
   || !/^[a-zA-Z]{2}+.?$/.test(document.form01.firstName.value)) {
      alert("First name must contain at least 2 letters.");
      document.form01.firstName.select();
      document.form01.firstName.style.backgroundColor="yellow";
      return false;    // leave now
  } 
  </code></pre>