<!--

var tabs = 1;

function show(item, parent) {
    if (document.getElementById(item).style.display == "block") {
      document.getElementById(item).style.display = "none";
      parent.className = "";
    } else {
      document.getElementById(item).style.display = "block"; 
      parent.className = "minus";
    }
}

function highlight(chkBox, item) {
    if (document.getElementById(chkBox).checked == true) {
      document.getElementById(item).className = "infoItemSelected";
    } else {
      document.getElementById(item).className = "infoItem"; 
  }
}


function bookmarkSite(url, title){
	if (document.all)
	window.external.AddFavorite(url, title);
	else if (window.sidebar)
	window.sidebar.addPanel(title, url, "")
}

var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height) {
  if(popUpWin) {
    if(!popUpWin.closed) 
	  popUpWin.close();
  }
  popUpWin = open(URLStr,'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function ValidatorInfo(theForm)
{
  if (theForm.jmeno.value == "")
  {
    alert("Prosíme zadejte Vaše jméno a příjmení.");
    theForm.jmeno.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Prosíme zadejte Vaši emailovou adresu.");
    theForm.email.focus();
    return (false);
  }

  return (true);
}

function ValidatorServis(theForm)
{
  if (theForm.jmeno.value == "")
  {
    alert("Prosíme zadejte Vaše jméno a příjmení.");
    theForm.jmeno.focus();
    return (false);
  }
  if (theForm.instituce.value == "")
  {
    alert("Prosíme zadejte název instituce.");
    theForm.instituce.focus();
    return (false);
  }
  if (theForm.mesto.value == "")
  {
    alert("Prosíme zadejte název města.");
    theForm.mesto.focus();
    return (false);
  }
  if (theForm.telefon.value == "")
  {
    alert("Prosíme zadejte Vaše telefonní číslo.");
    theForm.telefon.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Prosíme zadejte Vaši emailovou adresu.");
    theForm.email.focus();
    return (false);
  }

  return (true);
}


function ValidatorKatalog(theForm)
{
  if (theForm.jmeno.value == "")
  {
    alert("Prosíme zadejte Vaše jméno a příjmení.");
    theForm.jmeno.focus();
    return (false);
  }
  if (theForm.instituce.value == "")
  {
    alert("Prosíme zadejte název instituce.");
    theForm.instituce.focus();
    return (false);
  }
  if (theForm.ulice.value == "")
  {
    alert("Prosíme zadejte název Vaší ulice a číslo domu.");
    theForm.ulice.focus();
    return (false);
  }
  if (theForm.mesto.value == "")
  {
    alert("Prosíme zadejte název města.");
    theForm.mesto.focus();
    return (false);
  }
  if (theForm.psc.value == "")
  {
    alert("Prosíme zadejte PSČ.");
    theForm.psc.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Prosíme zadejte Vaši emailovou adresu.");
    theForm.email.focus();
    return (false);
  }

  return (true);
}
// -->

