title: Javascript error in Chrome
body: <p>Can someone help...I am testing my asp.net application in chrome. On successful login I am receiving this error in JavaScript Console. </p>
  
  <p>Code snippet where error occurs:</p>
  
  <pre><code>function ChangeToStaticImage() 
  {   
  //Error occurs after this line
      if ( window.Form1 &amp;&amp; window.Form1.document.getElementById('div_Running') )
      {
          document.getElementById('div_Running').style.display = 'none';
          document.getElementById('div_Running').style.visibility = 'hidden';
      }
  }
  </code></pre>
  
  <p>Actual java script error:</p>
  
  <blockquote>
    <p>Uncaught Type Error: 
    Cannot read property 'getElementById' of undefined.</p>
  </blockquote>
  
  <p>Thanks in advance.</p>