var switchedId;

function tabSwitch(id) {	
	
	if(switchedId != id) {
		var tabContent = document. tElementById(id);
		tabContent.style.display = 'block';		
		if(switchedId != null) {
			var switchedContent = document.getElementById(switchedId);
			switchedContent.style.display = 'none';
		}		
		switchedId = id;
	}
}

function setSwitchedTab(id) {
	switchedId = id;
	if(switchedId != null) {		
		var switchedContent = document.getElementById(switchedId);	
		if(switchedContent != null)	
			switchedContent.style.display = 'block';
	}	
}
