/***************** 홈 *****************/
function goCompAnn(){
	//goDISURL('/fs/dis2/compann/DISCompAnnSrch.jsp', '010101');
	goDISSubPage('010101');
}
function goFundAnn(){
	//goDISURL('/fs/dis2/fundann/DISFundAnnSrch.jsp', '020101');
	goDISSubPage('020101');
}
function goCmpAnn(){
	//goDISURL('/fs/dis2/cmpann/DISGnrStutCmpSrch.jsp', '030101');
	goDISSubPage('030101');
}
function goEtcAnn(){
	//goDISURL('/fs/dis2/etcann/DISFrnFundCdInq.jsp', '040101');
	goDISSubPage('040101');
}
function goServiceGuide(){
	//goDISURL('/fs/dis2/srvc/DISBoardList.jsp', '050101');
	goDISSubPage('050101');
}
function goBoardList(){
    //goDISURL('/fs/dis2/srvc/DISBoardList.jsp', '060101');
    goDISSubPage('boardList');
}
function goFaqList(){
    //goDISURL('/fs/dis2/srvc/DISBoardList.jsp', '060101');
    goDISSubPage('faqList');
}
function goRptKindLaw(){
	//goDISURL('/fs/dis2/srvc/DISBoardList.jsp', '060101');
	goDISSubPage('rptKindLaw');
}
function goBoardList(){
	var strUrlDone;
	strUlrDone = "/fs/dis2/srvc/DISBoardList1.jsp";
	var left = (screen.width - 600) / 2;
    var top  = (screen.height - 437) / 2;
	window.open(strUlrDone,'popBoardList', 'height=680,width=880,menubar=no,toolbar=no,location=no,resizable=no,status=no,scrollbars=yes,top=' + top + ', left=' + left);

}

function goFAQ(){
	var strUrlDone;
	strUlrDone = "/fs/dis2/srvc/DISFAQListPop.jsp";
	var left = (screen.width - 600) / 2;
    var top  = (screen.height - 437) / 2;
	window.open(strUlrDone,'popFAQ', 'height=680,width=880,menubar=no,toolbar=no,location=no,resizable=no,status=no,scrollbars=yes,top=' + top + ', left=' + left);

}


function goRptKindLaw(){
	var strUrlDone;
	strUlrDone = "/fs/dis2/srvc/DISRptKindLawPop.jsp";
	var left = (screen.width - 600) / 2;
    var top  = (screen.height - 437) / 2;
	window.open(strUlrDone,'popRptKindLaw', 'height=680,width=880,menubar=no,toolbar=no,location=no,resizable=no,status=no,scrollbars=yes,top=' + top + ', left=' + left);

}

function goDISSubPage( pPageNum){
	if(pPageNum == 'UserGuide'       ) { goUserGuide(); }
	else if(pPageNum == 'WorkService') { goWORKService(); }
	else if(pPageNum == 'Home'       ) { goHome(); }
	else if(pPageNum == 'boardList'  ) { goBoardList(); }
	else if(pPageNum == 'faqList'    ) { goFAQ(); }
	else if(pPageNum == 'rptKindLaw' ) { goRptKindLaw(); }
	else if(pPageNum == 'siteMap'    ) { goDISURL('/fs/dis2/sitemap/DISSiteMap.jsp',pPageNum); }
	else if(pPageNum == 'preInvMain' ) { goDISURL('/fs/dis2/preInvestor_index.jsp',pPageNum); }
	else if(pPageNum == 'invMain'    ) { goDISURL('/fs/dis2/investor_index.jsp',pPageNum); }
	else if(pPageNum == 'proMain'    ) { goDISURL('/fs/dis2/professional_index.jsp',pPageNum); }
	else{
		var vsGoURL = "";
		var vDepth1 = "";
		var vDepth2 = "";
		var vDepth3 = "";
		var vDepth4 = "";
		var vDepth5 = "";
		var vPageNum = pPageNum;

		//DISMyMenuList.js에 정의된 페이지번호(pPageNum)에 해당하는 정보를 얻는다.
		var vaPageInfo = MyMenuInfo(pPageNum);

		if(vaPageInfo != null){
			vsGoURL  = vaPageInfo[2];
			vPageNum = vaPageInfo[0];

			var vsNewPgNo = vaPageInfo[3];
			var vaNewDepth = new Array();

			//숫자가 아닐 경우(문자) 숫자값으로 표현
			for (var i = 0; i < vsNewPgNo.length; i++) {
				if(vsNewPgNo.charAt(i).replace(/[1234567890.]/g, "") != ''){
					vaNewDepth[i] = vsNewPgNo.charCodeAt(i) - 55;
				}else{
					vaNewDepth[i] = vsNewPgNo.charAt(i);
				}
			}

			vDepth1 = vaNewDepth[1];
			vDepth2 = vaNewDepth[2];
			vDepth3 = vaNewDepth[3];
			vDepth4 = vaNewDepth[4];
			vDepth5 = vaNewDepth[5];
		}else{	//DISMyMenuList.js에 정의된 페이지정보가 존재하지 않을 경우
			vDepth1 = pPageNum.substr(1,1);
			vDepth2 = pPageNum.substr(2,1);
			vDepth3 = pPageNum.substr(3,1);
			vDepth4 = pPageNum.substr(4,1);
			vDepth5 = pPageNum.substr(5,1);
		}

		var vsParameter = vPageNum + '&Depth1='+vDepth1+'&Depth2='+vDepth2+'&Depth3='+vDepth3+'&Depth4='+vDepth4+'&Depth5='+vDepth5;

		goDISURL( vsGoURL, vsParameter );
	}
}

