title: Unable to get property 'style' of undefined or null reference but works in another server
body: <p>I have a classic asp project. In one of my pages i have to call a javascript function. That call does not have any problem and works fine on my test server (not localhost, just a server to test he project). But when i deploy it to the actual server, that function does not work. I call this function in onload event.</p>
  
  <p>That function has this type of lines (i cannot write the whole code, because of the company that i work for, does not allow it)</p>
  
  <pre><code>document.getElementById("R6C2_1").style.display = 'block'
  document.getElementById("R6C2_2").style.display = 'none'
  </code></pre>
  
  <p>....</p>
  
  <p>When I try to debug it on IE10, i got <strong>"Unable to get property 'style' of undefined or null reference"</strong> error. After that, the elements in javascript function are not load. They are not seen on the page.</p>
  
  <p>My main problem is, as i mentioned before differences between servers. I do not understand why it works on one server, but not on another server.</p>