function retrieveTechniqueAbbreviation() {
	var techniqueType = document.getElementById("techniqueType").value;
	if (techniqueType != null && techniqueType != 'other'){
		CharacterizationManager.getTechniqueAbbreviation(techniqueType, updateValue);
	}
}
function updateValue(textValue) {
	if (textValue != null) {		
		document.getElementById("techniqueAbbr").value = textValue;
	} else {
		document.getElementById("techniqueAbbr").value = "";
	}
}

function getUnit(fileInd, datumInd) {
	var datumName=document.getElementById("datumName"+fileInd+"-"+datumInd).value;
	CharacterizationManager.getDerivedDatumValueUnits(datumName,function(data) {			
			dwr.util.removeAllOptions("unit"+fileInd+"-"+datumInd);
			dwr.util.addOptions("unit"+fileInd+"-"+datumInd, ['']);
    		dwr.util.addOptions("unit"+fileInd+"-"+datumInd, data);
    		dwr.util.addOptions("unit"+fileInd+"-"+datumInd, ['[Other]']);
  	});
}

function setTheExperimentConfig(configId) {
	alert('setTheExperimentConfig '+configId);
	ExperimentConfigManager.findExperimentConfigById(configId, updateExperimentConfig);
}

function updateExperimentConfig(experimentConfig) {	
	if (experimentConfig != null) {		
		alert('experimentConfig = '+experimentConfig.id);
		document.getElementById("techniqueAbbr").value = textValue;
	} else {
		alert('Error getting Technique and Instrument data');
	}
}


@@ -1048,19 +1048,21 @@
 nfigId, 
-upd
+popul
 ateExper
@@ -1087,19 +1087,21 @@
 unction 
-upd
+popul
 ateExper
@@ -1132,13 +1132,69 @@
 nfig
+Bean
 ) %7B%09%0A
+%09alert('########### populateExperimentConfig');%0A%09%0A%09%0A
 %09if 
@@ -1210,16 +1210,20 @@
 ntConfig
+Bean
  != null
@@ -1258,164 +1258,260 @@
 fig 
-= '+experimentConfig.id);%0A%09%09document.getElementById(%22techniqueAbbr%22).value = textValue;%0A%09%7D else %7B%0A%09%09alert('Error getting Technique and Instrument data');%0A%09%7D
+configDescription = '+configDescription);%0A%09%7D else %7B%0A%09%09alert('Error getting Technique and Instrument data');%0A%09%7D%0A%09%0A%09dwr.util.removeAllOptions(%22techniqueType%22);%0A%09dwr.util.addOptions(%22techniqueType%22, experimentConfigBean, %22techniqueAbbr%22, %22techniqueAbbr%22);
 %0A%7D%0A%0A

test ExperimentConfigManager.findExperimentConfigById(configId, populateExperimentConfig);