rem: var tab = 'tab-' + index; var caption = partNameField.value; var page = 'page-' + index; tabControl.addTab(tab, caption, page); 
add: tabControl.addTab('tab-' + index,  partNameField.value, 'page-' + index); Element.toggle('busy'); 
context: function part_added() {  var partNameField = $('part-name-field');  var partIndexField = $('part-index-field');  var index = parseInt(partIndexField.value);  var tab = 'tab-' + index;  var caption = partNameField.value;  var page = 'page-' + index;  tabControl.addTab(tab, caption, page);  Element.hide('add-part-popup');  Element.hide('busy');  partNameField.value = '';  partIndexField.value = (index + 1).toString();  $('add-part-button').disabled = false;  Field.focus(partNameField);  tabControl.select(tab);}
meta: 7704	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7704/0434399748d7f63583819e6ddf45d321b7c1dd5e/frog.js/clean/admin/javascripts/frog.js