How to alter CSS styles with Javascript?
<p>I have an Array like this:</p>

<pre><code>var colors = {
1: '#FFFF00',
2: '#FF0000',
3: '#80FF00',
4: '#00FFFF',
5: '#FF00FF'
}; 
</code></pre>

<p>And Javascript like this:</p>

<pre><code>var color = Math.floor(Math.random()*5)+1;
if(color == document.getElementById('awards').style.borderColor) {
    var color = Math.floor(Math.random()*5)+1;
}
else {
document.getElementById('awards').style.borderColor = color;
}
</code></pre>

<p>But my Javascript isn't working.</p>
