﻿

function FCeCJS() { 

    this.DisableEnableControl = function(e,state) 
        { 

           if (state==true)
            {
              e.disabled='';
            }
            else
            {
              e.disabled='disabled';        
            }
            
        };

    this.GetControl = function (ID)
        {
                return document.getElementById(ID);
        };

this.ShowToggle = function(ID){
    var d = this.GetControl(ID); 
    this.ShowControl(d,  (d.style.display=='none'));              
};

this.Show = function(ID,State){
    
this.ShowControl(this.GetControl(ID),State);
          
};

this.ShowControl = function(e,State){
       // var d = this.GetControl(ID);        

        if(State==false) 
            {           
                e.style.display='none'; 
                e.style.visibility='hidden';         
            }
        else 
            { 
              e.style.display='inline'; 
               e.style.visibility='visible'; 
            }          
};

 

}

var FCeCJS = new FCeCJS();
 
 