/// <summary>
    /// Registers the client scripts.
    /// </summary>
    protected void intRegisterClientScripts()
    {
        OppSalesProcessScriptStrings spCtrlIDs = new OppSalesProcessScriptStrings();

        spCtrlIDs.ddlSalesProcessCtrlId     = ddLSalesProcess.ClientID;
        spCtrlIDs.ddlStagesCtrlId           = ddlStages.ClientID;
        spCtrlIDs.salesProcessGridCtrlId    = SalesProcessGrid.ClientID; // <---<<<  not used... ???
        spCtrlIDs.currentSalesProcessCtrlId = txtCurrentSalesProcessName.ClientID;
        spCtrlIDs.currentStageCtrlId        = txtCurrentStage.ClientID;
        spCtrlIDs.numOfStepsCompletedCtrlId = txtNumOfStepsCompleted.ClientID;
        spCtrlIDs.opportunityIdCtrlId       = txtOpportunityId.ClientID;
        spCtrlIDs.oppContactCountCtrlId     = txtOppContactCount.ClientID;
        spCtrlIDs.luOppContactCtrlId        = luOppContact.ClientID;
        spCtrlIDs.luOppContactObj           = luOppContact.ClientID + "_luobj";
        spCtrlIDs.luUserCtrlId              = luUser.ClientID;
        spCtrlIDs.luUserObj                 = luUser.ClientID + "_obj";
        spCtrlIDs.selectedContactIdCtrlId   = selectedContactId.ClientID;
        spCtrlIDs.selectedUserIdCtrlId      = selectedUserId.ClientID;
        spCtrlIDs.cmdDoActionCtrlId         = cmdDoAction.ClientID;
        spCtrlIDs.actionContextCtrlId       = actionContext.ClientID;
        spCtrlIDs.primaryOppContactIdCtrlId = primaryOppContactId.ClientID;
        spCtrlIDs.accountManagerIdCtrlId    = accountManagerId.ClientID;
        spCtrlIDs.currentUserIdCtrlId       = currentUserId.ClientID;

        string script = string.Format("var spCtrlIDs = {0};", JsonConvert.SerializeObject(spCtrlIDs));

        ScriptManager.RegisterStartupScript(Page, GetType(), "OppSPCtrlIDs", script, true);

        //string jvScript = "<script src='SmartParts/OpportunitySalesProcess/OpportunitySalesProcess_ClientScript.js' type='text/javascript'></script>";
        //ScriptManager.RegisterClientScriptBlock(Page, GetType(), "salesprocesscript", jvScript, false);

        //ScriptManager.RegisterStartupScript(Page, GetType(), "salesprocesscript", Page.ResolveClientUrl("SmartParts/OpportunitySalesProcess/OpportunitySalesProcess_ClientScript.js"),true);

        //string vbscript = "<script type='text/vbscript' src='SmartParts/OpportunitySalesProcess/SpMailMerge_ClientScript.vbs'></script>";
        //ScriptManager.RegisterClientScriptBlock(Page, GetType(), "SPMailMergeScript", vbscript, false);
        //ScriptManager.RegisterStartupScript(Page, GetType(), "SPMailMergeScript", vbscript, false);
    }
    /// <summary>
    /// Registers the client scripts.
    /// </summary>
    protected void intRegisterClientScripts()
    {
        OppSalesProcessScriptStrings spCtrlIDs = new OppSalesProcessScriptStrings();
        spCtrlIDs.ddlSalesProcessCtrlId = ddLSalesProcess.ClientID;
        spCtrlIDs.ddlStagesCtrlId = ddlStages.ClientID;
        spCtrlIDs.salesProcessGridCtrlId = SalesProcessGrid.ClientID;   // <---<<<  not used... ???
        spCtrlIDs.currentSalesProcessCtrlId = txtCurrentSalesProcessName.ClientID;
        spCtrlIDs.currentStageCtrlId = txtCurrentStage.ClientID;
        spCtrlIDs.numOfStepsCompletedCtrlId = txtNumOfStepsCompleted.ClientID;
        spCtrlIDs.opportunityIdCtrlId = txtOpportunityId.ClientID;
        spCtrlIDs.oppContactCountCtrlId = txtOppContactCount.ClientID;
        spCtrlIDs.luOppContactCtrlId = luOppContact.ClientID;
        spCtrlIDs.luOppContactObj = luOppContact.ClientID + "_luobj";
        spCtrlIDs.luUserCtrlId = luUser.ClientID;
        spCtrlIDs.luUserObj = luUser.ClientID + "_obj";
        spCtrlIDs.selectedContactIdCtrlId = selectedContactId.ClientID;
        spCtrlIDs.selectedUserIdCtrlId = selectedUserId.ClientID;
        spCtrlIDs.cmdDoActionCtrlId = cmdDoAction.ClientID;
        spCtrlIDs.actionContextCtrlId = actionContext.ClientID;
        spCtrlIDs.primaryOppContactIdCtrlId = primaryOppContactId.ClientID;
        spCtrlIDs.accountManagerIdCtrlId = accountManagerId.ClientID;
        spCtrlIDs.currentUserIdCtrlId = currentUserId.ClientID;

        string script = string.Format("var spCtrlIDs = {0};", JsonConvert.SerializeObject(spCtrlIDs));
        ScriptManager.RegisterStartupScript(Page, GetType(), "OppSPCtrlIDs", script, true);

        //string jvScript = "<script src='SmartParts/OpportunitySalesProcess/OpportunitySalesProcess_ClientScript.js' type='text/javascript'></script>";
        //ScriptManager.RegisterClientScriptBlock(Page, GetType(), "salesprocesscript", jvScript, false);

        //ScriptManager.RegisterStartupScript(Page, GetType(), "salesprocesscript", Page.ResolveClientUrl("SmartParts/OpportunitySalesProcess/OpportunitySalesProcess_ClientScript.js"),true);

        //string vbscript = "<script type='text/vbscript' src='SmartParts/OpportunitySalesProcess/SpMailMerge_ClientScript.vbs'></script>";
        //ScriptManager.RegisterClientScriptBlock(Page, GetType(), "SPMailMergeScript", vbscript, false);
        //ScriptManager.RegisterStartupScript(Page, GetType(), "SPMailMergeScript", vbscript, false);
    }