title: show/hide the <div> tag is not working
body: <p>I have a hyperlink which should call 3 JS functions one by one during the onclick event.</p>
  
  <pre><code>&lt;form name = "bulkcontactfrm" method="POST" action="&lt;%= servletPath %&gt;&gt;
      &lt;div id="saveDiv" layoutAlign="top" style="display:block;"&gt; 
          &lt;table id=""  align="left"  border="0" cellpadding="0" cellspacing="0"&gt;
          &lt;tr&gt;
               &lt;td&gt;
              &lt;a href="javascript:void(0);" onclick="isAllowedToResubscribe(document.bulkcontactfrm); manipulateDIV(document.bulkcontactfrm); resubscribeCall(document.bulkcontactfrm);"&gt;&amp;#160;Re-Subscribe&lt;/zoniac:roundrect&gt;&amp;#160;&lt;/a&gt;
              &lt;/td&gt;
          &lt;/tr&gt;                        
          &lt;/table&gt;
      &lt;/div&gt;
      &lt;div id="loadingDiv" class="cellWhiteBGFont" layoutAlign="top" style="display: block;"&gt;&lt;p&gt;&lt;img src="&lt;%=ImageMappingManager.getImageName("imgLoading")%&gt;" name = "b1"&gt;&amp;nbsp;&amp;nbsp;&lt;font size='3'&gt;&lt;b&gt;Please wait...&lt;b&gt;&lt;/font&gt;&lt;/p&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Here are the JS functions:</p>
  
  <pre><code>// First function validate the data using ajax call
  function isAllowedToResubscribe(form) {
      //Client validation takes here 
      processAjaxRequestPost('ajaxRequestPost','SimpleHandler','getResubscribeEmailValidationDetails',emilIDStr,sourcefromStr);
  }
  
  // Second function hide the content in UI and show the Processing image in &lt;DIV&gt; tag
  function manipulateDIV(form) {
      hideSaveDiv();
      showLoadingDiv();
  }
  
  function hideSaveDiv() {
  
      //hide the Re-Subscribe hyperlink 
      document.getElementById('saveDiv').style.display='none';
  }
  function showLoadingDiv() {
      //show the Processing image 
      document.getElementById('loadingDiv').style.display='block';
  }
  
  // Third function is for form submit using ajax call
  function resubscribeCall(form) {
      //processAjaxRequestPost('ajaxRequestPost','SimpleHandler','getResubscribeEmailDetails',emilIDStr,sourcefromStr);
  }
  </code></pre>
  
  <p>After click the hyperlink validation function calls and get succeed, conformation message appear click OK on the conformation. But the <code>&lt;DIV&gt;</code> tag has not been hide so Progress image not getting loaded.</p>