//*******************************************************
        //
        // The AddTab_Click server event handler is used to add
        // a new security tab for this portal
        //
        //*******************************************************

        private void AddTab_Click(Object Sender, EventArgs e)
        {
            // Obtain PortalSettings from Current Context
            PortalSettings portalSettings = (PortalSettings)Context.Items["PortalSettings"];

            // New tabs go to the end of the list
            TabItem t = new TabItem();

            t.TabName  = "New Tab";
            t.TabId    = -1;
            t.TabOrder = 999;
            portalTabs.Add(t);

            // write tab to database
            AdminDB admin = new AdminDB();

            t.TabId = admin.AddTab(portalSettings.PortalId, t.TabName, t.TabOrder);

            // Reset the order numbers for the tabs within the list
            OrderTabs();

            // Redirect to edit page
            Response.Redirect("~/Admin/TabLayout.aspx?tabid=" + t.TabId);
        }