// JavaScript Document
function doSEWC(theTab,theGroup,thestyle,theaction,theopposite) { 
	var allPageTags=document.getElementsByTagName("*"); 
	for (i=0; i<allPageTags.length; i++) { 
		if (allPageTags[i].className.indexOf(theGroup) == 0) { 
			if (allPageTags[i].className == theGroup + theTab) { 
				eval("allPageTags[i].style." + thestyle + "='" + theaction + "'"); 
			} else { 
				eval("allPageTags[i].style." + thestyle + "='" + theopposite + "'"); 
			} 
		} 
	} 
	
	var x = 1;
	var theTabAsInt = parseInt(theTab);
	var tabIdName = "tab_" + x;
	
	while( document.getElementById(tabIdName) != null )
	{
	    if( x == theTabAsInt )
	    {
	        document.getElementById(tabIdName).className='tabs_on';  
	    }
	    else
	    {
	        document.getElementById(tabIdName).className='tabs_off';  
	    }
	    
	    x++;
	    tabIdName = "tab_" + x;
	}
	
	/*for (x = 1; x <= 5; x++) { 
		if (x == parseInt(theTab)) { 
			document.getElementById('tab_' + x.toString()).className='tabs_on';  
		} else { 
			document.getElementById('tab_' + x.toString()).className='tabs_off';  
		} 
	}*/ 
}