rem: factorValueTB.addSpacer(); factorValueTB.addField(createOntologySearchComponent()); 
add: factorValueTB.addSpacer(); lookup = createOntologySearchComponent(); factorValueTB.addField(lookup); 
context: Ext.onReady(function() {	eeID = dwr.util.getValue("expressionExperimentID");	edID = dwr.util.getValue("experimentalDesignID");		//the mged combo box 	expFactorsCB = createFactorComboBox();   		//the lookup combobox	factorValueCB = createFactorValueComboBox();			//The tool bar. 	 if (Ext.get("eDesign")){		var simpleTB = new Ext.Toolbar("eDesign");			simpleTB.addField(expFactorsCB);		simpleTB.addSpacer();		simpleTB.addField(factorValueCB);		simpleTB.addSpacer();		assignFactorValueToBioMaterialButton = simpleTB.addButton({text: 'assign',							tooltip: 'assigns the selected Factor Value to the selected BioMaterials',								  							handler: saveFactorValueToBMHandler,							disabled: true						});							initBioMaterialGrid("bmGrid");	 }										initFactorGrid("factorGrid"); 	 		if (Ext.get("factorGridTB")){		var factorMgedComboHandler = function(field,record,index){    	    	mgedSelectedVocabC.categoryUri = record.data.uri;		mgedSelectedVocabC.category = record.data.term;				    					if (mgedSelectedVocabC.category == null)	//need to check if we should enable the save button.			saveNewFactorButton.disable();		else			saveNewFactorButton.enable();    								      						 					    	                            };    	 	var factorTB = new Ext.Toolbar("factorGridTB");			factorTB.addField(createMgedComboBox(factorMgedComboHandler));		factorTB.addSpacer();		factorTB.addField(createFactorDescriptionField());		factorTB.addSpacer();		saveNewFactorButton = factorTB.addButton({text: 'create',							tooltip: 'creates a new Experimental Factor',								  							handler: saveExperimentalFactor,							disabled: true						});	 	factorTB.addSpacer();		removeFactorButton = factorTB.addButton({text: 'remove',							tooltip: 'removes the selected Experimental Factor',								  							handler: deleteExperimentalFactor,							disabled: true						});	}							initFactorValueGrid("factorValueGrid");		if (Ext.get("factorValueTB")){			var factorValueMgedComboHandler = function(field,record,index){    	    	ontologySearchVocabC.categoryUri = record.data.uri;		ontologySearchVocabC.category = record.data.term;				    			    								      						 					    	                            };				var factorValueTB = new Ext.Toolbar("factorValueTB");		factorValueTB.addField(createMgedComboBox(factorValueMgedComboHandler));		factorValueTB.addSpacer();			factorValueTB.addField(createOntologySearchComponent());			factorValueTB.addSpacer();		factorValueTB.addField(createFactorValueDescriptionField());		factorValueTB.addSpacer();				saveNewFactorValueButton = factorValueTB.addButton({text: 'create',							tooltip: 'creates a new Experimental Factor Value',								  							handler: saveExperimentalFactorValue,							disabled: true						});	 	factorValueTB.addSpacer();		removeFactorValueButton = factorValueTB.addButton({text: 'remove',							tooltip: 'removes the selected Experimental Factor Value',								  							handler: deleteExperimentalFactorValue,							disabled: true						});	} 			});
meta: 2891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2891/7c0b06e8eac99829bf894e93c9d6de5181f015e4/ExperimentalDesign.js/buggy/gemma-web/src/main/webapp/scripts/ajax/ExperimentalDesign.js