// JavaScript Document
function addtext(what){
var element = document.getElementById("zmencenu");
while (element.firstChild) {
  element.removeChild(element.firstChild);
}
if (what == '') {
if (document.createTextNode){
var mytext=document.createTextNode('Bez prepočtu')
document.getElementById("zmencenu").appendChild(mytext)
}		
} else {
if (document.createTextNode){
var mytext=document.createTextNode(what)
document.getElementById("zmencenu").appendChild(mytext)
}
}

}



function zobraz(obj) { 
 if (!document.layers) 
 {   
  var txt = document.getElementById(obj); 
	 if (txt.style.display == "none") { txt.style.display = "inline"; } else {txt.style.display = "none";}	
 } 
} 

function zobrazX(obj,obj2) { 
 if (!document.layers) 
 {   
  var txt = document.getElementById(obj); 
  var txt2 = document.getElementById(obj2); 
	 if (txt.style.display == "none") { txt.style.display = "inline"; txt2.style.display = "none";}	
 } 
} 

function checkForOther0(obj) { 
 if (!document.layers) 
 { 
 	
	 var txt = document.getElementById("invis"); 
	 if (obj.value == "ina") { txt.style.display = "inline"; } else { txt.style.display = "none"; } 
	
 } 
} 

function checkForThis4(obj)
{
if (!document.layers) 
 { 
 	 var txt = document.getElementById("visible");  
	 var txt1 = document.getElementById("karta"); 
 	 var txt2 = document.getElementById("paypay"); 
	 var txt3 = document.getElementById("paypal"); 
	 var txt4 = document.getElementById("dexia"); 
	 var txt5 = document.getElementById("vub"); 
	 var txt6 = document.getElementById("uni"); 
	 var txt7 = document.getElementById("tatrapay"); 
	 var txt8 = document.getElementById("moneybookers"); 
	 var txt9 = document.getElementById("paysafe"); 
	 var txt10 = document.getElementById("dobierka"); 
	 var txt11 = document.getElementById("osobny"); 

		if (obj.value == "Platba kreditnou kartou")			{ txt1.style.display = "inline";  txt.style.display = "inline"; } else { txt1.style.display = "none"; } 
		if (obj.value == "Platba pomocou PAY PAY")			{ txt2.style.display = "inline";  txt.style.display = "inline";} else { txt2.style.display = "none";} 
		if (obj.value == "Platba pomocou PAY PAL") 			{ txt3.style.display = "inline";  txt.style.display = "inline";} else { txt3.style.display = "none";} 
		if (obj.value == "Platba cez Dexia Pay") 			{ txt4.style.display = "inline";  txt.style.display = "inline";} else { txt4.style.display = "none"; } 
		if (obj.value == "Platba cez VUB Platby") 			{ txt5.style.display = "inline";  txt.style.display = "inline";} else { txt5.style.display = "none";} 
		if (obj.value == "Platba pomocou UNIkredit Bank") 	{ txt6.style.display = "inline";  txt.style.display = "inline"; } else { txt6.style.display = "none";} 
		if (obj.value == "Platba pomocou TatraPay") 		{ txt7.style.display = "inline";  txt.style.display = "inline"; } else { txt7.style.display = "none";} 
		if (obj.value == "Platba pomocou Moneybookers") 	{ txt8.style.display = "inline";  txt.style.display = "inline";} else { txt8.style.display = "none";} 
		if (obj.value == "Platba pomocou paysafecard") 	    { txt9.style.display = "inline";  txt.style.display = "inline"; } else { txt9.style.display = "none";} 
		if (obj.value == "Platba na dobierku")		        { txt10.style.display = "inline";  txt.style.display = "inline"; } else { txt10.style.display = "none";} 
		if (obj.value == "Osobný odber")		   	        { txt11.style.display = "inline";  txt.style.display = "inline"; } else { txt11.style.display = "none";} 
 } 
}

function checkForOther(obj) { 
 if (!document.layers) 
 { 
 	var text = "Zvolili ste si firemnú organizáciu\nProsím vyplnte všetky položky označené hviezdičkou.";
	 var txt = document.getElementById("invis"); 
	 if (obj.value == "ina") { txt.style.display = "inline"; } else { txt.style.display = "none"; } 
	 if (obj.value == "firma_none") { txt.style.display = "inline"; obj.value="firma_yes"; confirm(text);} else { txt.style.display = "none"; obj.value = "firma_none"} 
 } 
} 

function checkForOther2(obj) { 
 if (!document.layers) 
 { 
 var text = "Zvolili ste si inú prevádzkovú adresu.\nPri objednávkach budete mat na výber zo všetkých adries, ktoré pri registrácií vyplníte.";
	 var txt = document.getElementById("invis2"); 
	 if (obj.value == "prevadzkova_none") { txt.style.display = "inline"; obj.value="prevadzkova_yes"; confirm(text);} else { txt.style.display = "none"; obj.value = "prevadzkova_none"} 
 } 
}  
 function checkForOther3(obj) { 
 if (!document.layers) 
 { 
  var text = "Zvolili ste si inú adresu dodania.";
	 var txt = document.getElementById("invis3"); 
	 if (obj.value == "fakturacna_none") { txt.style.display = "inline"; obj.value="fakturacna_yes"; confirm(text); } else { txt.style.display = "none"; obj.value = "fakturacna_none"} 
 } 
} 
