function tabSelect(tab){
	document.getElementById(tab).style.backgroundColor = "#010133";	
}
function confirmDeleteMenu(id, text){
	var answer = confirm("Are you sure you want to delete " + text);
	if(answer){
		document.location = "admin/includes/admin_functions.php?act=delMenu&id=" + id;
	} else {
		//nothing
	}
}
function confirmDeleteBuilder(id, text){
	var answer = confirm("Are you sure you want to delete " + text);
	if(answer){
		document.location = "admin/includes/admin_functions.php?act=delBuilder&id=" + id;
	} else {
		//nothing
	}
}
function confirmDeletemovUp(id, text){
	var answer = confirm("Are you sure you want to delete " + text);
	if(answer){
		document.location = "admin/includes/admin_functions.php?act=delMovUp&id=" + id;
	} else {
		//nothing
	}
}
function confirmDeleteMarket(id, text){
	var answer = confirm("Are you sure you want to delete " + text);
	if(answer){
		document.location = "admin/includes/admin_functions.php?act=delMarket&id=" + id;
	} else {
		//nothing
	}
}
function confirmDeleteLiving(id, text){
	var answer = confirm("Are you sure you want to delete " + text);
	if(answer){
		document.location = "admin/includes/admin_functions.php?act=delFree&id=" + id;
	} else {
		//nothing
	}
}
function confirmDeleteBlog(id, text, type){
	var answer = confirm("Are you sure you want to delete " + text);
	if(answer){
		document.location = "admin/includes/admin_functions.php?act=delBlog&type=" + type + "&id=" + id;
	} else {
		//nothing
	}
}
function confirmDeleteUser(id, text, type){
	var answer = confirm("Are you sure you want to delete " + text);
	if(answer){
		document.location = "admin/includes/admin_functions.php?act=delUser&type=" + type + "&id=" + id;
	} else {
		//nothing
	}
}
function deleteImage(storyID, id, text){
	var answer = confirm("Are you sure you want to delete " + text);
	if(answer){
		document.location = "admin/includes/admin_functions.php?act=delImage&id=" + id + "&storyID=" + storyID;
	} else {
		//nothing
	}
}
function deleteImageMarket(storyID, id, text){
	var answer = confirm("Are you sure you want to delete " + text);
	if(answer){
		document.location = "admin/includes/admin_functions.php?act=delImageMarket&id=" + id + "&storyID=" + storyID;
	} else {
		//nothing
	}
}