/* Users */
function editUser(id) {
	window.location = "index.php?action=modify_user&controller=user&id=" + id;
}

function viewUserLogs(id) {
	window.location = "index.php?action=user_logs&controller=user&id=" + id;
}

function deleteUser(id) {
	var DeleteRecord;
	DeleteRecord = confirm('Are you certain you wish to delete this User?\n');
	if (DeleteRecord) {
		window.location = "index.php?action=delete_user&controller=user&id=" + id;
	}
}

function restoreUser(id) {
	var DeleteRecord;
	DeleteRecord = confirm('Are you certain you wish to restore this User?\n');
	if (DeleteRecord) {
		window.location = "index.php?action=restore_user&controller=user&id=" + id;
	}
}
/* Groups */
function editGroup(id) {
	window.location = "index.php?action=modify_group&controller=group&id=" + id;
}

function deleteGroup(id) {
	var DeleteRecord;
	DeleteRecord = confirm('Are you certain you wish to delete this Group?\n');
	if (DeleteRecord) {
		window.location = "index.php?action=delete_group&controller=group&id=" + id;
	}
}

function restoreGroup(id) {
	var DeleteRecord;
	DeleteRecord = confirm('Are you certain you wish to restore this Group?\n');
	if (DeleteRecord) {
		window.location = "index.php?action=restore_group&controller=group&id=" + id;
	}
}


