function eXcell_edn(cell){
	if (cell){
		this.cell=cell;
		this.grid=this.cell.parentNode.grid;
	}
	this.getValue=function(){
		//this.grid.editStop();
		if ((this.cell.firstChild)&&(this.cell.firstChild.tagName == "TEXTAREA"))
			return this.cell.firstChild.value;

		if (this.cell._clearCell)
			return "";

		return this.cell._val;
	}


	this.detach=function(){
		var tv = this.obj.value;
		this.setValue(tv);
		return this.val != this.getValue();
	}
}
eXcell_edn.prototype=new eXcell_ed;
eXcell_edn.prototype.setValue=function(val){
	if (!val||val.toString()._dhx_trim() == ""){
		val="0"
		this.cell._clearCell=true;
	} else
		this.cell._clearCell=false;
		
    this.cell._val=val;
	this.setCValue(this.grid._aplNF(val, this.cell._cellIndex));
}