var sprawdzT=new RegExp("#t[0-9]+");
if (sprawdzT.test(window.location.hash)) {
	GetVars=window.location.hash.split("t");
	if(Number(GetVars[1])) {
		t=GetVars[1];
	}
} else {
	GetVars=window.location.search.split("?");
	GetVar=GetVars[1].split("&");
	count=GetVar.length;
	for (i=0;i<count;i++) {
		param=GetVar[i].split("=");
		if (param[0]=='t' && Number(param[1])) {
			t=param[1];
		}
	}
}

if (window.location.hash != '#csaved') {

	var returnurl = escape(window.location.protocol+'//'+window.location.hostname+window.location.pathname+window.location.search);

	var goto = 'http://www.cneb.pl/points/savecookie.php?t='+t+'&returnurl='+returnurl;

	location = goto;

}
