/*
See yak.php for information and license terms
*/

var className = ''

function toggleDisplay(cell) {
    row = cell.parentNode
    nextRow = row.parentNode.rows[row.rowIndex+1]
    nextRow.className = className
    if (className == '') {
        className = 'hidden'   
    }
    else {
        className = ''   
    }
}

function copyRow(tableName) {
	table = document.getElementById(tableName);
	cells = table.rows[table.rows.length-1].cells;
	var newrow = document.createElement('tr');
	for (var i = 0; i < cells.length; i++) {
		cell = document.createElement('td');
		cell.innerHTML = cells[i].innerHTML;
		newrow.appendChild(cell);
	}
	table.appendChild(newrow);
}
