	
	// --- ic_select_watch_class ---
	
	function ic_select_watch(base) {
	
		this.inheritFrom = shadow_block_class;
		this.inheritFrom();
	
		this.reg_ident = null;
		this.base = base;
		this.change_event = null;
		
		this.construct();
	}
	
	ic_select_watch.prototype.construct = function() {
		var self = this;
		this.reg_ident = context.ic_collector.register(this);
		
		this.base.onchange = function() { self.evt_change(this); }
	}
	
	ic_select_watch.prototype.get_value = function() {
		if (this.base.selectedIndex == null) return "";
		else return this.base.options[this.base.selectedIndex].value;
	}
	
	ic_select_watch.prototype.evt_change = function(ref) {
		if (this.change_event != null)
			this.change_event(this, ref);
	}
	
