function chkdiv(divid){
	var chkid=document.getElementById(divid);
	if(chkid != null){return true;} else {return false;}
}
function nav_show(navID) {
	var tempID=""
	for (i=0;i<9;i++){
		tempID="nav"+i;
		if(chkdiv(tempID)){document.getElementById(tempID).style.display='none';}
	}
	navID="nav" + navID;
	if(chkdiv(navID)){document.getElementById(navID).style.display='';}
}
function navSetting(a,b) {
	var tempID=""
	for (i=0;i<9;i++){
		tempID="nav"+i;
		if(chkdiv(tempID)){document.getElementById(tempID).style.display='none';}
	}
	tempID="nav"+a;
	if(chkdiv(tempID)){document.getElementById(tempID).style.display='';}
	
	tempID="n"+a;
	document.getElementById(tempID).style.color="#ffffff";
	document.getElementById(tempID).style.backgroundColor="#ca0002";
	
	tempID="nav"+a+"_"+b;
	document.getElementById(tempID).style.color="#ca0002";
	document.getElementById(tempID).style.fontWeight="bolder";
	document.getElementById(tempID).style.textDecoration ="none";
	document.getElementById(tempID).removeAttribute("href");
}
