/*
         * Pre:  audition must exist as the id of an audition in the system
         * Post: The existing data for the audition associated with the auditionId
         *       is loaded to the page.
         * @param auditionId is the id of the audition being scheduled
         * @returns the audition data
         */
        private Audition loadAuditionData(int auditionId, int year)
        {
            try
            {
                audition = DbInterfaceAudition.LoadAuditionData(auditionId);

                //load data to page
                if (audition != null)
                {
                    txtIdHidden.Text     = audition.auditionId.ToString();
                    lblAuditionSite.Text = audition.venue;
                    lblAuditionDate.Text = audition.auditionDate.ToShortDateString();

                    DataTable timePreferences = DbInterfaceAudition.LoadJudgeTimePreferenceOptions(auditionId);
                    chkLstTime.DataSource = timePreferences;
                    chkLstTime.DataBind();

                    LoadRooms(audition);
                    LoadAvailableJudgesToDropdown(audition);
                    LoadAuditionJudges(audition);
                    LoadAuditionJudgeRooms(audition);

                    Session[auditionSession] = audition;
                    pnlMain.Visible          = true;
                    upAuditionSearch.Visible = false;
                }
                else
                {
                    showErrorMessage("Error: The audition information could not be loaded. Please ensure one has been created for " + year + ".");
                }
            }
            catch (Exception e)
            {
                showErrorMessage("Error: An error occurred while loading the audition data.");

                Utility.LogError("AssignBadgerRoomsAndJudges", "loadAuditionData", "auditionId: " + auditionId, "Message: " + e.Message + "   Stack Trace: " + e.StackTrace, -1);
            }

            return(audition);
        }