
Sinfo_Button = function Sinfo_Button(par_pId, par_clickFunction, par_oClientObjManager)
{
   var oHtmlButton = document.getElementById(par_pId);
   
   this.extend = Sinfo_Application; 
   this.extend(oHtmlButton, par_oClientObjManager);
   delete this.extend;
   
  /**
    * This attribute return the type of the object.
    * @property 
    * @type String
    */  
   this.type = "Sinfo_Button";
   
   
   var clickFunction = par_clickFunction;
   var pId = par_pId;
   
   var bEvent;
   bEvent = par_oClientObjManager.Util.addEvent(oHtmlButton, 'click', clickFunction,true )
   //alert(bEvent);

   this.destroy = function ()
					   {
					      var removeResult = par_oClientObjManager.Util.removeEvent(oHtmlButton, 'click', clickFunction);
					      //alert('rimuovo l evento per ' + pId);
					   }
   this.getId   = function()
					   {
					      return pId;
					   }
   this.getAttrs = function()
					   {
					      return new Array();
					   }
   
   this.getClickFunction = function()
   {
	   return par_clickFunction;
   }
}