rem: forms_onsubmitHandlers.push(onsubmitHandler); 
add: cocoon.forms.addOnSubmitHandler(document.getElementById(id), onsubmitHandler); 
context: function FormsMultiValueEditor(id) {    this.select = document.getElementById(id + ":input");    this.entry = document.getElementById(id + ":entry");    var self = this;    this.entry.onkeypress = function(event) { return self.processInputKey(event); };    this.select.onkeydown = function(event) { return self.processSelectKey(event); };    this.select.onchange = function(event) { return self.processSelectChange(event); };    var deleteEl = document.getElementById(id + ":delete");    deleteEl.onclick = function() { self.deleteValues(); return false; };    var upEl = document.getElementById(id + ":up");    upEl.onclick = function() { self.moveUp(); return false; };    var downEl = document.getElementById(id + ":down");    downEl.onclick = function() { self.moveDown(); return false; };    var onsubmitHandler = new Object();    onsubmitHandler.forms_onsubmit = function () {        self.selectAll();    }    forms_onsubmitHandlers.push(onsubmitHandler);}
meta: 1201	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1201/7826366b3d926533ef8980e82c454cc60331de48/forms-lib.js/buggy/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/forms-lib.js