rem: function valid_part_name() { var partNameField = $('part-name-field'); var name = partNameField.value.downcase().strip(); var result = true; if (name == '') { alert('Part name cannot be empty.'); return false; } tabControl.tabs.each(function(pair) { if (tabControl.tabs[pair.key].caption == name) { result = false; alert('Part name must be unique.'); throw $break; } }); return result; 
add: function valid_part_name() { var partNameField = $('part-name-field'); var name = partNameField.value.downcase().strip(); var result = true; if (name == '') { alert('Part name cannot be empty.'); return false; } tabControl.tabs.each(function(pair){ if (tabControl.tabs.get(pair.key).caption == name) { result = false; alert('Part name must be unique.'); throw $break; } }) return result; 
context: function valid_part_name(){	var partNameField = $('part-name-field');	var name = partNameField.value.downcase().strip();	var result = true;	if (name == '')	{		alert('Part name cannot be empty.');		return false;	}	tabControl.tabs.each(function(pair)	{		if (tabControl.tabs[pair.key].caption == name)		{			result = false;			alert('Part name must be unique.');			throw $break;		}	});	return result;}
meta: 7704	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7704/f57c98afcf9653e1e2c6eb9d33a8af5d5aa1a26c/frog.js/clean/admin/javascripts/frog.js