window.onload = function() {	cForm = new CForm(document.frm);	var aImgs = document.getElementsByName("mainTab");	cTab = new CImageGroup(aImgs);	cTab.createTab(clickTab, updateTab);}function updateTab() {	cTab.updateTab(this);	this.onmouseout = null;	changeTab(cTab.getPointer(this));}function changeTab(nIndex) {	document.getElementById("divTab" + nIndex).style.display = "block";	for(var i = 0; i < 4; i++) {		if(i != nIndex){			document.getElementById("divTab" + i).style.display = "none";		}	}}
function clickTab() {	var nIndex = cTab.getPointer(this);	if(nIndex == 0) {		getURL(infoURL + "introDept.jsp", new Array(new Array("pMenuCD", strInfoMenuCD), new Array("pDeptMenuCD", strMenuCD)));	} else if(nIndex == 1) {		getURL(noticeURL + "mctNoticeList.jsp", new Array(new Array("pMenuCD", strNoticeMenuCD), new Array("pType", strNoticeType)));	} else if(nIndex == 2) {		getURL(pressURL + "mctPressList.jsp", new Array(new Array("pMenuCD", strPressMenuCD), new Array("pType", strPressType)));	} else {		getURL(openURL + "openDataList.jsp", new Array("pMenuCD", strOpenMenuCD));
	}
}
function noticeView(strSeq) {	var aData = new Array(new Array("pMenuCD", strNoticeMenuCD), new Array("pSeq", strSeq), new Array("pType", strNoticeType), new Array("nMenuCD", "0301000000"));	getURL(noticeURL + "mctNoticeView.jsp", aData);}function pressView(strSeq) {	var aData = new Array(new Array("pMenuCD", strPressMenuCD), new Array("pSeq", strSeq), new Array("pType", strPressType), new Array("nMenuCD", "0302000000"));	getURL(pressURL + "mctPressView.jsp", aData);}
function openView(strSeq) {	var aData = new Array(new Array("pMenuCD", strOpenMenuCD), new Array("pSeq", strSeq));	getURL(openURL + "openDataView.jsp", aData);}
function infoView(strData, strDataCD) {	if(strDataCD != null) {		strMenuCD = strDataCD;	}	getURL(infoURL + "introDept.jsp", new Array(new Array("pMenuCD", strInfoMenuCD), new Array("pDeptMenuCD", strMenuCD), new Array("pTeamCD", strData)));}
