
function showRightMenu(id)
{
    if(document.getElementById('bluish')) document.getElementById('bluish').style.display='none';
    if(document.getElementById('reddish')) document.getElementById('reddish').style.display='none';
    if(document.getElementById('greenish')) document.getElementById('greenish').style.display='none';
    if(document.getElementById('goldish')) document.getElementById('goldish').style.display='none';
    document.getElementById(id).style.display='block';
}

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("mainmenu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" hover";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" hover", "");
   }
   }
  }
 }
}
window.onload=startList();

function checkForBlur(f, puvodni){
  if (f.value.replace(/^\s+|\s+$/, '') == ''){
    f.value = puvodni
  }
}

function test()
{
  document.getElementById('boxF').className="active";
}

function sA(element)
{
document.getElementById('ods').className='';
document.getElementById('odspce').className='';
document.getElementById(element).className='active';
}

function zkontrolujEmail(f){
	if (window.RegExp) { 
		re = new RegExp("^[_a-zA-Z0-9\.\-]+@[_a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,4}$"); 
		if (!re.test(f.email.value)) {
			window.alert("E-mailová adresa nemá správný formát."); 
			return false; 
		} 
	}
}

function validateEmail(elementValue){ 
var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; return emailPattern.test(elementValue); 
}


startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("mainmenu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" hover";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" hover", "");
   }
   }
  }
 }
}
window.onload=startList;



