/// <summary>
        /// Ran each time the page is loaded
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            Variables4QCashForecast variables = new Variables4QCashForecast();
            variables.tkid = Request["tkid"];

            utility = new BEAR._4qcashforecast.UtilityAttorneyForecast(); 

            /**
             * adding mouseover events to allow for enhanced tool tips (wx_tooltip.js)
             */
            button_submitTkid.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_SUBMIT_BUTTON + "')");
            button_submitTkid.Attributes.Add("onmouseout", "UnTip()");


            /**
             * after postback, scroll position is saved.  Also used to reduce page flashing on postback
             */
            Page.MaintainScrollPositionOnPostBack = true;
            
            
            /**
             * tkid is passed in through the query string.  If the value is null, the user is at the screen 
             * requesting a tkid with a Bingham picture.  If there is a TKID, the GridViews will build.
             * By default, the controlls are set as if tkid is null (login page).
             * This 'if' changes the display when a tkid has been entered, adds toolTips to the buttons and sets up the boolean to track 
             * the number of rows in GridView2
             */
            if (variables.tkid != null)
            {
                button_submitTkid.Visible = false;
                textbox_tkid.Visible = false;
                picture.Visible = false;
                options.Visible = true;

                /**
                 * substring(8) is to remove //BINGHAM
                 * Page.User.Identity.Name requires Windows Authentication to be 
                 * enabled at the webserver
                 */ 
                CreateLogEntry(Page.User.Identity.Name.ToString().Substring(8));

                SetDataDivHeight();

                /**
                 * adding mouseover events to allow for enhanced tool tips (wx_tooltip.js)
                 */
                buttonSave.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_SAVE_BUTTON + "')");
                buttonSave.Attributes.Add("onmouseout", "UnTip()");

                buttonPrint.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_PRINT_BUTTON + "')");
                buttonPrint.Attributes.Add("onmouseout", "UnTip()");

                buttonReport.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_REPORT_BUTTON + "')");
                buttonReport.Attributes.Add("onmouseout", "UnTip()");

                button_changeTkid.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_TKID_BUTTON + "')");
                button_changeTkid.Attributes.Add("onmouseout", "UnTip()");

                exitButton.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_EXIT_BUTTON + "')");
                exitButton.Attributes.Add("onmouseout", "UnTip()");


                int totalRows = GridView2.Rows.Count;

                if (Request["tkid"].Equals("none"))
                {
                    Response.Redirect(Variables4QCashForecast.HOME_PAGE);
                }
                else if (textbox_tkid.Text.Equals("Enter TKID") && totalRows == 0)
                {
                    /**
                     * this would fire when a url is entered with an invalid TKID#.
                     * This could happen by bypassing the login screen.  In this case, if the TKID is invalid,
                     * the user is redirected to the login page.
                     */
                     Response.Redirect(Variables4QCashForecast.ERROR_PAGE_TKID_NOT_FOUND);
                     
                }
                else
                {
                    utility.SetRowChanged(totalRows);
                }

            }
            else
            {
                ///adds onFocus event to clear the contents of the TKID box when the cursor is placed inside the textbox
                textbox_tkid.Attributes.Add("onFocus", "textbox_tkid_onFocus()"); 
                
                ///setting this to false will create a new entry in the database log
                Session["LogCreated"] = false;

                ///used to ensure the client name is not wrapped and has a minimum length of 190px
                widestClientName = 190;
            }



            if (! Page.IsPostBack)
            {

            }

        }
        /// <summary>
        /// Ran each time the page is loaded
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            Variables4QCashForecast variables = new Variables4QCashForecast();

            variables.tkid = Request["tkid"];

            utility = new BEAR._4qcashforecast.UtilityAttorneyForecast();

            /**
             * adding mouseover events to allow for enhanced tool tips (wx_tooltip.js)
             */
            button_submitTkid.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_SUBMIT_BUTTON + "')");
            button_submitTkid.Attributes.Add("onmouseout", "UnTip()");


            /**
             * after postback, scroll position is saved.  Also used to reduce page flashing on postback
             */
            Page.MaintainScrollPositionOnPostBack = true;


            /**
             * tkid is passed in through the query string.  If the value is null, the user is at the screen
             * requesting a tkid with a Bingham picture.  If there is a TKID, the GridViews will build.
             * By default, the controlls are set as if tkid is null (login page).
             * This 'if' changes the display when a tkid has been entered, adds toolTips to the buttons and sets up the boolean to track
             * the number of rows in GridView2
             */
            if (variables.tkid != null)
            {
                button_submitTkid.Visible = false;
                textbox_tkid.Visible      = false;
                picture.Visible           = false;
                options.Visible           = true;

                /**
                 * substring(8) is to remove //BINGHAM
                 * Page.User.Identity.Name requires Windows Authentication to be
                 * enabled at the webserver
                 */
                CreateLogEntry(Page.User.Identity.Name.ToString().Substring(8));

                SetDataDivHeight();

                /**
                 * adding mouseover events to allow for enhanced tool tips (wx_tooltip.js)
                 */
                buttonSave.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_SAVE_BUTTON + "')");
                buttonSave.Attributes.Add("onmouseout", "UnTip()");

                buttonPrint.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_PRINT_BUTTON + "')");
                buttonPrint.Attributes.Add("onmouseout", "UnTip()");

                buttonReport.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_REPORT_BUTTON + "')");
                buttonReport.Attributes.Add("onmouseout", "UnTip()");

                button_changeTkid.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_TKID_BUTTON + "')");
                button_changeTkid.Attributes.Add("onmouseout", "UnTip()");

                exitButton.Attributes.Add("onmouseover", "Tip('" + Variables4QCashForecast.TOOLTIP_EXIT_BUTTON + "')");
                exitButton.Attributes.Add("onmouseout", "UnTip()");


                int totalRows = GridView2.Rows.Count;

                if (Request["tkid"].Equals("none"))
                {
                    Response.Redirect(Variables4QCashForecast.HOME_PAGE);
                }
                else if (textbox_tkid.Text.Equals("Enter TKID") && totalRows == 0)
                {
                    /**
                     * this would fire when a url is entered with an invalid TKID#.
                     * This could happen by bypassing the login screen.  In this case, if the TKID is invalid,
                     * the user is redirected to the login page.
                     */
                    Response.Redirect(Variables4QCashForecast.ERROR_PAGE_TKID_NOT_FOUND);
                }
                else
                {
                    utility.SetRowChanged(totalRows);
                }
            }
            else
            {
                ///adds onFocus event to clear the contents of the TKID box when the cursor is placed inside the textbox
                textbox_tkid.Attributes.Add("onFocus", "textbox_tkid_onFocus()");

                ///setting this to false will create a new entry in the database log
                Session["LogCreated"] = false;

                ///used to ensure the client name is not wrapped and has a minimum length of 190px
                widestClientName = 190;
            }



            if (!Page.IsPostBack)
            {
            }
        }