function tabSwitch(tabSwitchOnId, tabSwitchOffId_aly){
	var tabSwitchCurrendtabOnId = '';
	if(tabSwitchCurrendtabOnId != tabSwitchOnId){
		tabSwitchCurrendtabOnId = tabSwitchOnId;
		
		var tabSwitchOnClassName = 'tabSwitchOn';
		var tabSwitchOffClassName = 'tabSwitchOff';
		var tabSwitchBtnHeadName = 'tabSwitch-btn-';
		var tabSwitchContentsHeadName = 'tabSwitch-contents-';

		tabSwitchOnBtnHtml =
			document.getElementById(tabSwitchBtnHeadName + tabSwitchOnId).innerHTML;

		tmpReOn = new RegExp(tabSwitchOnClassName);
		tmpReOff = new RegExp(tabSwitchOffClassName);
		if(tabSwitchOnBtnHtml.match(tmpReOff)){
			document.getElementById(tabSwitchBtnHeadName + tabSwitchOnId).innerHTML =
				tabSwitchOnBtnHtml.replace(tmpReOff, tabSwitchOnClassName);

		}else if(!tabSwitchOnBtnHtml.match(tmpReOn)){
			document.getElementById(tabSwitchBtnHeadName + tabSwitchOnId).innerHTML =
				'<span class="' + tabSwitchOnClassName + '">' + tabSwitchOnBtnHtml + '</span>';
		}
		document.getElementById(tabSwitchContentsHeadName + tabSwitchOnId).style.display = 'block';
		

		for(var i=0; i < tabSwitchOffId_aly.length; i++){
			tabSwitchOffBtnHtml =
				document.getElementById(tabSwitchBtnHeadName + tabSwitchOffId_aly[i]).innerHTML;

			if(tabSwitchOffBtnHtml.match(tmpReOn)){
				document.getElementById(tabSwitchBtnHeadName + tabSwitchOffId_aly[i]).innerHTML =
					tabSwitchOffBtnHtml.replace(tmpReOn, tabSwitchOffClassName);

			}else if(!tabSwitchOffBtnHtml.match(tmpReOff)){
				document.getElementById(tabSwitchBtnHeadName + tabSwitchOffId_aly[i]).innerHTML =
					'<span class="' + tabSwitchOffClassName + '">' + tabSwitchOffBtnHtml + '</span>';
			}

			document.getElementById(tabSwitchContentsHeadName + tabSwitchOffId_aly[i]).style.display = 'none';
		}
	}
}


