function Subscribe(
            pctlSubscribeID,
            cbpnlID
        )
{

        this.ShowPopup = ShowPopup;
        this.DoSubscribe = DoSubscribe;
        this.DoUnsubscribe = DoUnsubscribe;
        this.HidePopup = HidePopup;
        this.DoNothing = DoNothing;
        
        function DoSubscribe()
        {
               var cbpnl = ASPxClientControl.GetControlCollection().Get(cbpnlID);
               cbpnl.PerformCallback('subscribe');
        }
        
         function DoUnsubscribe()
        {
             var cbpnl = ASPxClientControl.GetControlCollection().Get(cbpnlID);
             cbpnl.PerformCallback('unsubscribe');
        }
              
        function HidePopup()
        {
             var pctl = ASPxClientControl.GetControlCollection().Get(pctlSubscribeID);
             pctl.Hide();
        }
        
        function ShowPopup()
        {
             var pctl = ASPxClientControl.GetControlCollection().Get(pctlSubscribeID);
             pctl.Show();
        }
        
       function DoNothing()
       {
       
       }
                
}


