
var Sinfo_Checkbox = function (par_pId, par_clickFunction, par_oClientObjManager)
{
   var oHtmlCheckbox = document.getElementById(par_pId);
   
   this.extend = Sinfo_Application; 
   this.extend(oHtmlCheckbox, par_oClientObjManager);
   delete this.extend;
   
   this.getName = function()
   {
      return oHtmlCheckbox.getAttribute("name");
   }
   
  /**
    * This attribute return the type of the object.
    * @property 
    * @type String
    */  
   this.type = "Sinfo_Checkbox";
      
   var clickFunction = par_clickFunction;
   var pId = par_pId;
   
   var value;
      
   var bEvent = par_oClientObjManager.Util.addEvent(
         document.getElementById(pId)
         , 'click', clickFunction,true );
      
   this.destroy = function ()
   {
      var removeResult = par_oClientObjManager.Util.removeEvent(
            document.getElementById(pId)
            , 'click', clickFunction,true );
      
   }
   this.getId = function()
   {
      return pId;
   }
   this.getAttrs = function()
   {
      var ret = new Array();
      ret['checked'] = value;
      return ret; 
   }
   this.setChecked = function(par_Value)
   {
      value = par_Value;
   }   
}
