rem: if(child.childNodes[0]) { 
add: if(typeof child.childNodes[0] != 'undefined') { 
context:     this.getValueByFieldID = function(fieldID) {        tagNS = this.xml.getElementsByTagName(fieldID);		if (tagNS[0] && tagNS[0].childNodes.length == 1) {			var childNode = tagNS[0].firstChild;			if (childNode.nodeType == 1) {				if (childNode.nodeName == "values") {					var values= new Array();					var child = childNode.firstChild;					while (child) {						if(child.childNodes[0]) {                            values[child.getAttribute("id")] = child.childNodes[0].data;                            child = child.nextSibling;                        }					}					return values;				} else {					return childNode;				}			} 		}		if (tagNS[0] && tagNS[0].childNodes[0]) {            if (tagNS[0].childNodes[0].nextSibling) {                str = '';                nd = tagNS[0].childNodes[0];                while(true) {                    str+= nd.nodeValue;                    nd = nd.nextSibling;                    if (!nd) {                        break;                    }                }                                return str;            }                        return tagNS[0].childNodes[0].data;		                } else {			return null;		}    }
meta: 6621	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6621/e8442c3990cc08c867077631861ca151c5ad0a38/formdata.js/buggy/webinc/plugins/dbforms2/formdata.js