//----------------------------------------------------------
// Main Menu RollOver Styler
//----------------------------------------------------------
function MMLink_over(str) {
	str.style.fontSize="9pt";
	str.style.fontFamily="µ¸¿ò";
	str.style.color="#006699";
	//str.style.backgroundColor="#f5f5f5";
	str.style.textDecoration="underline";
}
function MMLink_out(str) {
	str.style.fontSize="9pt";
	str.style.fontFamily="µ¸¿ò";
	str.style.color="#333333";
	//str.style.backgroundColor="#f5f5f5";
	str.style.textDecoration="none";
}
//----------------------------------------------------------
// Sub Menu RollOver Styler
//----------------------------------------------------------
function SMLink_over(str) {
	str.style.fontSize="10pt";
	str.style.fontFamily="µ¸¿ò";
	str.style.color="#333333";
	//str.style.backgroundColor="#f5f5f5";
	str.style.textDecoration="underline";
}
function SMLink_out(str) {
	str.style.fontSize="10pt";
	str.style.fontFamily="µ¸¿ò";
	str.style.color="#333333";
	//str.style.backgroundColor="#f5f5f5";
	str.style.textDecoration="none";
}

function setUnderLine(str) {
	str.style.textDecoration="underline";
	str.style.color="#ff0000";
}
function setNoLine(str) {
	str.style.textDecoration="none";
	str.style.color="#999999";
}

//----------------------------------------------------------
// Show/Hide SubMenu Module
//----------------------------------------------------------
var flag = true;
function Display_subMenu(index, view, flag) {
	if (view == 'show') {
		if (flag) {
			if (navigator.userAgent.indexOf("MSIE") != -1) {		
				document.getElementById('Menu' + index).style.display='';
				flag = false;
			} else {
				location.href = "";
			}		
		} else {
			document.getElementById('Menu' + index).style.display='none';
			flag = true;		
		}
	} else if (view == 'hide') {
		if (flag) {
			document.getElementById('Menu' + index).style.display ='';
		} else {
			document.getElementById('Menu' + index).style.display = "none";	
		}
	}
}

//----------------------------------------------------------
// Value Setter
//----------------------------------------------------------
document.write ("<form name=vsFrm method=get>");
document.write ("<input type=hidden name=cnt1 value='<%=cntMNU%>'>");
document.write ("<input type=hidden name=cnt2>");
document.write ("<input type=hidden name=cnt3>");
document.write ("<input type=hidden name=cnt4>");
document.write ("<input type=hidden name=cnt5>");
document.write ("<input type=hidden name=cnt6>");
document.write ("<input type=hidden name=cnt7>");
document.write ("</form>");

//----------------------------------------------------------
// HyperLink
//	: Main Menu, Board Manager, Board Synchronize
// excepted form method post
//----------------------------------------------------------
function MMHLink(v1, v2, v3, v4, v5, v6, v7) {
	var frm = document.vsFrm;
	frm.cnt1.value = v1;
	frm.cnt2.value = v2;
	frm.cnt3.value = v3;
	frm.cnt4.value = v4;
	frm.cnt5.value = v5;
	frm.cnt6.value = v6;
	frm.cnt7.value = v7;
	frm.action = "board.asp";
	frm.submit();
}

//----------------------------------------------------------
// Board HyperLink : Content, Paging, Button
//----------------------------------------------------------
function BHLink(chMNU,cntURL,seqNum,nowPage,brdNum) {
	location.href="/_admin/main.asp?chMNU="+chMNU+"&cntURL="+cntURL+"&fNum="+seqNum+"&page="+nowPage+"&brdNum="+brdNum;	
}
