rem: var beginElement = document.getElementById(beginElementId); 
add: var beginElement = ORBEON.util.Dom.getElementById(beginElementId); 
context: function xformsFindRepeatDelimiter(repeatId, index) {    // Find id of repeat begin for the current repeatId    var parentRepeatIndexes = "";    {        var currentId = repeatId;        while (true) {            var parent = ORBEON.xforms.Globals.repeatTreeChildToParent[currentId];            if (parent == null) break;            var grandParent = ORBEON.xforms.Globals.repeatTreeChildToParent[parent];            parentRepeatIndexes = (grandParent == null ? XFORMS_SEPARATOR_1 : XFORMS_SEPARATOR_2)                    + ORBEON.xforms.Globals.repeatIndexes[parent] + parentRepeatIndexes;            currentId = parent;        }    }    var beginElementId = "repeat-begin-" + repeatId + parentRepeatIndexes;    var beginElement = document.getElementById(beginElementId);    if (!beginElement) return null;    var cursor = beginElement;    var cursorPosition = 0;    while (true) {        while (cursor.nodeType != ELEMENT_TYPE || !ORBEON.util.Dom.hasClass(cursor, "xforms-repeat-delimiter")) {            cursor = cursor.nextSibling;            if (!cursor) return null;        }        cursorPosition++;        if (cursorPosition == index) break;        cursor = cursor.nextSibling;    }    return cursor;}
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