function goDISURL( pGoURL, pPageNum){
	if (parent && parent!=this)
	{
		if (parent.name == 'fraKOFIAMain')
		{
			parent.location.href = pGoURL + '?PageNum=' + pPageNum;
		}else
		{
			location.href = pGoURL + '?PageNum=' + pPageNum;
		}
	// 신메뉴링크시 메인플래시에서 이동할 수 있도록 추가함.(2010.11.10)
	}else {
		window.location.href = pGoURL + '?PageNum=' + pPageNum;
	}
}

function goUserGuide(){
	var strUrlDone;
	strUlrDone = "/fs/dis2/srvc/DISUserGuide.jsp";
	var left = (screen.width - 600) / 2;
    var top  = (screen.height - 437) / 2;
	window.open(strUlrDone,'popUserGuide', 'height=550,width=700,menubar=no,toolbar=no,location=no,resizable=no,status=no,scrollbars=yes,top=' + top + ', left=' + left);
}

function goWORKService(){
	var strUrlDone;
	strUlrDone = 'http://work.kofia.or.kr';
	window.open(strUlrDone, "workservice","");
}

function goReportGA()
{
	//goDISSubPage( "142100" );
//	location.href = "/fs/dis2/compann/DISCompAnnSrch.jsp?PageNum=010101&targetGb=R&uRptAllYN=0&uRptList='2RA04/영업보고서(GA)'&Depth1=4&Depth2=2&Depth3=1&Depth4=0&Depth5=0";
	location.href = "/fs/dis2/compann/DISCompAnnSrch.jsp?PageNum=010101&targetGb=R&uRptAllYN=0&uRptCd=2RA04&Depth1=4&Depth2=2&Depth3=1&Depth4=0&Depth5=0";
}

function goFundChange()
{
	goDISSubPage( "020302" );
}

function goHome() {  //홈
	top.window.location.href="/fs/dis2/html/index.html";
}

// ** 메인 퀵메뉴 ******************************************

function quickMenu1() {  //금융투자회사 영업보고서
	goReportGA();
}
function quickMenu2() {  //주요경영상황공시
	goDISSubPage( "010201" );
}
function quickMenu3() {  //수수료 부과 기준 및 절차
	goDISSubPage( "010303" );
}
function quickMenu4() {  //영업용순자본 비율
	goDISSubPage( "010305" );
}
function quickMenu5() {  //주요재무현황 비교공시
	goDISSubPage( "030205" );
}



/* 11.2 webconsulting .*/
function goDictionary(){
	var strUrlDone;
	strUlrDone = "/fs/dis2/com/DISComDictry.jsp";
	var left = (screen.width - 440) / 2;
    var top  = (screen.height - 435) / 2;
	window.open(strUlrDone,'popDic', 'height=435,width=440,menubar=no,toolbar=no,location=no,resizable=no,status=no,scrollbars=yes,top=' + top + ', left=' + left);

}
function goSiteMap()
{
	goDISSubPage('siteMap');
}
function goPreInvMain()
{
	goDISSubPage('preInvMain');
}
function goInvMain()
{
	goDISSubPage('invMain');
}
function goProMain()
{
	goDISSubPage('proMain');
}

