rem: selectFirst.setAttribute("onchange", "buildSecondaryList(this)"); 
add: selectFirst.onchange = function() { buildSecondaryList(selectFirst); }; 
context: function rebuildTimezoneSelect(element){	// Add the has to our element	var tempHash = new Object();		var re = /^([a-zA-Z]+)\/(.+)$/;	// Create a new select	var selectFirst = document.createElement("select");	selectFirst.name = "selector_" + element.name;	selectFirst.className = element.className;	// selectFirst.style.width = "10em";		// Go through the options creating a new set of options	for (var i=0; i<element.options.length; i++) {		var text = element.options[i].firstChild.nodeValue;		var matches = re.exec(text);				if (matches) {			if (! tempHash[matches[1]]) {				var optionline = document.createElement("option");								tempHash[matches[1]] = new Array();								optionline.value = matches[1];								var optiontext = document.createTextNode(matches[1]);				optionline.appendChild(optiontext);				selectFirst.appendChild(optionline);			}						if (element.options[i].selected) {				selectFirst.selectedIndex = selectFirst.length - 1;				oldSelectedValue = element.options[i].value;			}			tempHash[matches[1]][tempHash[matches[1]].length] = new Array(element.options[i].value, matches[2]);		}	}	selectFirst.setAttribute("onchange", "buildSecondaryList(this)");	element.parentNode.insertBefore(selectFirst, element);	timezone_arrays[element.name] = tempHash;		buildSecondaryList(selectFirst);}
meta: 7771	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7771/1251b9459dbbccdb2ad8e1be81f5b02814c61e4d/timezone.js/clean/trunk/qsf/javascript/timezone.js