Applying style using javascript doesn't work always
<p>I am applying style to div using JavaScript it appears well at the first time but when I click an image to open a virtual window the applied CSS goes away. </p>

<p>How can I apply style using script that stays forever.</p>

<p>**There is no way left for me to apply any style at design time because I am using ready made user control and I get ID for the DIV only at run time.</p>

<p>Any Idea??</p>

<p>Here is the script I am using...</p>

<pre><code>window.onload = changeDivOverflow;
function  changeDivOverflow()
{
   var treeDiv = document.getElementById('T_ctl00contentMainctl04tvw');
   treeDiv.style.overflow = "auto";
}
</code></pre>
