javascript element as a variable
<pre><code>var x = "card";    
document.nick.x.value = card_dealt;
</code></pre>

<p>Not quite sure what do do here. I googled this a bunch and came up with [] but they didn't work or I'm not using them right.</p>
