function potwierdzenie(id,user_id) {
	    var answer = confirm("Czy skasować wybrany wpis? \n Potwierdzenie usunie dane z bazy");
	    if (answer){
	    	document.location.href  = "/index.php/admin/kasuj_news/"+id+"/"+user_id;
	    }
	    else{
	    	return false;
	    }
	    }

function potwierdzenie_skasowania(url) {
	    var answer = confirm("Czy skasować wybrany wpis? \n Potwierdzenie usunie dane z bazy");
	    if (answer==true){
	    	document.location.href = url;
		return true;
	    }
	    else{
	    	return false;
	    }
	    }

function potwierdzenie_kategoria(url) {
	    var answer = confirm("Czy skasować wybrany wpis? \n  UWAGA !!! Potwierdzenie usunie dane o kategorii, jak również wszystkie produkty, znajdujące się w tej kategorii UWAGA !!!");
	    if (answer==true){
	    	document.location.href = url;
	    }
	    else{
	    	return false;
	    }
	    }
