// JavaScript Document
/*var currentForm = document.getElementById('injector_table');
alert (currentForm);*/
function addRowToTable(tblId)
{
	var tblBody = document.getElementById(tblId).tBodies[0];
	var newNode = tblBody.rows[0].cloneNode(true);
	tblBody.appendChild(newNode);
}

function removeRowToTable(tblId)
{
	var tblBody = document.getElementById(tblId).tBodies[0];
	totalnumber = tblBody.rows.length;
	if (totalnumber > 1) {
		tblBody.deleteRow(totalnumber - 1);
	}
}


/*function addRemoveRowToTable(tblId,num)
{
var tblBody = document.getElementById(tblId).tBodies[0];
var counter;
counter = num.value;
totalnumber = tblBody.rows.length;
if (totalnumber < counter) {
for (counter=num.value; totalnumber<counter; totalnumber++) {

  var newNode = tblBody.rows[0].cloneNode(true);
  tblBody.appendChild(newNode);

}
}
else {

	for (counter=num.value; counter<totalnumber; totalnumber--) {

	  tblBody.deleteRow(totalnumber - 1);
	
	  if (totalnumber < 1) { return(null);}
	}
}
}*/