title: document.forms[0] is undefined in Firefox
body: <pre><code>var viewMode = document.forms[0].viewGroupFlag.value;
  var moveFlg = document.forms[0].moveGrpFlag.value;
  </code></pre>
  
  <p>the above code is my javascript and i set <code>viewGroupFlag</code> and <code>moveGrpFlag</code> as hidden variables in my JSP</p>
  
  <p><code>document.forms[0]</code> is undefined in Firefox for first line in JS but it works in internet explorer and Google Chrome.</p>
  
  <p>kindly provide the solution please.</p>