// JScript File

var thePressedTab1 = 'tab_11';
var thePressedTab2 = 'tab_12';
function PressTab(id1,id2)
{
    var currTabId = window.event.srcElement.id;  	
    if(currTabId.substr(0,3) != 'img')
    {
        var currTabIdArr = new Array();
        var thePressedTabArr = new Array();
        var strCmd='';
			
            window.event.cancelBubble =true;

            currTabIdArr = id1.split('_');
            thePressedTabArr = thePressedTab1.split('_');
			
            if(thePressedTabArr.length == 2)
            {
			
                //For the Tab
                if(thePressedTab1 =='tab_11')
                {
                  strCmd=thePressedTab1 + '.className ="clsTabItemStart";';
                }
                else
                {
                strCmd=thePressedTab1 + '.className ="clsTabItem";';
                }			
                eval (strCmd);
                strCmd=thePressedTab2 + '.className ="clsTabItem1";';			
                eval (strCmd);
    			
    			if(id1 =='tab_11')
                {	
                    strCmd = id1 + '.className ="clsTabItemDownStart";' ; 
                }
                else
                {
                    strCmd = id1 + '.className ="clsTabItemDown";' ; 
                } 
                eval(strCmd);
                strCmd = id2 + '.className ="clsTabItemDown1";' ;  
                eval(strCmd);

                //For the Tab Content	
                strCmd='tabc_' + thePressedTabArr[1] + '.style.display ="none";';
                eval (strCmd);                                                      
                strCmd='tabc_' + currTabIdArr[1] + '.style.display ="";';
                eval (strCmd);                                                      
    			
                //Store the Pressed Tab
                thePressedTab1=id1;
                thePressedTab2=id2;
            }
    }
	
}