rem: if ( options.controlBox ) 
add: if ( options.controlBox ) { 
context: 	create: function(table_id)	{        el = $(table_id);        $('controlBox').style.left = parseInt(findPos(el)) + parseInt (el.scrollWidth - 30) + 'px';		var table = $(table_id);		if ( ! table || table.tagName != 'TABLE' )			return;		var options = Object.extend(this.default_options, arguments[1] || {});				var tbody = table.getElementsByTagName('TBODY');		var row = tbody[0].getElementsByTagName('TR');			var i, j, input;		for (i = 0; i < row.length; i++ ) {			row[i].table_id = table_id;			input = row[i].getElementsByTagName("INPUT");			// initialize tree values			if ( options.tree ) {				row[i].tree_left = 0;				row[i].tree_right = 0;				for ( j = 0; j < input.length; j++ ) {					if ( input[j].name.substring(0,3) == 'lft' )						row[i].tree_left = input[j];					else if ( input[j].name.substring(0,3) == 'rgt' )						row[i].tree_right = input[j];				}				row[i].tree_diff = parseInt(row[i].tree_right.value,10) - parseInt(row[i].tree_left.value,10);				span = row[i].getElementsByTagName("SPAN");				for ( j = 0; j < span.length; j++ ) {					if ( span[j].className == "depthmark" )						row[i].tree_depthmark = span[j];				}			}			// initialize classical position values			else {				for ( j = 0; j < input.length; j++ ) {					if ( input[j].name.substring(0,13) == 'list_position' )						row[i].list_position = input[j];				}			}			Event.observe(row[i], 'click', function(e) { TableControl._onClick(e) }, false);		}		if ( options.controlBox )			options.controlBoxElt = $(options.controlBox);				if ( options.tree ) {			this._buildTree(table);			var form = getParent(table, "FORM");			if ( form )				Event.observe(form, 'submit', function(e) { TableControl._calculateValues(table.root_node) }, false);		}				this.controlled_tables[table_id] = options;	},
meta: 6601	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6601/cbde8fee8498361b84fd0de2436ab841ba8b7f59/tablecontrol.js/buggy/javascript/tablecontrol.js