/*--------------------------------------------------------------
* Copyright (c) 2006 TELUS Communications Inc.,
*
* All Rights Reserved.
* This document contains proprietary information that shall be
* distributed or routed only within TELUS, and its authorized
* clients, except with written permission of TELUS.
*
* Description: Script activating the right tab when user click
*--------------------------------------------------------------*/

function SetTabVisible(name, visibleelem, numberofelem)
{
    for(i=0; i<numberofelem;i++)
    {
        document.getElementById(name + i).className = 'tab_hidden';
        document.getElementById(name + 'button' + i).className = 'tabbutton_off';
    }
    
    document.getElementById(name + visibleelem).className = 'tab_visible';
    document.getElementById(name + 'button' + visibleelem).className = 'tabbutton_on';
}
