title: jsp function works in IE but not chrome or firefox
body: <p>The following code is a dialog box that comes up when processing a command that the user can dismiss. It works in IE but Chrome and Firefox do not allow it to be dismissed once running.</p>
  
  <pre><code>&lt;a4j:status id="statusWaitInt" forceId="true"
              onstart="javascript:Richfaces.showModalPanel('waitModalPanel2');"
              onstop="javascript:Richfaces.hideModalPanel('waitModalPanel2');"&gt;
      &lt;/a4j:status&gt;
      &lt;rich:modalPanel id="waitModalPanel2" autosized="true" width="200" height="50" resizeable="false"&gt;
              &lt;f:facet name="header"&gt;
                  &lt;h:panelGrid columns="2" width="100%"&gt;
                      &lt;h:outputText value="IWS Processing..." styleClass="textLabel"/&gt;            
                      &lt;h:graphicImage value="/images/close.jpg" style="cursor:pointer;float:right;" onclick="Richfaces.hideModalPanel('waitModalPanel2')" /&gt;
                  &lt;/h:panelGrid&gt;
              &lt;/f:facet&gt;
               &lt;h:panelGrid style="margin:auto"&gt;
                  &lt;rich:spacer height="5px"/&gt;
                 &lt;h:graphicImage  value="/images/ajax-loader1.gif"/&gt;
              &lt;/h:panelGrid&gt;
      &lt;/rich:modalPanel&gt;
  </code></pre>
  
  <p>Here is the html that is being produced from it:</p>
  
  <pre><code>    &lt;/head&gt;&lt;span id="waitStatus"&gt;&lt;span id="waitStatus.start" style="display: none"&gt;&lt;/span&gt;&lt;script type="text/javascript"&gt;
      window.document.getElementById('waitStatus.start').onstart=function(){javascript:Richfaces.showModalPanel('waitModalPanel');;};
  &lt;/script&gt;&lt;span id="waitStatus.stop"&gt;&lt;/span&gt;&lt;script type="text/javascript"&gt;
      window.document.getElementById('waitStatus.stop').onstop=function(){javascript:Richfaces.hideModalPanel('waitModalPanel');;};
  &lt;/script&gt;&lt;/span&gt;&lt;div id="pbG182563ee_2d855a_2d4d65_2d8443_2d55f7fefd57c7:_viewRoot:j_id0:waitModalPanel" style="display: none;"&gt;&lt;input autocomplete="off" id="pbG182563ee_2d855a_2d4d65_2d8443_2d55f7fefd57c7:_viewRoot:j_id0:waitModalPanelOpenedState" name="pbG182563ee_2d855a_2d4d65_2d8443_2d55f7fefd57c7:_viewRoot:j_id0:waitModalPanelOpenedState" type="hidden" /&gt;&lt;div class="rich-modalpanel " id="pbG182563ee_2d855a_2d4d65_2d8443_2d55f7fefd57c7:_viewRoot:j_id0:waitModalPanelContainer" style="position: absolute; display: none; z-index: 100; background-color: inherit;"&gt;&lt;div class="rich-mpnl-mask-div-opaque rich-mpnl-mask-div" id="pbG182563ee_2d855a_2d4d65_2d8443_2d55f7fefd57c7:_viewRoot:j_id0:waitModalPanelDiv" style="z-index: -1;"&gt;&lt;button class="rich-mpnl-button" id="pbG182563ee_2d855a_2d4d65_2d8443_2d55f7fefd57c7:_viewRoot:j_id0:waitModalPanelFirstHref"&gt;&lt;/button&gt;&lt;/div&gt;&lt;div class="rich-mpnl-panel"&gt;&lt;div class="rich-mp-container" id="pbG182563ee_2d855a_2d4d65_2d8443_2d55f7fefd57c7:_viewRoot:j_id0:waitModalPanelCDiv" style="position: absolute; left: 0px; top: 0px; z-index: 9;"&gt;&lt;div class="rich-mpnl-shadow" id="pbG182563ee_2d855a_2d4d65_2d8443_2d55f7fefd57c7:_viewRoot:j_id0:waitModalPanelShadowDiv"&gt;&lt;/div&gt;&lt;div class=" rich-mpnl-content" id="pbG182563ee_2d855a_2d4d65_2d8443_2d55f7fefd57c7:_viewRoot:j_id0:waitModalPanelContentDiv"&gt;&lt;table border="0" cellpadding="0" cellspacing="0" class="rich-mp-content-table" id="pbG182563ee_2d855a_2d4d65_2d8443_2d55f7fefd57c7:_viewRoot:j_id0:waitModalPanelContentTable" style="width: 200px;height: 50px;"&gt;&lt;tr style="height: 1%;"&gt;&lt;td class="rich-mpnl-header-cell"&gt;&lt;div class="rich-mpnl-text rich-mpnl-header " id="pbG182563ee_2d855a_2d4d65_2d8443_2d55f7fefd57c7:_viewRoot:j_id0:waitModalPanelHeader" style="white-space: nowrap;"&gt;&lt;table width="100%"&gt;
  &lt;tbody&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;span class="textLabel"&gt;IWS Processing...&lt;/span&gt;&lt;/td&gt;
  &lt;td&gt;&lt;img src="/iws-vault/images/close.jpg" onclick="Richfaces.hideModalPanel('waitModalPanel');" style="cursor:pointer;float:right;" /&gt;&lt;/td&gt;
  </code></pre>