rem: } 
add: } 
context:     this.select = function(td)    {        var id = td.id;        rr = id.substring(2, id.indexOf("_"))*1;        cc = id.substring(id.indexOf("_") + 1)*1;        if (this.selector != "head") {            for (r = 0;r<this.rows;r++) {                this.matrix[r].selected = false;                for (c = 0;c<this.cols;c++) {                    this.matrix[r].cells[c].selected = false;                }            }        }        if (this.selector == "row") {            this.matrix[rr].selected = true;            this.matrix[rr].setPanels();            this.c = null;            this.r = rr;        }        if (this.selector == "cell") {            this.matrix[rr].cells[cc].selected = true;            this.matrix[rr].cells[cc].setPanels();            this.c = cc;            this.r = rr;        }        if (this.selector == "head") {            var header = new THeader(rr, cc);            var isInside = false;            for (i=0;i<this.matrix[this.r].cells[this.c].headers.length;i++) {                if (this.matrix[this.r].cells[this.c].headers[i].r == header.r && this.matrix[this.r].cells[this.c].headers[i].c == header.c) isInside = true;            }            if (isInside) {                var newArr = Array();                for (i=0;i<this.matrix[this.r].cells[this.c].headers.length;i++) {                    if (this.matrix[this.r].cells[this.c].headers[i].r != header.r || this.matrix[this.r].cells[this.c].headers[i].c != header.c) newArr.push(this.matrix[this.r].cells[this.c].headers[i]);                }                this.matrix[this.r].cells[this.c].headers = newArr;            } else {                this.matrix[this.r].cells[this.c].headers.push(header);            }        }        this.refresh();        return true;    }
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/434918b400ee690fa5c88806ee47f5494d783b31/table-editor.js/clean/fudge/wysiwyg/plugins/table_editing/table-editor.js