function checkForm()
{
	var good=true;
	var dobryEmail=/^[^@]+@([a-z0-9\-]+\.)+[a-z]{2,10}$/i;
	var dobryTelefon=/^([0-9\- ]+)$/i;
	if (!dobryEmail.test(document.getElementById('inputEmail').value))
	{
		good=false;
		document.getElementById('inputEmail').style.borderColor='red';
	}
	else
	{
		document.getElementById('inputEmail').style.borderColor='#d2d6d7';
	}
	if (document.getElementById('inputContent').value=='Napisz wiadomość'||document.getElementById('inputContent').value.length<1)
	{
		good=false;
		document.getElementById('inputContent').style.borderColor='red';
	}
	else
	{
		document.getElementById('inputContent').style.borderColor='#d2d6d7';
	}
	return good;
}
