Is it possible to make User defined DOM changes in runtime?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4255472/javascript-object-access-variable-property-name">javascript object, access variable property name?</a>  </p>
</blockquote>



<p>I am messing around with JS, learning a stuff and I am wondering about something...
Say you have a function <code>aFunc()</code>, and you accept a string <code>aFunc(val)</code>. The value is user defined and is then used to modify the CSS of an element.</p>

<p><strong>For Example:</strong></p>

<pre><code>function aFunc(val){
    document.getElementById('something').style.val = 'red';
}
</code></pre>

<p>Say the user entered <code>borderColor</code>, it would somehow refrence <code>borderColor</code> where <code>val</code> is. I do not know how or if this is possible.</p>

<p><strong>EDIT:</strong>
Please no <code>eval()</code> :)</p>
