﻿// JScript 文件
tabCount = 3;
function ProductXchangeTab(tabIndex)
    {
        for (i = 1; i <= tabCount; i++)
        {
            tab = document.getElementById("TopTenTab" + i);
            content = document.getElementById("ProductX" + i);
            link = document.getElementById("ProductLink" + i);
            
            if (i == tabIndex)
            {
                tab.className = "ActionTopTenTab";
                content.className = "ActionProduct";
                link.className = "ActionProductLink";
            }
            else
            {
                tab.className = "";
                content.className = "HiddeProduct";
                link.className = "HiddeProductLink";

            }
        }
    }
function ProductRcommendationchangeTab(tabIndex)
    {
        for (i = 1; i <= tabCount; i++)
        {
            tab = document.getElementById("PRTopTenTab" + i);
            content = document.getElementById("ProductRcommendation" + i);
            link = document.getElementById("PRLink" + i);
            
            if (i == tabIndex)
            {
                tab.className = "ActionTopTenTab";
                content.className = "ActionProduct";
                link.className = "ActionProductLink";
            }
            else
            {
                tab.className = "";
                content.className = "HiddeProduct";
                link.className = "HiddeProductLink";

            }
        }
    }
