// JavaScript Document
var position;
position=4;
function novyokno( odkaz )
{
    try
	{
		var test;
		
		test = ! window.open( odkaz );
		return test;
	}
	
	catch (e)
	{
		alert( "Při otvírání nového okna došlo k vnitřní chybě JavaScriptu. Zkuste povolit otevírání nových oken nebo kontaktujte správce webu! Odkaz se otevře ve stávajícím okně" );
		return true;
	}
}

function setStyle(td, i)
{
  if(td.checked==true)
  {
    document.getElementById('kand'+i).style.textDecoration="none";
    deleteRow() 
  }
  else
  {
    document.getElementById('kand'+i).style.textDecoration="line-through";
    addRow()    
  }
}

function addRow()
{
  document.getElementById('row'+position).style.display='table-row'
  position++;
}


function deleteRow()
{
  document.getElementById('row'+(position-1)).style.display='none';
  position--;
}