function resizeTable()
{
	var table = document.getElementById('table');
	var bottomrow = table.rows[table.rows.length - 1];
	var newheight = 330 - bottomrow.offsetTop;
	if(newheight < 0)
	{
	    newheight = 0;
	}
	bottomrow.style.height = newheight + 'px';
}
function hideShow(checkbox, tablerowid)
{
	var tablerow = document.getElementById(tablerowid);
	if(checkbox.checked)
	{
		tablerow.style.display = '';
	}
	else
	{
		tablerow.style.display = 'none';
	}
	resizeTable();
}
resizeTable();