title: is null or undefined, not a Function object
body: <p>I have two JavaScript Functions: </p>
  
  <pre><code>function DisplayErrorMessage(fieldElement, messageElement, message) {
    alert(fieldElement.name);
    if(canFocus(fieldElement)){
      //fieldElement.focus();
      if(fieldElement.type =="text") {
        fieldElement.select();
      }
    }
    messageElement.style.backgroundColor='red';
    messageElement.innerText = message;  
  }
  </code></pre>
  
  <p>And the function that calls this function: </p>
  
  <pre><code>function CheckForm(obj, optMsgDiv) {
    if(obj != "") {
      return true;
    } else {
      if(optMsgDiv != "") {
        var messageObj = document.getElementById(optMsgDiv);
        var clearObj = document.getElementById("refUpdMethod");
        var message = getErrorMsg();
        DisplayErrorMessage(clearObj, messageObj, message);
      }
    }
    return false;
  }
  </code></pre>
  
  <p>On one build it works just fine but on my main build I get 
  Error: The value of the property 'DisplayErrorMessage' is null or undefined, not a Function object.</p>