function checkForm_pl(f)
{
	if(f.c_pyt1_1.checked == false && f.c_pyt1_2.checked == false && f.c_pyt1_3.checked == false && f.c_pyt1_4.checked == false && f.c_pyt1_5.checked == false && f.c_pyt1_6.checked == false && f.c_pyt1_7.checked == false && f.c_pyt1_8.checked == false)
	{
		alert("Wypełnij odpowiedź na pytanie 1");
		return false;
	}
	if(f.c_pyt1_8.checked == true)
	{
		if(f.pytanie1.value.length == 0)
		{
			alert("Wypełnij odpowiedź na pytanie 1");
			f.pytanie1.focus();
			return false;
		}
	}
	var radio_choice = false;
	for (counter = 0; counter < f.r_pyt2.length; counter++)
	{
	if (f.r_pyt2[counter].checked) radio_choice = true; 
	}
	
	if(radio_choice == false)
	{
			alert("Odpowiedz na pytanie 2");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt3.length; counter++)
	{
	if (f.r_pyt3[counter].checked) radio_choice = true; 
	}
	
	if(radio_choice == false)
	{
			alert("Odpowiedz na pytanie 3");
			return false;
	}
	if(f.pytanie4.value.length == 0)
	{
		alert("Wypełnij odpowiedź na pytanie 4");
		f.pytanie4.focus();
		return false;
	}
	if(f.pytanie5.value.length == 0)
	{
		alert("Wypełnij odpowiedź na pytanie 5");
		f.pytanie5.focus();
		return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt6.length; counter++)
	{
	if (f.r_pyt6[counter].checked) radio_choice = true; 
	}
	if(radio_choice == false)
	{
			alert("Odpowiedz na pytanie 6");
			return false;
	}
	if (f.r_pyt6[1].checked == true || f.r_pyt6[2].checked == true)
	{
		if(f.pytanie6.value.length == 0)
		{
			alert("Wypełnij odpowiedź na pytanie 6");
			f.pytanie6.focus();
			return false;
		}
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_1.length; counter++)
	{
	if (f.r_pyt7_1[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Odpowiedz na pytanie 7");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_2.length; counter++)
	{
	if (f.r_pyt7_2[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Odpowiedz na pytanie 7");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_3.length; counter++)
	{
	if (f.r_pyt7_3[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Odpowiedz na pytanie 7");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_4.length; counter++)
	{
	if (f.r_pyt7_4[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Odpowiedz na pytanie 7");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_5.length; counter++)
	{
	if (f.r_pyt7_5[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Odpowiedz na pytanie 7");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_6.length; counter++)
	{
	if (f.r_pyt7_6[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Odpowiedz na pytanie 7");
			return false;
	}
	if(f.pytanie8.value.length == 0)
	{
		alert("Wypełnij odpowiedź na pytanie 8");
		f.pytanie8.focus();
		return false;
	}
	if(f.pytanie9.value.length == 0)
	{
		alert("Wypełnij odpowiedź na pytanie 9");
		f.pytanie9.focus();
		return false;
	}
	if(f.pytanie10.value.length == 0)
	{
		alert("Wypełnij odpowiedź na pytanie 10");
		f.pytanie10.focus();
		return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt11.length; counter++)
	{
	if (f.r_pyt11[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Odpowiedz na pytanie 11");
			return false;
	}
	return true;
}

function checkForm_en(f)
{
	if(f.c_pyt1_1.checked == false && f.c_pyt1_2.checked == false && f.c_pyt1_3.checked == false && f.c_pyt1_4.checked == false && f.c_pyt1_5.checked == false && f.c_pyt1_6.checked == false && f.c_pyt1_7.checked == false && f.c_pyt1_8.checked == false)
	{
		alert("Please answer question 1");
		return false;
	}
	if(f.c_pyt1_8.checked == true)
	{
		if(f.pytanie1.value.length == 0)
		{
			alert("Please answer question 1");
			f.pytanie1.focus();
			return false;
		}
	}
	var radio_choice = false;
	for (counter = 0; counter < f.r_pyt2.length; counter++)
	{
	if (f.r_pyt2[counter].checked) radio_choice = true; 
	}
	
	if(radio_choice == false)
	{
			alert("Please answer question 2");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt3.length; counter++)
	{
	if (f.r_pyt3[counter].checked) radio_choice = true; 
	}
	
	if(radio_choice == false)
	{
			alert("Please answer question 3");
			return false;
	}
	if(f.pytanie4.value.length == 0)
	{
		alert("Please answer question 4");
		f.pytanie4.focus();
		return false;
	}
	if(f.pytanie5.value.length == 0)
	{
		alert("Please answer question 5");
		f.pytanie5.focus();
		return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt6.length; counter++)
	{
	if (f.r_pyt6[counter].checked) radio_choice = true; 
	}
	if(radio_choice == false)
	{
			alert("Please answer question 6");
			return false;
	}
	if (f.r_pyt6[1].checked == true || f.r_pyt6[2].checked == true)
	{
		if(f.pytanie6.value.length == 0)
		{
			alert("Please answer question 6");
			f.pytanie6.focus();
			return false;
		}
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_1.length; counter++)
	{
	if (f.r_pyt7_1[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Please answer question 7");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_2.length; counter++)
	{
	if (f.r_pyt7_2[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Please answer question 7");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_3.length; counter++)
	{
	if (f.r_pyt7_3[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Please answer question 7");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_4.length; counter++)
	{
	if (f.r_pyt7_4[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Please answer question 7");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_5.length; counter++)
	{
	if (f.r_pyt7_5[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Please answer question 7");
			return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt7_6.length; counter++)
	{
	if (f.r_pyt7_6[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Please answer question 7");
			return false;
	}
	if(f.pytanie8.value.length == 0)
	{
		alert("Please answer question 8");
		f.pytanie8.focus();
		return false;
	}
	if(f.pytanie9.value.length == 0)
	{
		alert("Please answer question 9");
		f.pytanie9.focus();
		return false;
	}
	if(f.pytanie10.value.length == 0)
	{
		alert("Please answer question 10");
		f.pytanie10.focus();
		return false;
	}
	radio_choice = false;
	for (counter = 0; counter < f.r_pyt11.length; counter++)
	{
	if (f.r_pyt11[counter].checked) radio_choice = true;
	}
	if(radio_choice == false)
	{
			alert("Please answer question 11");
			return false;
	}
	return true;
}
