function validate(formObject)
{
	if (formObject.nick.value.length == 0 || formObject.nick.value == 'Imię/Nick')
	{
		alert('Wpisz poprawne imię lub pseudonim i spróbuj ponownie!');
		return false;
	}
	
	return true;
}

function shareFacebook(stringHost, stringAccountId, stringUrl, stringTitle)
{
	var mixedStatistics = new Image(1, 1);
	var stringStatistics = new String(stringHost + '/Statistics/' + String(stringAccountId));
	mixedStatistics.src = stringStatistics;
	
	var stringUrl = encodeURIComponent(stringUrl);
	var stringTitle = encodeURIComponent(stringTitle);
	window.open('http://www.facebook.com/sharer.php?u=' + stringUrl + '&t=' + stringTitle,'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}