function otevri(stranka) {
  if(stranka=="kontakt") {
    msg=window.open("kontakt.php","kontakt","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=420,height=490,top=0,left=0");
  }
  else {
    if(stranka=="podminky") {
      msg=window.open("obchod_podminky_gen.php#ochrana","podminky","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=598,height=460,top=0,left=0");
    }
    else {
      if(stranka=="podminky_gen") {
        msg=window.open("obchod_podminky_gen.php","podminky","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=598,height=460,top=0,left=0");
      }
      else {
        if(stranka=="bodiky") {
          msg=window.open("info_body.php","bodiky","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=460,height=460,top=0,left=0");
        }
        else {
          msg=window.open(stranka,"detail","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=510,height=410,top=0,left=0");
        }
      }
    }
  }
		msg.focus();
}
function otevri_obalka(x,y,z) {
    var y_new;
				//rozsiruji okno kvuli scrollerum, pro FF dam sirku PC obrazovky
				y_new=y+40;
				if(document.getElementById && !document.all) y_new=screen.width;
    msg=window.open(x, 'obalka', 'toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,resizable=yes,status=no,width='+y+',height='+z+',top=0,left=0')
    msg.focus();
}
function otevri_help(stranka) {
  msg=window.open(stranka, "help", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=598,height=460,top=0,left=0");
  msg.focus();
}
function otevri_send_psw(stranka) {
  msg=window.open(stranka,"send_psw","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=450,height=330,top=0,left=0");
  msg.focus();
}
function bezuvozovek() {
  with (event)
   if(keyCode==34 || keyCode==39){
   alert ("No quotes please!");
   returnValue=false;
   }
}
function jencisla() {
  with (event)
   if(keyCode<48 || keyCode>57){
   alert ("Please, select numbers only!");
   returnValue=false;
   }
   }
function potvrd()
{        if (confirm("Do you really want to remove the item from the shopping cart?")==false) {
return false;
}
}
function potvrd_sprava()
{        if (confirm("Opravdu chcete položky v této objednávce nahradit položkami z Vašeho košíku?\nKliknutím na tlačítko \"OK\" nahrazení potvrdíte.")==false) {
return false;
}
}
function potvrd_unlog() {        
  if (confirm("Do you really want to logoff?\nBy logging off, your shopping cart will be emptied.\n\By clicking on \"OK\", your log off is confirmed")==false) {
  return false;
  }
}
function ukaz_detail(x,y) {
  if(!document.getElementById && document.all) document.getElementById = document.all;
  document.getElementById(x).style.display="block";
  document.getElementById(y).style.display="none";
}
function skryj(x,y) {
  if(!document.getElementById && document.all) document.getElementById = document.all;
    document.getElementById(x).style.display="none";
}
function skryj2(x,y) {
  if(!document.getElementById && document.all) document.getElementById = document.all;
    document.getElementById(x).style.display="none";
		document.contactform.from.focus();
}
function potvrd_objednavka() {
  if (confirm("Do you really want to submit your order?")==false) {
   return false;
  }
}
function clearMail_web() {
 if (document.mailreg_main.email.value=="your@e-mail") { document.mailreg_main.email.value="";}
}
function check_main() {
		var cform=document.forms.mailreg_main;
		if ((cform.email.value=="@") || (cform.email.value=="")) {
    alert("You have forgotten to fill in your e-mail");
    cform.email.focus();
    return false;
	 }
		else if (window.RegExp) {
		  re = new RegExp("^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,3}$", "i");
		  if (!re.test(cform.email.value)) {
					 alert("There is probably a syntax error in your e-mail");
				  cform.email.focus();
				  return false;
		  }
		}
		else return true;
}	
function checkFrmAnketa() {
		var cform=document.forms.frmAnketa;
		var i = 0;
		var isChecked = false;

		while (i < cform.cid.length) {
			if (cform.cid[i].checked) isChecked = true;
			i++;
		}
			if (isChecked==false) {
				alert("Check one answer before your voting please.");
				return false;
			}
			else 
				return true;
}	
function hledatTop() {
  var odeslat = true;
  if(document.hledat_top.vyraz.value=="") {
    alert ("Please fill in the term you are searching for.");
    odeslat=false;
    document.hledat_top.vyraz.focus();
  }
		if(odeslat == true) {
    return true;
  }
  else {
    return false;
  }
}
var i=Math.round(Math.random()*8);
	if (i==0) vloz='<img src="../img/left/ilu01.jpg" width="170" height="236" alt="KREIBICH fur&amp;gloves" />';
	if (i==1) vloz='<img src="../img/left/ilu02.jpg" width="170" height="236" alt="KREIBICH fur&amp;gloves" />';
	if (i==2) vloz='<img src="../img/left/ilu03.jpg" width="170" height="236" alt="KREIBICH fur&amp;gloves" />';
	if (i==3) vloz='<img src="../img/left/ilu04.jpg" width="170" height="236" alt="KREIBICH fur&amp;gloves" />';	
	if (i==4) vloz='<img src="../img/left/ilu05.jpg" width="170" height="236" alt="KREIBICH fur&amp;gloves" />';
	if (i==5) vloz='<img src="../img/left/ilu06.jpg" width="170" height="236" alt="KREIBICH fur&amp;gloves" />';
	if (i==6) vloz='<img src="../img/left/ilu07.jpg" width="170" height="236" alt="KREIBICH fur&amp;gloves" />';
	if (i==7) vloz='<img src="../img/left/ilu08.jpg" width="170" height="236" alt="KREIBICH fur&amp;gloves" />';	
	if (i==8) vloz='<img src="../img/left/ilu09.jpg" width="170" height="236" alt="KREIBICH fur&amp;gloves" />';		

