function checkMail(pole)
{
	var dobryEmail = new RegExp("^[^@]+@([a-z0-9\-]+\.)+[a-z]{2,4}$", "i");
	if(dobryEmail.test(document.getElementById(pole).value))
	{
		return true;
	}
	else
	{
		alert('"' + document.getElementById(pole).value +'" to nie jest poprawny adres e-mail!');
		document.getElementById(pole).focus();
		return false;
	}
	return true;
}

function submitform(frm)
{
	document.getElementById(frm).submit();
}

function CheckFrm()
{
	var dobryTxt = new RegExp("([^<])","i");
	if(dobryTxt.test(document.komentarz.opinia.value))
	{
		return true;
	}
	else
	{
		alert('Wprowadzony tekst zawiera niedozwolone znaki');
		document.getElementById(pole).focus();
		return false;
	}
	return true;
}

function WarrningFrm()
{
	alert('Tekst: Musisz być zalogawany, żeby wysyłać komentarze');
	return false;
}