How do i add width to an object in code?
<pre><code>&lt;script language="javascript"&gt;
var widthx = document.getElementById('testx');
var newwidth = document.getElementById('mycontent').style.width = widthx.width + 45 //not working
&lt;/script&gt;

&lt;style type="text/css"&gt;
#testx
{
width: 950px;
}

#mycontent
{
width: 800px; //this width needs to change from javascript to 950 + 45 px
}

....
</code></pre>

<p>I want to change mycontent's width to be testx width + 45 pixels (px). Anybody knows how to do this in javascript ?</p>
