context: function table_add_row( table_name ) {  var row_id = table_row_counter[table_name];  if (!row_id) {    table_find_fields( table_name );    row_id = 0;     }  table_row_counter[table_name] = row_id + 1;  var prefix = table_name + '[' + row_id + ']';  var new_row = $(table_name + '_template').cloneNode(true);    new_row.id = '';  attribute_replace( new_row, /\[row_id\]/g, '[' + row_id + ']' );  $(table_name + '_tbody').appendChild( new_row );  Element.show( table_name + '_table' );  Element.show( new_row );    if (arguments.length > 1) {    var field_names = table_fields[table_name];    for( var i = 1; i < arguments.length; i++ ) {      var field = $( prefix + '[' + field_names[ i - 1] + ']' );      if (field.type == "checkbox") {        field.checked = arguments[i];      } else {        field.value = arguments[i];      }    }  } else {    var field_names = table_fields[table_name];    for ( var i = 0; i < field_names.length; i++ ) {      var col_name = prefix + '[' + field_names[i] + ']';      var col = $( col_name );      if ( col.nodeName == 'SELECT' && col.onchange ) {        col.onchange();      }    }    enable_save_button();  }} 
meta: 2782	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2782/f585b0853340dee97ede34e9d2a5d25e653b518b/application.js/buggy/rails/public/javascripts/application.js