
function rac_navBar( tableCellRef, hoverFlag, navStyle ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = hoverFlag;
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = hoverFlag;
				}
		}
}

function rac_navBarClick( tableCellRef, navStyle, url,hoverFlag ) {
	rac_navBar( tableCellRef, hoverFlag, navStyle );
	rac_goTo( url );
}
function rac_goTo( url ) {
	window.location.href = url;
}

function save() {
	if(document.rej.e1.value != document.rej.e2.value || document.rej.e1.value == '') {
		alert('Prosze wpisać 2 razy taki sam adres e-mail');
		return false;
	}
    
	return true;

}

function save2() {
	if(document.rej.e1.value != document.rej.e2.value && document.rej.e1.value != '') {
		alert('Jeżeli zmieniasz hasło to wpisz 2 razy takie samo');
		return false;
	}
    
	return true;

}
function after() {
	alert('Rejestracja dobiegła końca.\nZe względów bezpieczeństwa proponujemy zastąpić hasło rozruchowe własnym.\nMożna to zrobić w \'Ustawieniach konta\' w menu po prawej stronie.');	
}

function popimg( x, y, img) {
	window.open('popimg.php?p=z/'+img,'enlarge','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width='+x+',height='+y);
}




