
var timetype = 12;
function timing(){
   var t = new Date();
   var h = t.getHours();
   var m = t.getMinutes();
   var s = t.getSeconds();
   mstxt = ((m < 10) ? ":0" : ":") +
      m + ((s < 10) ? ":0" : ":") + s;
   document.timeform.time.value=
      (timetype==24)?(((h<10)?"0":"")+
      h+mstxt):(((h>12)?h-12:h)+mstxt+
      ((h>=12)?" PM":" AM"));
      clock = setTimeout("timing()",1000);
}

function start_timing(input_timetype)
{  timetype = input_timetype;
   timing();
}

function galerie(nazevobr) {
imgOn = ("/img-sablony/" + nazevobr);
document.hlavni.src = imgOn;
}

function ValidatorOR(theForm){ 
  if (theForm.name.value == "")
  { alert("Nevyplnili jste pole \"Název firmy\".");
    theForm.name.focus();
    return (false);
  }
  if (theForm.ico.value == "")
  { alert("Nevyplnili jste pole \"IČO (nebo rodné číslo)\".");
    theForm.ico.focus();
    return (false);
  }
  if (theForm.ulice.value == "")
  { alert("Nevyplnili jste pole \"Ulice\".");
    theForm.ulice.focus();
    return (false);
  }
  if (theForm.mesto.value == "")
  { alert("Nevyplnili jste pole \"Město\".");
    theForm.mesto.focus();
    return (false);
  }
  if (theForm.psc.value == "")
  { alert("Nevyplnili jste pole \"PSČ\".");
    theForm.psc.focus();
    return (false);
  }
  if (theForm.email.value != "")
  {
  txt=document.theForm.email.value;
  if (txt.indexOf("@")<1){
  alert("Emailova adresa neni zadana spravne. Zkontrolujte prosim '@' znak.");
  theForm.email.focus();
  return (false);
  }
  if (txt.indexOf(".")<1){
  alert("Emailova adresa neni zadana spravne. Zkontrolujte prosim narodni domenu (.cz, .sk, .com, .net, atd).");
  theForm.email.focus();
  return (false);
  }
  }
return (true);
}