//
function switchCell(n) {
	nc=document.getElementsByName("panelcell"); 
	cg=document.getElementsByName("tabtable"); 
	if(nc){
		for(i=0;i<nc.length;i++){
			nc.item(i).className="Off1";
			cg.item(i).style.display = "none";
		}
		nc.item(n-1).className="On1";
		cg.item(n-1).style.display = "inline";
	}
}
function switchCell1(n) {
	nc=document.getElementsByName("panelcell1"); 
	cg=document.getElementsByName("tabtable1"); 
	if(nc){
		for(i=0;i<nc.length;i++){
			nc.item(i).className="Off2";
			cg.item(i).style.display = "none";
		}
		nc.item(n-1).className="On2";
		cg.item(n-1).style.display = "inline";
	}
}
function switchCell2(n) {
	nc=document.getElementsByName("panelcell2"); 
	cg=document.getElementsByName("tabtable2"); 
	if(nc){
		for(i=0;i<nc.length;i++){
			nc.item(i).className="Off2";
			cg.item(i).style.display = "none";
		}
		nc.item(n-1).className="On2";
		cg.item(n-1).style.display = "inline";
	}
}
function switchCell3(n) {
	nc=document.getElementsByName("panelcell3"); 
	cg=document.getElementsByName("tabtable3"); 
	if(nc){
		for(i=0;i<nc.length;i++){
			nc.item(i).className="PanelOffStyle";
			cg.item(i).style.display = "none";
		}
		nc.item(n-1).className="PanelOnStyle";
		cg.item(n-1).style.display = "inline";
	}
}
function switchCell4(n) {
	nc=document.getElementsByName("panelcell4"); 
	cg=document.getElementsByName("tabtable4"); 
	if(nc){
		for(i=0;i<nc.length;i++){
			nc.item(i).className="Off2";
			cg.item(i).style.display = "none";
		}
		nc.item(n-1).className="On2";
		cg.item(n-1).style.display = "inline";
	}
}
function switchCell5(n) {
	nc=document.getElementsByName("panelcell5"); 
	cg=document.getElementsByName("tabtable5"); 
	if(nc){
		for(i=0;i<nc.length;i++){
			nc.item(i).className="PanelOffStyle";
			cg.item(i).style.display = "none";
		}
		nc.item(n-1).className="PanelOnStyle";
		cg.item(n-1).style.display = "inline";
	}
}
function switchCell6(n) {
	nc=document.getElementsByName("panelcell6"); 
	cg=document.getElementsByName("tabtable6"); 
	if(nc){
		for(i=0;i<nc.length;i++){
			nc.item(i).className="PanelOffStyle";
			cg.item(i).style.display = "none";
		}
		nc.item(n-1).className="PanelOnStyle";
		cg.item(n-1).style.display = "inline";
	}
}
function switchCell7(n) {
	nc=document.getElementsByName("panelcell7"); 
	cg=document.getElementsByName("tabtable7"); 
	if(nc){
		for(i=0;i<nc.length;i++){
			nc.item(i).className="Off2";
			cg.item(i).style.display = "none";
		}
		nc.item(n-1).className="On2";
		cg.item(n-1).style.display = "inline";
	}
}
			
function tabit(tabName,btnId,tabNumber,styleName){
	for(i=0;i<tabNumber;i++){
		document.getElementById(tabName+"_div"+i).style.display = "none";
		document.getElementById(tabName+"_btn"+i).className = styleName+"_b";
	};
	document.getElementById(tabName+"_div"+btnId).style.display = "";
	document.getElementById(tabName+"_btn"+btnId).className = styleName+"_a";
}

function subSearch(){
	var kWord = document.getElementById("keywd").value;
	var nType = 1;
	var dType = 1;
	if(kWord==""){
		alert("ÇëÊäÈë¹Ø¼ü×Ö!");
		window.location.reload();
	}
	else{
		var Url = "/" + encodeURI(kWord)+"&nType="+ encodeURI(nType)+"&dType="+ encodeURI(dType);
		var obj = document.getElementById("search1");
		obj.action=Url;
		obj.submit();
	}
}