/* Author: 	Sean Harcar
   Note:	To add more tabs simply change the value of the variable 'numberOfTabs' equal to the total number of tabs on a page. For example if there
   were three tabs called 'tab1', 'tab2' and 'tab3' then the value of the variable 'numberOfTabs' would be set to the value '3'. If you 
   remove tabs from the page, this function would still work even if the value of 'numberOfTabs' is higher than the total number of tabs
   on the particular webpage. However, it is just good practice to set the value of 'numberOfTabs' equal to the total number of tabs on 
   the given webpage.

   Also note that the DSF framework will modify how this programming code may appear.
*/
function changeTab(id) {
	var elem1 = document.getElementById(id);

	var numberOfTabs = 30;
	while(numberOfTabs > 0) {
		var elem2 = document.getElementById('li' + numberOfTabs);
		if(elem2 != undefined)
			elem2.className = '';
		numberOfTabs--;
	}						
	
	if(elem1 != undefined){
		elem1.className = 'highlighted';
		var elementID='highlighted';}
	
	return elementID;
}
