Can someone please tell me why this code doesn't work as expected?
<p>Hello Experts (again),</p>

<p>This tiny javascript, along with some css is supposed to prevent duplicate entries into the database by freezing the screen after Submit has been clicked.</p>

<p>So far, out of over 200 people who have used the app to submit entries, 6 of them have managed to submit duplicate entries.</p>

<p>We are suspecting that older browsers may be responsible for the double entries.</p>

<p>We are still investigating.</p>

<p>Could that assumption be correct?</p>

<p>If yes, is there a way to improve this code to work on all browsers?</p>

<p>I would like to keep this code, rather than go for another because of the pleasant look and feel but open to something better.</p>

<p>Many thanks.</p>

<pre><code>&lt;script type="text/JavaScript"&gt;
    function FreezeScreen(msg) {
        scroll(0, 0);
        var outerPane = document.getElementById('FreezePane');
        var innerPane = document.getElementById('InnerFreezePane');
        if (outerPane) outerPane.className = 'FreezePaneOn';
        if (innerPane) innerPane.innerHTML = msg;
    }
&lt;/script&gt;
</code></pre>

<p>--CSS</p>

<pre><code>&lt;style type="text/css"&gt;
   .FreezePaneOff
   {
      visibility: hidden;
      display: none;
      position: absolute;
      top: -100px;
      left: -100px;
   }

   .FreezePaneOn
   {
      position: absolute;
      top: 0px;
      left: 0px;
      visibility: visible;
      display: block;
      width: 100%;
      height: 100%;
      background-color: #666;
      z-index: 999;
      filter:alpha(opacity=85);
      -moz-opacity:0.85;
      padding-top: 20%;
   }

   .InnerFreezePane
   {
      text-align: center;
      width: 66%;
      background-color: #171;
      color: White;
      font-size: large;
      border: dashed 2px #111;
      padding: 9px;
   }
&lt;/style&gt;
</code></pre>

<p><em><strong></em>**UPDATE*<em>*</em></strong></p>

<p>I am posting my response here since that thing wouldn't allow me to add comments with the stupid message that only 1 comment per 5 seconds allowed and it has been 10 minutes since the last comment was added.</p>

<p>Thanks alot @PPvG and @Random. Do I need to one of you guy's script (more likely @Random's because I don't understand what @PPvG meant by //...do your submitting stuff...) but do I need to use one of you guy's js in addition to the one I am currently using? Also, does asp.net allow form action="~" ...?</p>
