// mredkj.com
// 2006-05-13 - Created
function addRowInnerHTML(tblId)
{
	var tblBody = document.getElementById(tblId).tBodies[0];
	var newRow = tblBody.insertRow(-1);
	var newCell0 = newRow.insertCell(0);
	newCell0.innerHTML = '<input type="input" value="cell 0 - text box" style="color: blue;" />';
	var newCell1 = newRow.insertCell(1);
	newCell1.innerHTML = 'cell 1 - just plain text';
}
function addRowDOM(tblId)
{
	var tblBody = document.getElementById(tblId).tBodies[0];
	var newRow = tblBody.insertRow(-1);
	var newCell0 = newRow.insertCell(0);
	var newInput = document.createElement('input');
	newInput.type = 'text';
	newInput.value = 'cell 0 - text box';
	newInput.style.color = 'blue';
	newCell0.appendChild(newInput);
	var newCell1 = newRow.insertCell(1);
	newCell1.appendChild(document.createTextNode('cell 1 - just plain text'));
}
function addRowClone(tblId)
{
	var tblBody = document.getElementById(tblId).tBodies[0];
	var newNode = tblBody.rows[0].cloneNode(true);
	tblBody.appendChild(newNode);
}
function deleteAllRows(tblId)
{
	var tblBody = document.getElementById(tblId).tBodies[0];
	for (var i=tblBody.rows.length-1; i>0; i--) {
		tblBody.deleteRow(i);
	}
}

