rem: var debugDiv = document.getElementById("xforms-debug"); 
add: var debugDiv = ORBEON.util.Dom.getElementById("xforms-debug"); 
context: function xformsLog(object) {    var debugDiv = document.getElementById("xforms-debug");    if (debugDiv == null) {        // Figure out width and heigh of visible part of the page        var visibleWidth;        var visibleHeight;        if (navigator.appName.indexOf("Microsoft")!=-1) {            visibleWidth = document.body.offsetWidth;            visibleHeight = document.body.offsetHeight;        } else {            visibleWidth = window.innerWidth;            visibleHeight = window.innerHeight;        }        // Create div with appropriate size and position        debugDiv = document.createElement("div");        debugDiv.className = "xforms-debug";        debugDiv.id = "xforms-debug";        debugDiv.style.width = XFORMS_DEBUG_WINDOW_WIDTH + "px";        debugDiv.style.left = visibleWidth - (XFORMS_DEBUG_WINDOW_WIDTH + 50) + "px";        debugDiv.style.height = XFORMS_DEBUG_WINDOW_HEIGHT + "px";        debugDiv.style.top = visibleHeight - (XFORMS_DEBUG_WINDOW_HEIGHT + 20) + "px";        // Add "clear" button        var clear = document.createElement("BUTTON");        clear.appendChild(document.createTextNode("Clear"));        debugDiv.appendChild(clear);        document.body.insertBefore(debugDiv, document.body.firstChild);        // Handle click on clear button        YAHOO.util.Event.addListener(clear, "click", function (event) {            var target = getEventTarget(event);            alert("click");            while (target.nextSibling)                target.parentNode.removeChild(target.nextSibling);            return false;        });        // Make it so user can move the debug window        YAHOO.util.Event.addListener(debugDiv, "mousedown", function (event) {            ORBEON.xforms.Globals.debugDiv = getEventTarget(event);            return false;        });        YAHOO.util.Event.addListener(document, "mouseup", function (event) {            ORBEON.xforms.Globals.debugDiv = null;            return false;        });        YAHOO.util.Event.addListener(document, "mousemove", function (event) {            if (ORBEON.xforms.Globals.debugDiv) {                ORBEON.xforms.Globals.debugDiv.style.left = event.clientX;                ORBEON.xforms.Globals.debugDiv.style.top = event.clientY;            }            return false;        });    }    // Convert object to text    text =        object === undefined ? "undefined"        : object === null ? "null"        : typeof object == "string" && object == "" ? "empty string"        : object.nodeType && object.nodeType == ORBEON.util.Dom.ELEMENT_TYPE ? "Element " + object.tagName        : object.nodeType && object.nodeType == ORBEON.util.Dom.TEXT_TYPE ? "Text: " + ORBEON.util.Dom.getStringValue(object)        : object;    debugDiv.innerHTML += text + " | ";}
meta: 9823	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9823/58f774b831fe409c94e9200f2ac06c01bdc56f81/xforms.js/clean/src/resources-packaged/ops/javascript/xforms.js