﻿function menu() {
if (document.getElementsByTagName) {var allCells = document.getElementsByTagName('td');
for (var i = 0; i < allCells.length; i++) {
if (allCells.item(i).className == 'menu') {var currClass = allCells.item(i).className; eval('allCells.item(i).onmouseover = function() {this.className = \'' + currClass + '-over\' }'); eval('allCells.item(i).onmouseout = function() {this.className = \'' + currClass + '\'}');}}}}//-->

// Проверка введенного номера и "включение" кнопки submit вдруг понадобится
function checkreq() {
path = document.frmSample;
tmp = (path.txtPhone0.value == "")
if (!tmp && ((path.txtPhone0.value.length < 3) || (path.txtPhone0.value.length > 3)) ) tmp = true;
path.Submit.disabled = tmp;
if (tmp) return; //ну и выходим уже ведь недоступна

tmp = (path.txtPhone1.value == "")
if (!tmp && ((path.txtPhone1.value.length < 3) || (path.txtPhone1.value.length > 3)) ) tmp = true;
path.Submit.disabled = tmp;
}

function gotourl(x1,x2,x3) {
if ((x1 == '') || (x2 == '') ||(x1.length != 3) ||(x2.length != 3))
{
alert("Zkontrolujte prosíme, zda jste správně vyplnili jednací číslo. V prvním okně vyplňte první tři cifry, ve druhém další tři, poté vyberte rok zahájení řízení.");
}
else
{
document.location="?mod="+x1+"srkcr-"+x2+"-"+x3;
}
}
