title: Adding a function to a JavaScript object
body: <p>In my JavaScript I have an object instance called "View". I want to add a function to this object. The function looks something like </p>
  
  <pre><code>function csiSelectValueRestriction (columnName) {
      //... &lt;a rather long and involved function&gt;
  }
  </code></pre>
  
  <p>Ultimately I want to be able to use the function in the following way:</p>
  
  <pre><code>var result = View.csiSelectValueRestriction ("bldgs");
  </code></pre>
  
  <p>What is the simplest way to accomplish this?</p>