rem: select = document.getElementById(prefix); 
add: var select = document.getElementById(prefix); 
context: function setSelection(prefix, values, selected){	select = document.getElementById(prefix);	if ((select !== null) && (typeof select.options != "undefined")) {		for (var i=0; i < select.options.length; i++) {			if (in_array(select.options[i].value, values)) {				select.options[i].selected = selected;			}		}	} else {		for (var i=0; i < values.length; i++) {			var obj = document.getElementById(prefix+'_'+values[i]);			if (null === obj) {				alert(prefix+'_'+values[i]+' is null!');			}			if (obj.tagName == 'OPTION') {				obj.selected = selected;			}			if ((obj.tagName == 'INPUT') && (obj.type == 'checkbox' || obj.type == 'radio')) {				obj.checked = selected;			}		}	}}
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5635/c8c5167f108f567e9dd5e30bea86a0b12b04d1f3/metadata_field_select.js/buggy/core/assets/metadata/metadata_fields/metadata_field_select/js/metadata_field_select.js