function ShowUtilityManagement() {
    document.getElementById('UtilityManagementOpen').style.display = "block";
    document.getElementById('UtilityManagementClosed').style.display = "none";
    document.cookie = 'showutilitymanagement=1; path=/';
}
function HideUtilityManagement() {
    document.getElementById('UtilityManagementClosed').style.display = "block";
    document.getElementById('UtilityManagementOpen').style.display = "none";
    document.cookie = 'showutilitymanagement=0; path=/';
}


var W3CDOM = (!( navigator.userAgent.indexOf('Mac') != -1 &&
                 navigator.userAgent.indexOf('MSIE 5') != -1
               ) &&
               document.getElementsByTagName &&
               document.createElement);

function setActiveStyleSheet(title) {
    // terminate if we hit a non-compliant DOM implementation
    if (!W3CDOM){return false};
    var i, a, main;
    for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
        if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
            a.disabled = true;
            if (a.getAttribute("title") == title) {
                a.disabled = false;
            }
        }
    }
};

function openLinkToolbox() {
    window.open('about:blank','linktoolbox','resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width=350,height=450');
}

