rem: function ajax_select_widget_setup(widget_id, onchange, options) { 
add: function ajax_select_widget_setup(widget_id, onchange, options, currentapp) { current_app = currentapp; 
context: function ajax_select_widget_setup(widget_id, onchange, options) {	if(onchange) {		if(onchange == 1) {			onchange = function() {submitit(this.form, this.value);};		} else {			eval("onchange = function(e) { " + onchange + ";}");		}		var value = document.getElementById(widget_id + '[value]');		if(value) {			if(value.addEventListener) {				value.addEventListener('change', onchange, true);			} else {				var old = (value.onchange) ? value.onchange : function() {};				value.onchange = function() {					old();					onchange;				};			}		}	}	var widget = document.getElementById(widget_id + '[search]');	if(widget) {		widget.setAttribute('autocomplete', 'off');		if(widget.addEventListener) {			widget.addEventListener('keyup', change, true);			widget.addEventListener('blur', hideBox, false);		} else {			widget.onkeyup = change;			widget.onblur = hideBox;		}		// Set results		var results = document.createElement('div');		results.id = widget_id + '[results]';		results.className = 'resultBox';		results.style.position = 'absolute';		results.style.zIndex = 50;		results.options = options;		results.innerHTML = "";		widget.parentNode.appendChild(results);	}	var value = document.getElementById(widget_id + '[value]');	if(value) {		value.style.display = 'none';	}}
meta: 5631	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5631/df5f0cbdec34164587109bbe5b32ff0f46cbb112/ajax_select.js/clean/js/ajax_select.js