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();
}