
function faq_send(lng)
{
	var blad = 0;
	var nazwa = '';
	var pole = '';

	if (lng == 'ger')
	{
		var txt_1 = 'Field ';
		var txt_2 = ' must be filled to submit the form.';

		var txt_py = 'Question';
	}
	else
	{
		var txt_1 = 'Pole ';
		var txt_2 = ' musi być wypełnione żeby przesłać formularz.';

		var txt_py = 'Pytanie';
	}

	if (!document.faqq_frm.elements["fqf[title]"].value) blad = 1;

	switch (blad)
	{
		case 1: nazwa = txt_py; pole = 'fqf[title]'; break;
	}

	if (blad > 0)
	{
		alert(txt_1 + nazwa + txt_2);
		document.faqq_frm.elements[pole].focus();
	}

	if (blad == 0) document.faqq_frm.submit();
}

