Test
function create_row()
{
var newtr = document.createElement('tr');
var newtd = document.createElement('td');
var output = '';
newtd.innerHTML = output;
newtr.appendChild(newtd);
document.getElementById('tablebody').appendChild(newtr);
}
...