function stepFirst() {
var whoKoldra = document.getElementsByName("whoKoldra");
var ischecked_method = false;
for (var i = 0; i < whoKoldra.length; i++) {
if (whoKoldra[i].checked) {
ischecked_method = true;
break;
}
}
if (!ischecked_method) { //Dla kogo musi byc wybrane
var element = document.getElementById("firtWarning");
element.classList.remove("hidden");
}
if (document.getElementById('forChild').checked) {
var element = document.getElementById("forChildren");
element.classList.remove("hidden");
var element = document.getElementById("forWho");
element.classList.add("hidden");
var element = document.getElementById("firstStep");
element.classList.add("hidden");
var element = document.getElementById("stepSecond");
element.classList.remove("hidden");
//Dla dziecka
} else if (document.getElementById('forAdult').checked) {
var element = document.getElementById("forAdults");
element.classList.remove("hidden");
var element = document.getElementById("forWho");
element.classList.add("hidden");
//Dla doroslych
var element = document.getElementById("firstStep");
element.classList.add("hidden");
var element = document.getElementById("stepSecond");
element.classList.remove("hidden");
}
}
function stepSecondBack() {
var element = document.getElementById("forWho");
element.classList.remove("hidden");
var element = document.getElementById("firstStep");
element.classList.remove("hidden");
var element = document.getElementById("forChildren");
element.classList.add("hidden");
var element = document.getElementById("stepSecond");
element.classList.add("hidden");
}