rem: e.backgroundColor = 'menu'; 
add: e.style.backgroundColor = 'menu'; 
context: function Field(params) {	params = params || {};	this.base = Widget;	params.border = params.border || 1;	params.overflow = 'hidden';	this.type = params.type || 'text';	if (this.type == 'radio') {		this._value = params.value || '';		params.onclick = QuiX.getEventWrapper(Radio__click, params.onclick);		params.overflow = '';	}	params.height = params.height || 22;	params.padding = '0,0,0,0';	this.base(params);	this.name = params.name;	this.readonly = (params.readonly=='true' || params.readonly==true)?true:false;	this.onchange = params.onchange;	var e;	switch (this.type) {		case 'checkbox':		case 'radio':			var sChecked;			if (this.type=='checkbox')				sChecked = (params.value==true || params.value == 'true')?'checked':'';			else				sChecked = (params.checked==true || params.checked == 'true')?'checked':'';			this.div.innerHTML = '<input type=' + this.type + ' ' + sChecked +				' style="vertical-align:middle">';			e = this.div.firstChild;			if (this.readonly) e.disabled = true;			if (params.caption) this.setCaption(params.caption);			break;		case 'file':			throw new QuiX.Exception("Invalid field type.\nUse the file control instead.")			break;		default:			this.div.className = 'field';			e = (this.type=='textarea')?ce('TEXTAREA'):ce('INPUT');			e.style.borderWidth = '1px';			e.style.position='absolute';			if (this.readonly) e.readOnly = true;			//fixme: wait for MS to fix it			//e.style.width = '100%';			//e.style.height = '100%';			if (this.type!='textarea') e.type = this.type;			e.value = (params.value)?params.value:'';			this.textPadding = params.textPadding || 0;			if (this.type=='hidden') this.hide();			this.div.appendChild(e);			//this.setPadding( params.padding.split(',') );	}	e.onmousedown = QuiX.stopPropag;	e.onselectstart = QuiX.stopPropag;		var oField = this;	e.onchange = function() {		if (oField.onchange) getEventListener(oField.onchange)(oField);	}	this._adjustFieldSize();	if (this._isDisabled) {		e.disabled = true;		e.backgroundColor = 'menu';	}}
meta: 10647	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10647/69ff8a41219be608d68a03f11610ee4350749970/formfields.js/clean/porcupine/trunk/quix/formfields.js