function ConfirmDelete(id){
	if ( confirm('Czy usun±ć?') )
	{
		document.location.href='?act=Delete&id='+id;
	}
}

function ShowPhoto(file){ 
	preview = window.open('','','scrollbars=1,width=200,height=200,left=300,top=100');
	preview.document.open();   
	preview.document.write('<html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-2">'+
	'</head><script language="javascript">function ResizeWindow(I){resizeTo(I.width+50,I.height+80);}<\/script>'+
	'<body><img src="'+file+'" onload="ResizeWindow(this)" /></body></html>');
	preview.document.close();
}

function CheckPassword(form){
	if ( form.password.value == '' ){
		alert('Niepoprawne hasło, lub błędne powtórzenie.');
		return false;
	}
	else{
		if ( form.password.value != form.PasswordRepeat.value ){
		    alert('Niepoprawne hasło, lub błędne powtórzenie.');
			return false;
		}
	}
	return true;
}