function tabSetup(tabID,defNum) {
	//Tab Array Setup
	var tabAry = document.getElementById("tab" + tabID).getElementsByTagName("li");
	var imgAry = document.getElementById("tab" + tabID).getElementsByTagName("a");
	//Contents Array Setup
	var contAry = new Array();
	for(var i = 0; i < tabAry.length; i++) {
		contAry[i] = document.getElementById("cont" + tabID + (i+1));
	}
	//Setup
	for(i = 0; i < contAry.length; i++) {
		//Defalut
		if (i == (defNum-1)) imgAry[i].className = 'select';
		if (i !== (defNum-1)) contAry[i].style.display = 'none';
		//Tab Button
		tabAry[i].onclick = function(){
			tabChanger(this); return false;
		}
	}
	//Change System
	function tabChanger(obj) {
		//Select Tab
		var num;
		for(num = 0; num < tabAry.length; num++) {
			if (tabAry[num] === obj) break;
		}
		//Change flow
		for(var i = 0; i < contAry.length; i++) {
			if(i == num) {
				imgAry[num].className = 'select';
				contAry[num].style.display = 'block';
			}
			else{
				imgAry[i].className = null;
				contAry[i].style.display = 'none';
			}
		}
	}
}
