ge) {
      while(node.firstChild) {
        node.removeChild(node.firstChild);
      }
      node.appendChild(document.createTextNode(message));
    }
    for(var idx in elements){
      var elementName = elements[idx];
      var displayElement = document.getElementById(elements[idx]);
      var messageElement = document.getElementById(elements[idx]+'Message');
      if (-1 != visible.indexOf(elementName)) {
        if(data && data[elementName]) {
          replaceTextContent(messageElement, data[elementNa