    function showMenu(p_sMenuName) {

        aTops = getElementsByClass(p_sMenuName + 'top');
        for (i = 0; i < aTops.length; i++) {
            aTops[i].className = p_sMenuName + 'highlight';
        }
        
        aBottoms = getElementsByClass(p_sMenuName + 'bottom');
        for (i = 0; i < aBottoms.length; i++) {
            aBottoms[i].className = p_sMenuName + 'highlight';
        }
        
        
        aBorderLine = getElementsByClass(p_sMenuName + 'bl');
        for (i = 0; i < aBorderLine.length; i++) {
            aBorderLine[i].bgColor = "#cccccc";
        }
        
        aNav = getElementsByClass(p_sMenuName + 'nav');
        for (i = 0; i < aNav.length; i++) {
            aNav[i].bgColor = "#6AAFBD";
        }
        
        aSubNav = getElementsByClass(p_sMenuName + 'subnav');
        for (i = 0; i < aSubNav.length; i++) {
            aSubNav[i].bgColor = "#6AAFBD";
            aSubNav[i].style.visibility = "visible";
        }

    }
    

    
    function hideHistory() {
        if (document.getElementById("historytbl")) {
            document.getElementById("historytbl").style.zIndex = 1;
        }
    }
    
    function hideSubMenu() {
        if (document.getElementById("subpagemenu")) {
            document.getElementById("subpagemenu").style.zIndex = 1;
        }
    }
    
    function showHistory() {
        if (document.getElementById("historytbl")) {
            document.getElementById("historytbl").style.zIndex = 5;
        }
    }
    
    function showSubMenu() {
        if (document.getElementById("subpagemenu")) {
            document.getElementById("subpagemenu").style.zIndex = 5;
        }
    }
    
    function selectTop(p_sMenuName) {
        aTops = getElementsByClass(p_sMenuName + 'top');
        for (i = 0; i < aTops.length; i++) {
            aTops[i].className = p_sMenuName + 'selected';
        }
    }
    
    function hideMenu(p_sMenuName) {

        aTops = getElementsByClass(p_sMenuName + 'highlight');
        for (i = 0; i < aTops.length; i++) {
            aTops[i].className = p_sMenuName + 'top';
        }
        
        aBorderLine = getElementsByClass(p_sMenuName + 'bl');
        for (i = 0; i < aBorderLine.length; i++) {
            aBorderLine[i].bgColor = "";
        }
        
        aNav = getElementsByClass(p_sMenuName + 'nav');
        for (i = 0; i < aNav.length; i++) {
            aNav[i].bgColor = "";
        }
        
        aSubNav = getElementsByClass(p_sMenuName + 'subnav');
        for (i = 0; i < aSubNav.length; i++) {
            aSubNav[i].bgColor = "";
            aSubNav[i].style.visibility = "hidden";
        }
    }
        
    function getElementsByClass(cls) {
    	var a, c, i, j, o;
    	a = document.all ? document.all : document.getElementsByTagName("TD");
    	o = new Array();
    	j = 0;
    	for (i = 0; i < a.length; i++) {
    		if (a[i].className == cls) {
    			o[j] = a[i];
    			j++;
    		}
    	}
    	return o;
    }
    
    function brandpopup(p_sLink) {
        window.open(p_sLink,'myExample4','width=420,height=540,scrollbars=yes,status=yes,resizable=yes');
    }