function domu(){
	window.location.replace("./uvodni-stranka.html");
	}
	function jdi(kam){
	window.location.replace("./"+ kam);
	}
	
	function otevriokno(produkt, typ, id_par, cenazbo){
	var obj=window.open('vyber_parametru.php?id='+produkt+'&typ='+typ+'&idpar='+id_par+'&cenazbo='+cenazbo,'',"scrollbars=yes,menubars=no,width=800,height=600");
	obj.focus();
	}
	
	function vyber_parametr(id_por,id_par,hodnota,priplatek,cena,idparametru){
	ph="par"+id_par;
	pid="parametr"+id_par;
	pripl="prip"+id_par;	 
	
	
	//soucet = window.opener.document.getElementById('priplzbodva').value;
	//soucetdva = window.opener.document.getElementById('celkzbodva').value;
	
 
	window.opener.document.getElementById(ph).innerHTML=hodnota;
	window.opener.document.getElementById(pripl).innerHTML=priplatek;
	
	//window.opener.document.getElementById('priplzbo').innerHTML=(soucet + cena);
	//window.opener.document.getElementById('celkzbo').innerHTML=(soucetdva + (soucet + cena));
	
	window.opener.document.getElementById(pid).value=idparametru;
	window.close();
	}
 
	
	function onmenu(id, href){
	document.getElementById(id).style.background='#DF4A4A';
	document.getElementById(id).style.cursor='pointer';
	document.getElementById(href).style.color='white';
	}
	function outmenu(id, href){
	document.getElementById(id).style.background='#EFEFEF';
	document.getElementById(id).style.cursor='pointer';
	document.getElementById(href).style.color='#444444';
	}
	
	function pointeron(co){
	document.getElementById(co).style.cursor='pointer';
	}
	function pointeroff(co){
	document.getElementById(co).style.cursor='none';
	}
	
	function zobraz(co){
	stav = document.getElementById(co).style.display;
	proved = document.getElementById(co).style.display = (stav=="none") ? "block" : "none";
	window.location.replace("./vyrobky.html");
	}
	
	function kontrola(){
	co = document.getElementById('pravforma');
	
	if(co.value=="1"){
	document.getElementById('fyzicka-osoba').style.display = "block";
	document.getElementById('pravnicka-osoba').style.display = "none";
	}else{
	document.getElementById('fyzicka-osoba').style.display = "none";
	document.getElementById('pravnicka-osoba').style.display = "block";
	}
	
	}
 	
 	function zmenbg(ceho){
	document.getElementById(ceho).style.background='#e8e8e8';
	}
	function vratbg(ceho, barva){
	document.getElementById(ceho).style.background=barva;
	}
	
	function skutecne(){
  	msg = "Vstupem do WEBSHOPU souhlasíte s Obchodními podmínkami, které jsou uvedeny výše. K objednání přes WEBSHOP není nutná registrace, stačí vyplnit osobní údaje a telefon při odesílání košíku. Pokračovat?";
    return confirm(msg);
	}
	 
