﻿function HideShowControl(control)
{
    if (control)
    {
        if (control.style.display == "none")
        {
            control.style.display = "";
        }
        else
        {
            control.style.display = "none";
        }        
    }
}

function HideControl(control)
{
    if (control)
    {
      control.style.display = "none";        
    }
}

function ShowControl(control)
{
    if (control)
    {
      control.style.display = "";        
    }
}

function ChangeBackgroundColor(controlId, rrggbb)
{
   var control = document.getElementById(controlId);
   if (control)
    {
    control.style.color = '#ffffff';
      control.style.backgroundColor = rrggbb;
      
    }
}

function ChangeTextColor(controlId, rrggbb)
{
   var control = document.getElementById(controlId);
   if (control)
    {      
      control.style.color = rrggbb;      
      
    }
}

function RemoveBackground(controlId)
{
   var control = document.getElementById(controlId);
   if (control)
    {
      control.style.background = 'none';
      
    }
}
