protected void Page_Load(object sender, EventArgs e)
        {
            AuthenticateUser();
            intProfile        = Int32.Parse(Request.Cookies["profileid"].Value);
            oOnDemand         = new OnDemand(intProfile, dsn);
            oForecast         = new Forecast(intProfile, dsn);
            oClass            = new Classes(intProfile, dsn);
            oCSMConfig        = new CSMConfig(intProfile, dsn);
            oRequest          = new Requests(intProfile, dsn);
            oServer           = new Servers(intProfile, dsn);
            oStorage          = new Storage(intProfile, dsn);
            oModel            = new Models(intProfile, dsn);
            oModelsProperties = new ModelsProperties(intProfile, dsn);
            oVMWare           = new VMWare(intProfile, dsn);
            oConsistencyGroup = new ConsistencyGroups(intProfile, dsn);
            oServerName       = new ServerName(intProfile, dsn);
            oUser             = new Users(intProfile, dsn);
            oOperatingSystem  = new OperatingSystems(intProfile, dsn);
            if (Request.QueryString["aid"] != null && Request.QueryString["aid"] != "")
            {
                intAnswer = Int32.Parse(Request.QueryString["aid"]);
            }
            if (Request.QueryString["clusterid"] != null && Request.QueryString["clusterid"] != "")
            {
                intCluster = Int32.Parse(Request.QueryString["clusterid"]);
            }
            if (Request.QueryString["csmid"] != null && Request.QueryString["csmid"] != "")
            {
                intConfig = Int32.Parse(Request.QueryString["csmid"]);
            }
            if (Request.QueryString["num"] != null && Request.QueryString["num"] != "")
            {
                intNumber = Int32.Parse(Request.QueryString["num"]);
            }
            int intMenuTab = 0;

            if (Request.QueryString["menu_tab"] != null && Request.QueryString["menu_tab"] != "")
            {
                intMenuTab = Int32.Parse(Request.QueryString["menu_tab"]);
            }
            if (Request.QueryString["refresh"] != null)
            {
                Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "refresh", "<script type=\"text/javascript\">RefreshOpeningWindow();<" + "/" + "script>");
            }
            if (Request.QueryString["save"] != null)
            {
                Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "save", "<script type=\"text/javascript\">RefreshOpeningWindow();window.close();<" + "/" + "script>");
            }
            else if (Request.QueryString["required"] != null)
            {
                if (Request.QueryString["dba"] != null)
                {
                    Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "dba", "<script type=\"text/javascript\">RefreshOpeningWindow();alert('Please enter a database administrator');<" + "/" + "script>");
                    intMenuTab = 1;
                }
            }
            int intServer = 0;
            int intDR     = 0;

            if (intAnswer > 0)
            {
                Page.Title = "ClearView Configure Device | Design # " + intAnswer.ToString();
                DataSet ds = oForecast.GetAnswer(intAnswer);
                if (ds.Tables[0].Rows.Count > 0)
                {
                    Tab oTab = new Tab("", intMenuTab, "divMenu1", true, false);
                    oTab.AddTab("1.) General Information", "");
                    oTab.AddTab("2.) Software Components", "");
                    strMenuTab1 = oTab.GetTabs();

                    int  intModel       = oForecast.GetModel(intAnswer);
                    int  intType        = oModelsProperties.GetType(intModel);
                    int  intDRForecast  = Int32.Parse(oForecast.TotalDRCount(intAnswer, boolUseCSM).ToString());
                    int  intDRCurrent   = Int32.Parse(ds.Tables[0].Rows[0]["recovery_number"].ToString());
                    int  intHAForecast  = Int32.Parse(oForecast.TotalHACount(intAnswer, boolUseCSM).ToString());
                    int  intHACurrent   = Int32.Parse(ds.Tables[0].Rows[0]["ha"].ToString());
                    bool boolHADisabled = (oModelsProperties.IsHighAvailability(intModel) == false);
                    bool boolHA         = oForecast.IsHARoom(intAnswer);
                    int  _classid       = Int32.Parse(ds.Tables[0].Rows[0]["classid"].ToString());
                    if (oClass.Get(_classid, "prod") == "1")
                    {
                        if (oModelsProperties.IsStorageDE_FDriveMustBeOnSAN(intModel) == true)
                        {
                            radDRNo.Checked         = false;
                            radDRYes.Checked        = true;
                            radDRNo.Enabled         = false;
                            radDRYes.Enabled        = false;
                            divDR1.Style["display"] = "inline";
                            divDR2.Style["display"] = "inline";
                        }
                        if (ds.Tables[0].Rows[0]["test"].ToString() == "1")
                        {
                            panTest.Visible = true;
                        }
                    }
                    if (boolHA == false)
                    {
                        radHANo.Checked  = true;
                        radHAYes.Checked = false;
                        radHANo.Enabled  = false;
                        radHAYes.Enabled = false;
                    }
                    if (intCluster > 0)
                    {
                        panCluster.Visible      = false;
                        radHANo.Checked         = true;
                        radHAYes.Checked        = false;
                        radHANo.Enabled         = false;
                        radHAYes.Enabled        = false;
                        radDRNo.Checked         = true;
                        radDRYes.Checked        = false;
                        radDRNo.Enabled         = false;
                        radDRYes.Enabled        = false;
                        divDR1.Style["display"] = "none";
                        divDR2.Style["display"] = "none";
                    }
                    int _environmentid = Int32.Parse(ds.Tables[0].Rows[0]["environmentid"].ToString());
                    intServer  = Int32.Parse(ds.Tables[0].Rows[0]["quantity"].ToString()) - oForecast.TotalServerCount(intAnswer, boolUseCSM);
                    intDR      = Int32.Parse(ds.Tables[0].Rows[0]["recovery_number"].ToString()) - oForecast.TotalDRCount(intAnswer, boolUseCSM);
                    intRequest = oForecast.GetRequestID(intAnswer, true);
                    if (ds.Tables[0].Rows[0]["applicationid"].ToString() == "0")
                    {
                        panInfrastructure.Visible = true;
                    }
                    if (!IsPostBack)
                    {
                        LoadLists(_classid, _environmentid);
                        int intDBA = 0;
                        ds = oServer.Get(intAnswer, intConfig, intCluster, intNumber);
                        if (ds.Tables[0].Rows.Count > 0)
                        {
                            panComponents.Visible = true;
                            frmComponents.Attributes.Add("src", "/frame/ondemand/config_server_components.aspx" + Request.Url.Query);
                            intServer  = Int32.Parse(ds.Tables[0].Rows[0]["id"].ToString());
                            Page.Title = "ClearView Configure Device | Server # " + intServer.ToString();
                            if (ds.Tables[0].Rows[0]["step"].ToString() != "0")
                            {
                                btnSaveConfig.Visible = false;
                            }
                            lblId.Text = intServer.ToString();
                            Int32.TryParse(ds.Tables[0].Rows[0]["osid"].ToString(), out intOS);
                            if (intOS > 0 && ddlOS.SelectedValue == "0")
                            {
                                ddlOS.SelectedValue = intOS.ToString();
                            }
                            int intSP = 0;
                            Int32.TryParse(ds.Tables[0].Rows[0]["spid"].ToString(), out intSP);
                            ddlServicePack.SelectedValue = intSP.ToString();
                            ddlMaintenance.SelectedValue = intSP.ToString();
                            ddlTemplate.SelectedValue    = ds.Tables[0].Rows[0]["templateid"].ToString();
                            ddlDomain.SelectedValue      = ds.Tables[0].Rows[0]["domainid"].ToString();
                            ddlTestDomain.SelectedValue  = ds.Tables[0].Rows[0]["test_domainid"].ToString();
                            intDBA = Int32.Parse(ds.Tables[0].Rows[0]["dba"].ToString());
                            if (ds.Tables[0].Rows[0]["infrastructure"].ToString() == "1")
                            {
                                radInfrastructureYes.Checked = true;
                            }
                            else
                            {
                                radInfrastructureNo.Checked = true;
                            }
                            if (ds.Tables[0].Rows[0]["ha"].ToString() == "1")
                            {
                                radHAYes.Checked = true;
                            }
                            else
                            {
                                radHANo.Checked = true;
                            }
                            if (ds.Tables[0].Rows[0]["dr"].ToString() == "1")
                            {
                                radDRYes.Checked        = true;
                                divDR1.Style["display"] = "inline";
                                if (ds.Tables[0].Rows[0]["dr_exist"].ToString() == "1")
                                {
                                    radExistYes.Checked       = true;
                                    divExist.Style["display"] = "inline";
                                    txtRecovery.Text          = ds.Tables[0].Rows[0]["dr_name"].ToString();
                                }
                                else
                                {
                                    radExistNo.Checked = true;
                                }
                                divDR2.Style["display"] = "inline";
                                if (ds.Tables[0].Rows[0]["dr_consistency"].ToString() == "1")
                                {
                                    radConsistencyYes.Checked        = true;
                                    divConsistency1.Style["display"] = "inline";
                                    divConsistency2.Style["display"] = "inline";
                                    int intConsistency = Int32.Parse(ds.Tables[0].Rows[0]["dr_consistencyid"].ToString());
                                    hdnConsistencyGroup.Value = intConsistency.ToString();
                                    txtConsistencyGroup.Text  = oConsistencyGroup.Get(intConsistency, "name");
                                }
                                else
                                {
                                    radConsistencyNo.Checked = true;
                                }
                            }
                            else
                            {
                                radDRNo.Checked = true;
                            }

                            // Check selected items
                            DataSet dsSelected = oServerName.GetComponentDetailSelected(intServer, 1);
                            foreach (DataRow drSelected in dsSelected.Tables[0].Rows)
                            {
                                if (drSelected["sql"].ToString() == "1" || drSelected["dbase"].ToString() == "1")
                                {
                                    divDBA.Style["display"] = "inline";
                                    if (intDBA > 0)
                                    {
                                        txtUser.Text  = oUser.GetFullName(intDBA) + " (" + oUser.GetName(intDBA) + ")";
                                        hdnUser.Value = intDBA.ToString();
                                    }
                                }
                            }
                        }
                        else
                        {
                            panComponentsNo.Visible = true;
                        }
                    }
                    if (intDRCurrent < intDRForecast || (intDRCurrent == intDRForecast && radDRYes.Checked == false))
                    {
                        radDRNo.Checked         = true;
                        radDRYes.Checked        = false;
                        radDRNo.Enabled         = false;
                        radDRYes.Enabled        = false;
                        divDR1.Style["display"] = "none";
                        divDR2.Style["display"] = "none";
                    }
                    if (intHACurrent < intHAForecast || (intHACurrent == intHAForecast && radHAYes.Checked == false))
                    {
                        radHANo.Checked  = true;
                        radHAYes.Checked = false;
                        radHANo.Enabled  = false;
                        radHAYes.Enabled = false;
                    }
                    btnClose.Attributes.Add("onclick", "return window.close();");

                    if (oModelsProperties.IsConfigServicePack(intModel) == true || oOperatingSystem.IsWindows(intOS) == true || oOperatingSystem.IsWindows2008(intOS) == true)
                    {
                        panSP.Visible = true;
                    }
                    if (oModelsProperties.IsConfigVMWareTemplate(intModel) == true)
                    {
                        panTemplate.Visible = true;
                    }
                    if (oModelsProperties.IsConfigMaintenanceLevel(intModel) == true)
                    {
                        panMaintenance.Visible = true;
                    }

                    string strInfrastructure = "";
                    if (panInfrastructure.Visible == true)
                    {
                        strInfrastructure = " && ValidateRadioButtons('" + radInfrastructureYes.ClientID + "','" + radInfrastructureNo.ClientID + "','Please choose if this server is an infrastructure server')";
                    }
                    string strTemplate = "";
                    if (panTemplate.Visible == true)
                    {
                        strTemplate = " && ValidateDropDown('" + ddlTemplate.ClientID + "','Please select a template')";
                    }
                    string strSP = "";
                    if (panSP.Visible == true)
                    {
                        strSP = " && ValidateDropDown('" + ddlServicePack.ClientID + "','Please select a service pack')";
                    }
                    if (panMaintenance.Visible == true)
                    {
                        strSP = " && ValidateDropDown('" + ddlMaintenance.ClientID + "','Please select a maintenance level')";
                    }
                    string strHA = "";
                    string strDR = "";
                    if (panCluster.Visible == true)
                    {
                        strHA = " && ValidateRadioButtons('" + radHAYes.ClientID + "','" + radHANo.ClientID + "','Please choose if this server has an HA counterpart')";
                        strDR = " && EnsureDR('" + radDRYes.ClientID + "','" + radDRNo.ClientID + "','" + radExistYes.ClientID + "','" + radExistNo.ClientID + "','" + txtRecovery.ClientID + "','" + radConsistencyYes.ClientID + "','" + radConsistencyNo.ClientID + "','" + hdnConsistencyGroup.ClientID + "')";
                    }
                    btnSaveConfig.Attributes.Add("onclick", "return ValidateDropDown('" + ddlDomain.ClientID + "','Please select a domain')" +
                                                 " && ValidateHiddenDisabled('" + hdnUser.ClientID + "','" + txtUser.ClientID + "','Please enter a username, first name or last name')" +
                                                 strSP +
                                                 strTemplate +
                                                 " && ValidateDropDown('" + ddlTestDomain.ClientID + "','Please select a domain')" +
                                                 strInfrastructure +
                                                 strHA +
                                                 strDR +
                                                 ";");
                }
            }
            else
            {
                btnSaveConfig.Enabled = false;
            }
            radDRYes.Attributes.Add("onclick", "ShowHideDiv('" + divDR1.ClientID + "','inline');ShowHideDiv('" + divDR2.ClientID + "','inline');ShowHideDivCheck('" + divExist.ClientID + "',document.getElementById('" + radExistYes.ClientID + "'));ShowHideDivCheck('" + divConsistency1.ClientID + "',document.getElementById('" + radConsistencyYes.ClientID + "'));ShowHideDivCheck('" + divConsistency2.ClientID + "',document.getElementById('" + radConsistencyYes.ClientID + "'));");
            radDRNo.Attributes.Add("onclick", "ShowHideDiv('" + divDR1.ClientID + "','none');ShowHideDiv('" + divDR2.ClientID + "','none');ShowHideDiv('" + divExist.ClientID + "','none');ShowHideDiv('" + divConsistency1.ClientID + "','none');ShowHideDiv('" + divConsistency2.ClientID + "','none');");
            radExistYes.Attributes.Add("onclick", "ShowHideDiv('" + divExist.ClientID + "','inline');");
            radExistNo.Attributes.Add("onclick", "ShowHideDiv('" + divExist.ClientID + "','none');");
            radConsistencyYes.Attributes.Add("onclick", "ShowHideDiv('" + divConsistency1.ClientID + "','inline');ShowHideDiv('" + divConsistency2.ClientID + "','inline');");
            radConsistencyNo.Attributes.Add("onclick", "ShowHideDiv('" + divConsistency1.ClientID + "','none');ShowHideDiv('" + divConsistency2.ClientID + "','none');");
            btnConsistencyServer.Attributes.Add("onclick", "return ShowConsistency('CONSISTENCY_SERVER','?id=0','" + txtConsistencyGroup.ClientID + "','" + hdnConsistencyGroup.ClientID + "');");
            btnConsistencyName.Attributes.Add("onclick", "return ShowConsistency('CONSISTENCY_SELECT','?id=0','" + txtConsistencyGroup.ClientID + "','" + hdnConsistencyGroup.ClientID + "');");
            btnConsistencyNew.Attributes.Add("onclick", "return ShowConsistency('CONSISTENCY_NEW','?id=0','" + txtConsistencyGroup.ClientID + "','" + hdnConsistencyGroup.ClientID + "');");
            Variables oVariable = new Variables(intEnvironment);

            txtUser.Attributes.Add("onkeyup", "return AJAXTextBoxGet(this,'250','195','" + divAJAX.ClientID + "','" + lstAJAX.ClientID + "','" + hdnUser.ClientID + "','" + oVariable.URL() + "/frame/users.aspx',2);");
            lstAJAX.Attributes.Add("ondblclick", "AJAXClickRow();");
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     intProfile        = Int32.Parse(Request.Cookies["profileid"].Value);
     oForecast         = new Forecast(intProfile, dsn);
     oPlatform         = new Platforms(intProfile, dsn);
     oModel            = new Models(intProfile, dsn);
     oModelsProperties = new ModelsProperties(intProfile, dsn);
     oLocation         = new Locations(intProfile, dsn);
     oClass            = new Classes(intProfile, dsn);
     if (Request.QueryString["parent"] != null && Request.QueryString["parent"] != "")
     {
         intForecast = Int32.Parse(Request.QueryString["parent"]);
     }
     if (Request.QueryString["id"] != null && Request.QueryString["id"] != "")
     {
         intID = Int32.Parse(Request.QueryString["id"]);
     }
     if (Request.QueryString["step"] != null && Request.QueryString["step"] != "")
     {
         panUpdate.Visible = true;
     }
     else
     {
         panNavigation.Visible = true;
     }
     if (intID > 0)
     {
         DataSet ds = oForecast.GetAnswer(intID);
         if (ds.Tables[0].Rows.Count > 0)
         {
             bool boolHundred   = false;
             int  intConfidence = Int32.Parse(ds.Tables[0].Rows[0]["confidenceid"].ToString());
             if (intConfidence > 0)
             {
                 Confidence oConfidence   = new Confidence(intProfile, dsn);
                 string     strConfidence = oConfidence.Get(intConfidence, "name");
                 if (strConfidence.Contains("100%") == true)
                 {
                     boolHundred = true;
                 }
             }
             if (boolHundred == true)
             {
                 panUpdate.Visible     = false;
                 panNavigation.Visible = false;
                 btnHundred.Visible    = true;
             }
             int  intPlatform = Int32.Parse(ds.Tables[0].Rows[0]["platformid"].ToString());
             int  intStep     = Int32.Parse(ds.Tables[0].Rows[0]["step"].ToString());
             bool boolTest    = (ds.Tables[0].Rows[0]["test"].ToString() == "1");
             int  intQuantity = Int32.Parse(ds.Tables[0].Rows[0]["quantity"].ToString());
             int  intAddress  = Int32.Parse(ds.Tables[0].Rows[0]["addressid"].ToString());
             intForecast = Int32.Parse(ds.Tables[0].Rows[0]["forecastid"].ToString());
             DataSet dsSteps = oForecast.GetSteps(intPlatform, 1);
             if (dsSteps.Tables[0].Rows.Count == intStep)
             {
                 btnNext.Text = "Finish";
             }
             if (intStep == 0 || intStep == 1)
             {
                 btnBack.Enabled = false;
             }
             if (oLocation.GetAddress(intAddress, "storage") != "1")
             {
                 radNo.Checked  = true;
                 radYes.Enabled = false;
                 radYes.ToolTip = "Location " + oLocation.GetFull(intAddress) + " is not configured for storage";
             }
             else
             {
                 bool boolProduction    = oClass.IsProd(Int32.Parse(ds.Tables[0].Rows[0]["classid"].ToString()));
                 bool boolQA            = oClass.IsQA(Int32.Parse(ds.Tables[0].Rows[0]["classid"].ToString()));
                 bool boolNone          = (ds.Tables[0].Rows[0]["storage"].ToString() == "-2");
                 bool boolRequired      = oForecast.IsHACluster(intID);
                 bool boolNoReplication = oForecast.IsDROver48(intID, false);
                 // Get Model
                 int intModel = oForecast.GetModel(intID);
                 if (oModelsProperties.IsStorageDE_FDriveMustBeOnSAN(intModel) == true)
                 {
                     boolRequired = true;
                 }
                 Types oType = new Types(intProfile, dsn);
                 if (oType.GetPlatform(oModelsProperties.GetType(intModel)) == intSharedPlatform)
                 {
                     boolRequired = true;
                 }
                 if (boolRequired == true)
                 {
                     radNo.Enabled = false;
                     if (boolNone == false)
                     {
                         divYes.Style["display"] = "inline";
                     }
                     radNo.ToolTip = "Storage Required for Clusters";
                 }
                 if (!IsPostBack)
                 {
                     if (boolProduction == true)
                     {
                         panOldHighProduction.Visible     = true;
                         panOldStandardProduction.Visible = true;
                         panOldLowProduction.Visible      = true;
                     }
                     if (boolQA == true)
                     {
                         panOldHighQA.Visible     = true;
                         panOldStandardQA.Visible = true;
                         panOldLowQA.Visible      = true;
                     }
                     if ((boolProduction == false && boolQA == false) || (boolProduction == true && boolTest == true))
                     {
                         panOldHighTest.Visible     = true;
                         panOldStandardTest.Visible = true;
                         panOldLowTest.Visible      = true;
                     }
                     if (boolNoReplication == false)     // If Replication = true
                     {
                         panOldStandardReplication.Visible         = true;
                         ddlOldStandardReplicated.Enabled          = false;
                         ddlOldStandardReplicated.SelectedValue    = "Yes";
                         ddlOldStandardReplicated.ToolTip          = "Under 48 Hours requires Replication";
                         divOldStandardReplicated.Style["display"] = "inline";
                     }
                     if (ds.Tables[0].Rows[0]["storage"].ToString() == "1")
                     {
                         radYes.Checked   = true;
                         ds               = oForecast.GetStorageOS(intID);
                         panReset.Visible = (ds.Tables[0].Rows.Count > 0);
                         ds               = oForecast.GetStorage(intID);
                         if (ds.Tables[0].Rows.Count > 0)
                         {
                             divYes.Style["display"] = "inline";
                             if (ds.Tables[0].Rows[0]["high"].ToString() == "1")
                             {
                                 chkOldHigh.Checked          = true;
                                 divOldHigh.Style["display"] = "inline";
                                 txtOldHighRequire.Text      = ds.Tables[0].Rows[0]["high_total"].ToString();
                                 txtOldHighRequireQA.Text    = ds.Tables[0].Rows[0]["high_qa"].ToString();
                                 txtOldHighRequireTest.Text  = ds.Tables[0].Rows[0]["high_test"].ToString();
                             }
                             if (ds.Tables[0].Rows[0]["standard"].ToString() == "1")
                             {
                                 chkOldStandard.Checked          = true;
                                 divOldStandard.Style["display"] = "inline";
                                 txtOldStandardRequire.Text      = ds.Tables[0].Rows[0]["standard_total"].ToString();
                                 txtOldStandardRequireQA.Text    = ds.Tables[0].Rows[0]["standard_qa"].ToString();
                                 txtOldStandardRequireTest.Text  = ds.Tables[0].Rows[0]["standard_test"].ToString();
                                 double dblStandardReplicated = double.Parse(ds.Tables[0].Rows[0]["standard_replicated"].ToString());
                                 if (dblStandardReplicated > 0.00)
                                 {
                                     divOldStandardReplicated.Style["display"] = "inline";
                                     txtOldStandardReplicated.Text             = dblStandardReplicated.ToString();
                                     ddlOldStandardReplicated.SelectedValue    = "Yes";
                                 }
                             }
                             if (ds.Tables[0].Rows[0]["low"].ToString() == "1")
                             {
                                 chkOldLow.Checked          = true;
                                 divOldLow.Style["display"] = "inline";
                                 txtOldLowRequire.Text      = ds.Tables[0].Rows[0]["low_total"].ToString();
                                 txtOldLowRequireQA.Text    = ds.Tables[0].Rows[0]["low_qa"].ToString();
                                 txtOldLowRequireTest.Text  = ds.Tables[0].Rows[0]["low_test"].ToString();
                             }
                         }
                     }
                     else if (ds.Tables[0].Rows[0]["storage"].ToString() == "-1")
                     {
                         radLater.Checked = true;
                     }
                     else if (boolRequired == true && boolNone == false)
                     {
                         radYes.Checked = true;
                     }
                     else
                     {
                         radNo.Checked = true;
                     }
                 }
                 chkOldHigh.Attributes.Add("onclick", "ShowHideDivCheck('" + divOldHigh.ClientID + "',this);");
                 chkOldStandard.Attributes.Add("onclick", "ShowHideDivCheck('" + divOldStandard.ClientID + "',this);");
                 ddlOldStandardReplicated.Attributes.Add("onchange", "ShowHideDivDDL('" + divOldStandardReplicated.ClientID + "',this,'Yes');");
                 chkOldLow.Attributes.Add("onclick", "ShowHideDivCheck('" + divOldLow.ClientID + "',this);");
                 btnNext.Attributes.Add("onclick", "return EnsureStorage('" + radYes.ClientID + "','" + chkOldHigh.ClientID + "','" + chkOldStandard.ClientID + "','" + chkOldLow.ClientID + "')" +
                                        " && EnsureStorageOld('" + radYes.ClientID + "','" + chkOldHigh.ClientID + "','" + txtOldHighRequire.ClientID + "','" + txtOldHighRequireQA.ClientID + "','" + txtOldHighRequireTest.ClientID + "'," + (boolProduction ? "true" : "false") + ",false,null,null)" +
                                        " && EnsureStorageOld('" + radYes.ClientID + "','" + chkOldStandard.ClientID + "','" + txtOldStandardRequire.ClientID + "','" + txtOldStandardRequireQA.ClientID + "','" + txtOldStandardRequireTest.ClientID + "'," + (boolProduction ? "true" : "false") + "," + (boolNoReplication ? "true" : "false") + ",'" + ddlOldStandardReplicated.ClientID + "','" + txtOldStandardReplicated.ClientID + "')" +
                                        " && EnsureStorageOld('" + radYes.ClientID + "','" + chkOldLow.ClientID + "','" + txtOldLowRequire.ClientID + "','" + txtOldLowRequireQA.ClientID + "','" + txtOldLowRequireTest.ClientID + "'," + (boolProduction ? "true" : "false") + ",false,null,null)" +
                                        ";");
                 btnUpdate.Attributes.Add("onclick", "return EnsureStorage('" + radYes.ClientID + "','" + chkOldHigh.ClientID + "','" + chkOldStandard.ClientID + "','" + chkOldLow.ClientID + "')" +
                                          " && EnsureStorageOld('" + radYes.ClientID + "','" + chkOldHigh.ClientID + "','" + txtOldHighRequire.ClientID + "','" + txtOldHighRequireQA.ClientID + "','" + txtOldHighRequireTest.ClientID + "'," + (boolProduction ? "true" : "false") + ",false,null,null)" +
                                          " && EnsureStorageOld('" + radYes.ClientID + "','" + chkOldStandard.ClientID + "','" + txtOldStandardRequire.ClientID + "','" + txtOldStandardRequireQA.ClientID + "','" + txtOldStandardRequireTest.ClientID + "'," + (boolProduction ? "true" : "false") + "," + (boolNoReplication ? "true" : "false") + ",'" + ddlOldStandardReplicated.ClientID + "','" + txtOldStandardReplicated.ClientID + "')" +
                                          " && EnsureStorageOld('" + radYes.ClientID + "','" + chkOldLow.ClientID + "','" + txtOldLowRequire.ClientID + "','" + txtOldLowRequireQA.ClientID + "','" + txtOldLowRequireTest.ClientID + "'," + (boolProduction ? "true" : "false") + ",false,null,null)" +
                                          ";");
                 btnReset.Attributes.Add("onclick", "return OpenWindow('RESET_STORAGE', '?id=" + intID.ToString() + "');");
             }
         }
     }
     radLater.Attributes.Add("onclick", "ShowHideDiv('" + divYes.ClientID + "','none');");
     radNo.Attributes.Add("onclick", "ShowHideDiv('" + divYes.ClientID + "','none');");
     radYes.Attributes.Add("onclick", "ShowHideDiv('" + divYes.ClientID + "','inline');");
     btnClose.Attributes.Add("onclick", "return window.close();");
 }