function confirmLogout() {
	var confirmed = confirm("Möchtest du dich wirklich abmelden?");
	
	if (confirmed) {
		return true;
	} else {
		return false;
	}
}

function confirmDeleteCategory(category_id) {
	var check = confirm("Möchtest du die Kategorie wirklich löschen?");
	
	if (check) {
		location.href = "admin.html?categories&action=delete&id=" + category_id + "&confirm";
	} else {
		return false;
	}
}

function confirmDeleteSubCategory(subcategory_id) {
	var check = confirm("Möchtest du die Sub-Kategorie wirklich löschen?");
	
	if (check) {
		location.href = "admin.html?subcategories&action=delete&id=" + subcategory_id + "&confirm";
	} else {
		return false;
	}
}

function confirmDeleteLocation(location_id) {
	var check = confirm("Möchtest du diese Location wirklich löschen?");
	
	if (check) {
		location.href = "admin.html?locations&action=delete&id=" + location_id + "&confirm";
	} else {
		return false;
	}
}

function confirmDeleteLocationImage(location_image_id, location_id) {
	var check = confirm("Möchtest du dieses Bild wirklich löschen?");
	
	if (check) {
		location.href = "admin.html?locations&action=files&id=" + location_id + "&deleteIMG=" + location_image_id;
	} else {
		return false;
	}
}

function confirmDeleteLocationFile(location_downloads_id, location_id) {
	var check = confirm("Möchtest du diese Datei wirklich löschen?");
	
	if (check) {
		location.href = "admin.html?locations&action=files&id=" + location_id + "&deleteFile=" + location_downloads_id;
	} else {
		return false;
	}
}
