function eXcell_delRow(cell){
	try{
		this.cell = cell;
		this.grid = this.cell.parentNode.grid;
	}catch(er){}

	this.getValue = function()
	{
		return 'Click to delete row';
	}
}

eXcell_delRow.prototype = new eXcell;

// setValue is called as the grid is being loaded.  The loader MUST pass in the gridName and rowUID
// as a string delimited with the tilde ('~').  This dispatched to the global 'doDeleteRow()' function.
// !!! Try to tightly bind this function to the cell so the user doesn't need to know about the
// !!! grid name.

eXcell_delRow.prototype.setValue = function(val)
{
//alert(val);
	if (val.indexOf("~") != -1) // Ignore invalid load arguments.
	{
		var ar = val.split("~");
		var gridName = ar[0];
		var rowUID = ar[1];
		var HTMLtxt = "<img src='imgs/b_drop.png' onclick='doDeleteRow(\""+gridName+'", '+rowUID+")'>";
//alert(HTMLtxt);
		this.cell.innerHTML = HTMLtxt;
	}
}
