/*@cc_on @*/
function ShowHide(controlId)
{
    var control = $get(controlId);
    if (control != null)
    {
        if (control.style.display == '')
        {
            control.style.display = 'none';
        }
        else
        {
            control.style.display = '';
        }
    }
}

function ShowHideMenu(controlId, margin)
{
    var control = $get(controlId);
    
    if (control != null)
    {
        if (control.className == 'hideMenu ' + margin)
            control.className = 'showMenu ' + margin;
        else
            control.className = 'hideMenu ' + margin;
    }
}

function setPage(filePath)
{
    window.location = 'http://' + location.host + '/' + filePath; //UilenSpecial
}

function setSizeLoadingScreen(control)
{
    var xcontrol = $get(control);
    var xheight = document.documentElement.clientWidth;
    var xwidth = document.documentElement.clientHeight;
    
    xcontrol.height = xheight;
    xcontrol.width = xwidth;
}