 var curPop = null;
 function clearCurrent() {
 // Hide the pop-up menu that is currently displayed.
 if (null != curPop)
 curPop.style.display = "";
 curPop = null;
 }

function o(theURL,winName,features) {
  window.open(theURL,winName,features);
}
 
 function popup() {
  clearCurrent();	  
  var el = event.srcElement;
  // Display a new menu option.
  if (("P" == el.tagName) &&
      ("menu" == el.parentElement.parentElement.parentElement.parentElement.id)) {
       // Position and display the pop-up menu.
       var elpop = document.all[el.sourceIndex + 1];
       elpop.style.pixelLeft = el.parentElement.offsetLeft+200;
       elpop.style.pixelTop  = el.offsetTop +
         document.all.menu.offsetTop+110;
       elpop.style.display = "block";
       curPop = elpop;
      }
     event.cancelBubble = true;
    }

  function highlight() {
		
  // Highlight and popup  the menu options.
    if (null != event.fromElement)
      if ((event.fromElement.tagName == "P") &&
          (event.fromElement.parentElement.parentElement.parentElement.parentElement.id == "menu"))
		  {
           event.fromElement.className = "";
       	  }
           
    if (null != event.toElement)
       if ((event.toElement.tagName == "P") && (event.toElement.parentElement.parentElement.parentElement.parentElement.id == "menu"))
		{
		  popup();					
          event.toElement.className = "over";
		}
 }		
		
function kontrola(objedn) {

if (objedn.FIRMA.value == null || objedn.FIRMA.value == "") {
    alert ("Prosím, zadejte název firmy");
				objedn.FIRMA.focus();
    return false;
   }
if (objedn.OSOBA.value == null || objedn.OSOBA.value == "") {
    alert ("Prosím, zadejte své jméno");
				objedn.OSOBA.focus();
    return false;
   }

if (objedn.ULICE.value == null || objedn.ULICE.value == "") {
    alert ("Prosím, zadejte název ulice");
				objedn.ULICE.focus();
    return false;
   }

if (objedn.MESTO.value == null || objedn.MESTO.value == "") {
    alert ("Prosím, zadejte město");
				objedn.MESTO.focus();
    return false;
   }

if (objedn.PSC.value == null || objedn.PSC.value == "") {
    alert ("Prosím, zadejte PSC");
				objedn.PSC.focus();
    return false;
   }

 }

