protected void Button_RefereeMaker_Click(object sender, EventArgs e)
        {
            User user = DatabaseHandler.GetUser(Session, TextBox_RefereeMaker.Text);

            if (user != null)
            {
                int currentPermissionLevel = user.PermissionLevel;
                int refereePermissionLevel = Help.GetPermissionLevel("Referee");
                if (currentPermissionLevel < refereePermissionLevel)
                {
                    user.PermissionLevel = refereePermissionLevel;

                    bool result = DatabaseHandler.UpdateUser(Session, user);
                    if (result)
                    {
                        ShowRefereeMakerInfo(TextBox_RefereeMaker.Text + " is now a referee.", Color.Green);
                    }
                    else
                    {
                        ShowRefereeMakerInfo("An error occured while making the user " + TextBox_RefereeMaker.Text + " a referee.", Color.Red);
                    }
                }
                else// if (currentPermissionLevel == refereePermissionLevel)
                {
                    ShowRefereeMakerInfo(TextBox_RefereeMaker.Text + " is already a referee!", Color.Red);
                }
            }
            else
            {
                ShowRefereeMakerInfo("User does not exist!", Color.Red);
            }
        }
        protected void Button_RevokeReferee_Click(object sender, EventArgs e)
        {
            User user = DatabaseHandler.GetUser(Session, TextBox_RefereeMaker.Text);

            if (user != null)
            {
                if (user.PermissionLevel <= Help.GetPermissionLevel("Referee"))
                {
                    user.PermissionLevel = 0;
                    bool result = DatabaseHandler.UpdateUser(Session, user);
                    if (result)
                    {
                        ShowRefereeMakerInfo(TextBox_RefereeMaker.Text + " is no longer a referee.", Color.Green);
                    }
                    else
                    {
                        ShowRefereeMakerInfo("An error occured while revoking referee status of the user " + TextBox_RefereeMaker.Text + ".", Color.Red);
                    }
                }
                else
                {
                    ShowRefereeMakerInfo("Cannot revoke super referees.", Color.Red);
                }
            }
            else
            {
                ShowRefereeMakerInfo("User does not exist!", Color.Red);
            }
        }