/* Mike function to switch comment tabs */
var currentView = 'productInfor';

function switchView(inName)
{   // only switch if different view
    if (currentView != inName)
    {   // local variables
        var oNow = null;
        var oTarget = null;
        
        oNow = document.getElementById(currentView);
        oTarget = document.getElementById(inName);
        this.className = "selected";
        // check for valid target                
        if (oTarget != null) 
        {   // check for valid current information
            if (oNow != null) 
                oNow.className = "hideComment";
                
            oTarget.className = "showComment";
            currentView = inName;
            document.getElementById("product_detail").className = inName;
        }
    }
}
