function menuOver(menuCount)
  {
  /*this.style = document.getElementById(menStyle).style;*/
  menuName = 'menu' + menuCount;
  document.getElementById(menuName).style.background='white';
  }
  
function menuOut(menuCount)
  {

  menuName = 'menu' + menuCount;
  document.getElementById(menuName).style.background='';
  }  
  
  
function menuOverF(menuCount)
  {
  menuName = 'menuf' + menuCount;
  document.getElementById(menuName).style.background='white';
  }
  
function menuOutF(menuCount)
  {

  menuName = 'menuf' + menuCount;
  document.getElementById(menuName).style.background='';
  }    
  

function mouseOver(num)
{
loadImage = "m" + num;
document.images[loadImage].src ="/images/men"+num+"_2.gif"
}
function mouseOut(num)
{
loadImage = "m" + num;
document.images[loadImage].src ="/images/men"+num+"_1.gif"
}

function mouseOver2(num)
{
loadImage = "n" + num;
document.images[loadImage].src ="/images/in"+num+"_2.gif"
}
function mouseOut2(num)
{
loadImage = "n" + num;
document.images[loadImage].src ="/images/in"+num+"_1.gif"
}

function mouseOver3(num)
{
loadImage = "b" + num;
document.images[loadImage].src ="/images/bubl"+num+"_2.gif"
}
function mouseOut3(num)
{
loadImage = "b" + num;
document.images[loadImage].src ="/images/bubl"+num+"_1.gif"
}


var DHTML = (document.getElementById || document.all || document.layers);

function invi(flag,promena)
{
	if (!DHTML) return;
	prom = promena;
  var x = new getObj(promena);
	x.style.visibility = (flag) ? 'hidden' : 'visible'
}

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function load() {
var load = window.open('/info.html','','scrollbars=no,menubar=no,height=160,width=300,resizable=no,toolbar=no,location=no,status=no');
}
function loadPodminky() {
var load = window.open('/podminky1.html','','scrollbars=yes,menubar=no,height=600,width=700,resizable=no,toolbar=no,location=no,status=no');
}
function loadPlatbaPrevod() {
var load = window.open('/platba-prevodem.html','','scrollbars=no,menubar=no,height=450,width=620,resizable=no,toolbar=no,location=no,status=no');
}
function loadImage(par) {
var load = window.open(par,'','scrollbars=yes,menubar=no,height=515,width=745,resizable=no,toolbar=no,location=no,status=no');
}

function redirect(s) {
var t=s.options[s.selectedIndex].value;
var intLen;
var strID;
var strLength;
strID = window.document.location.toString();
intLen = strID.indexOf('_');

if (intLen < 1) {
strLength = strID.length;
strID = strID.substring(0, strLength-1);
}else {
strID = strID.substring(0, intLen);
}
//if (t!="") window.location.href=strID+'&peId='+t;
if (t!="") window.location.href=strID+'_'+t;
}

function changeShipping(priceShip, subTotal) {
  document.getElementById("shippCost").innerHTML = priceShip+',00 Kč';
  document.getElementById("finTotal").innerHTML = parseFloat(subTotal)+parseFloat(priceShip)+',00 Kč';
}

function checkLogin() {
    if(document.getElementById("loginName").value == "")
    {
      document.getElementById("loginName").focus();
      alert("Zadejte prosím přihlašovací jméno.");
      return false;
    }
    if(document.getElementById("loginPasswd").value == "")
    {
      document.getElementById("loginPasswd").focus();
      alert("Zadejte prosím heslo.");
      return false;
    }
    if(document.getElementById("loginMail").value == "")
    {
      document.getElementById("loginMail").focus();
      alert("Zadejte prosím Váš e-mail.");
      return false;
    }
  return result;
}

