function tableTrColor(id,trida,box)
{
if(document.getElementById(id).className == "sudy")
{
document.getElementById(id).style.backgroundColor='#E4E4E4';
if(document.getElementById(box).checked==false)
{
document.getElementById(id).style.backgroundColor='#DFF2FF';
}
}
else
{
document.getElementById(id).style.backgroundColor='#E4E4E4';
if(document.getElementById(box).checked==false)
{
document.getElementById(id).style.backgroundColor='#FFFFFF';
}
}

}

function allowSubmit()
{
if(document.getElementById('odeslat').disabled==false)
{
document.getElementById('odeslat').disabled=true;
}
else
{
document.getElementById('odeslat').disabled=false;
}
}
function checkForm()
{
if(document.getElementById('url').value == '')
{
alert('Nezadali jste URL adresu katalogu. Jedná se o povinný údaj proto jej prosím vyplňte a odešlete znovu tento formulář');
return false;
}
else
{
document.formular.submit();
}
}
function checkNewsForm()
{
if(document.getElementById('email').value == '')
{
alert('Nezadali jste Vaši emailovou adresu. Jedná se o povinný údaj proto jej prosím vyplňte a odešlete znovu tento formulář');
return false;
}
else
{
document.formular.submit();
}
}
function checkShoutBox()
{
if(document.getElementById('jmeno').value == '')
  {
  alert('Nevyplnili jste své jméno. Bez vyplnění jména nelze tento formulář odeslat.');
  }
else
  {
   
   
    if(document.getElementById('vzkaz').value == "Váš vzkaz")
    {
    alert('Nevyplnili jste vzkaz pro administrátory. Bez vyplnění vzkazu nelze tento formulář odeslat.');
    }
    else
    {
    document.formular.submit();
    }
  }
}

