var currentBlock = 'tabBlock01';
var currentTab = 'tabItem01';

function changeTab(tabNum){
	var blockName = 'tabBlock' + tabNum;
	var itemName = 'tabItem' + tabNum;

	if(document.all){
		document.all(currentBlock).className = 'tabOther';
		document.all(blockName).className = 'tabCurrent';

		document.all(currentTab).className = '';
		document.all(itemName).className = 'current';
	}
	else if(document.getElementById){
		document.getElementById(currentBlock).className = 'tabOther';
		document.getElementById(blockName).className = 'tabCurrent';

		document.getElementById(currentTab).className = '';
		document.getElementById(itemName).className = 'current';
	}

	currentBlock = blockName;
	currentTab = itemName;
}
