 


 

  
    function selectOption(linkName, linkUrl){
        window.location = linkUrl;
    }    
    
    /* Hide an element and fill the space it took up */
    function hide(elementId){
        changeClass(elementId, 'off');

    }
    function show(elementId){
        changeClass(elementId, 'on');

    }
    
    /* Hide an element and preserve the space it took up */
    function mask(elementId){
        changeClass(elementId, 'masked');

    }
    function unmask(elementId){
        changeClass(elementId, 'unmasked');

    }
    
    /* Foo */
    function select(elementId){
        changeClass(elementId, 'selected');
    }
    function deselect(elementId){
        changeClass(elementId, '');
    }



    function changeClass(elementId, className){
        // Get a reference to the element
        element = document.getElementById(elementId);
        // Make sure the element was on the page
        if (element) {
			// Update the element's className property
			element.className = className;
        }
    }
