title: JavaScript Compatibility View Issue
body: <p>I have a function that I have coded to throw an error message when a particular select doesn't have a value. The problem that I am having is that I have environment (when running from Netbeans) that sees this html value fine and works but when it is on the server it does not see the html and gives a value of "" and doesn't work correctly. Any help appreciated cause I'm stumped. </p>
  
  <p>Here's the JavaScript:     </p>
  
  <pre><code>function CheckForm(obj, optMsgDiv) {
     if(obj != "") {
      return true;
     } else {
        if(optMsgDiv != "") {
          var messageObj = document.getElementById(optMsgDiv);
          var clearObj = document.getElementById('refUpdMethod').value;
  
          alert("value: " + clearObj + "  Obj: " + obj);
  
          if(clearObj != "") {
             //goes to this part of the code on my local
              return true;
          } else {
             //goes this part of the code hosted on the server 
              var message = getErrorMsg();
              DisplayErrorMessage(clearObj, messageObj, message);
          }
        }
     }
     return false;
  }    
  </code></pre>
  
  <p>Here's the HTML:</p>
  
  <pre><code>&lt;macsweb:button label="&lt;&lt; Close &gt;&gt;" updModeAction="if(CheckForm '${refUpdMethod}','messages_container${counter}${refUpdate.CASE_REFERENCE_UPDATE_SEQ_NBR}') == false)return false;if(recordList.checkList()==false)return false;else{recordList.clearList('${parentDiv}'); temp = validateBeforeSubmit('${closeUrl}?action=c','${divID}','${closeMessage}','','','true','',document.forms['frmRefUpdateBilling${counter}${refUpdate.CASE_REFERENCE_UPDATE_SEQ_NBR}'],'Y','','messages_container${counter}${refUpdate.CASE_REFERENCE_UPDATE_SEQ_NBR}');
                                  if(temp)disableSingleField(this);}"
                                  style="font-weight: bold; display:${(sessionScope.aBean.updatesCloseStatus &gt; 1) ? '' : 'none'}"
                                  /&gt;
  
  &lt;td align="right"&gt;Method Used &amp;nbsp;&lt;/td&gt;
          &lt;td&gt;   
              &lt;select id="refUpdMethod" name="refUpdMethod" &gt;
                  &lt;c:forEach items="${refUpdateBean.validMethods}" var="eaMethod"&gt;
                      &lt;option value="${eaMethod}" ${(refUpdate.REFERENCE_UPDATE_METHOD eq eaMethod) ? 'selected' : ' '} &gt;${eaMethod}&lt;/option&gt;
                  &lt;/c:forEach&gt;
              &lt;/select&gt;
              &lt;macsweb:dumpOriginalValues fieldName="refUpdMethod" fieldValue="${refUpdate.REFERENCE_UPDATE_METHOD}" /&gt;
          &lt;/td&gt;
  </code></pre>