title: Explaining the setState function
body: <p>Can someone explain what this function is doing </p>
  
  <pre><code>var page = new Object();  
  page.testSearch.btnSearch.setState = function() {
      this.disable(!(page.testSearch.searchString.value.trim().length &gt; 1));  
  }  
  </code></pre>