title: Validate 11 Digits in JavaScript
body: <p>Might be a simple question, but I can't find an answer that fits this bit of code :(</p>
  
  <p>I need to validate a phone number to have EXACTLY 11 digits (no letters) </p>
  
  <pre><code>    function validateForm3() {
    var x=document.forms["booking"]["number"].value;
  if (x==null || x=="")
    {
    alert("Please fill in 11 numbers");
    return false;
    }
     var x=document.forms["booking"]["email"].value;
  if (x.indexOf("@")=== -1)
    {
    alert("Please enter a valid email");
    return false;
    }
  }
  </code></pre>
  
  <p>I can't really change the structure of this, so it needs to fit into this bit of code :( any suggestions or answers is greatly appeciated :) </p>