rem: var obj = document.getElementById(name); var tabulator = document.getElementById(tabulator_name);  if(!isset(tabulator.tab_active)) tabulator.tab_active = document.getElementById(tabulator.attributes.getNamedItem('active').value);  document.getElementById(obj.id + '_content').style.display = 'none'; document.getElementById(tabulator.tab_active.id + '_content').style.display = 'block';  obj.onmousedown = function() { tabulator.tab_active.set_normal(); this.set_active(); tabulator.tab_active = this; } obj.set_active = function() { document.getElementById(this.id + '_content').style.display = 'block'; this.className = style_label + '-active'; document.getElementById(this.id + '_box').className = style_tabbox + '-active'; if(isset(eval_code)) eval(eval_code); } obj.set_normal = function() { document.getElementById(this.id + '_content').style.display = 'none'; this.className = style_label; document.getElementById(this.id + '_box').className = style_tabbox; } 
add: document.getElementById(this.id + '_content').style.display = 'block'; this.className = style_label + '-active'; document.getElementById(this.id + '_box').className = style_tabbox + '-active'; if(isset(eval_code)) eval(eval_code); 
context: 	function init_tab(name, tabulator_name, style_label, style_tabbox, eval_code)	{		var obj = document.getElementById(name);		var tabulator = document.getElementById(tabulator_name);				if(!isset(tabulator.tab_active)) 		  tabulator.tab_active = document.getElementById(tabulator.attributes.getNamedItem('active').value);				document.getElementById(obj.id + '_content').style.display = 'none';		document.getElementById(tabulator.tab_active.id + '_content').style.display = 'block';				obj.onmousedown = function()		{				tabulator.tab_active.set_normal();			this.set_active();			tabulator.tab_active = this;		}		obj.set_active = function()		{			document.getElementById(this.id + '_content').style.display = 'block';			this.className = style_label + '-active';			document.getElementById(this.id + '_box').className = style_tabbox + '-active';			if(isset(eval_code))			  eval(eval_code);		}		obj.set_normal = function()		{			document.getElementById(this.id + '_content').style.display = 'none';			this.className = style_label;			document.getElementById(this.id + '_box').className = style_tabbox;		}	}
meta: 8196	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8196/2a28919f6e958d01456898eb25453990d50e52e9/common.js/clean/2.2.1/shared/js/common.js