
/*
var DoUrl="http://daejeon.yschool.go.kr/hms/DJ";
var CoUrl="http://deajeon.yschool.go.kr";
*/
/*
var DoUrl="http://deajeon.localhost:8088/hms/DJ";
var CoUrl="http://deajeon.localhost:8088";
*/
/**
var DoUrl="http://211.236.80.18/moj-web/hms/DJ";
var CoUrl="http://211.236.80.18/moj-web";
*/

/** top flash menu link*/
function fncTflamenu(Cat,Num){

	var gcat = Cat;
	var gnum = Num;

	if(gcat=="home"){//¸ÞÀÎÈ­¸é
		if(gnum=="1"){
			//document.location=DoUrl+"/index.jsp";
//			document.location=CoUrl;
			document.hmsForm.action = "/index.jsp";
	   		document.hmsForm.submit();
		}
	}


	if(gcat=="LP"){//¼Ö·Î¸ó·ÎÆÄÅ©¾È³»
		if(gnum=="1"){
			//document.location=DoUrl+"/LP/hmslpo0010.jsp";
			document.hmsForm.action = "/lawpark/law_introduce.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="2"){
			//document.location=DoUrl+"/LP/hmslpo0020.jsp";
			document.hmsForm.action = "/lawpark/facilities.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="3"){
			//document.location=DoUrl+"/LP/hmslpo0030.jsp";
			document.hmsForm.action = "/lawpark/map.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="4"){
			//document.location=DoUrl+"/LP/hmslpo0030.jsp";
			document.hmsForm.action = "/lawpark/map.jsp";
	   		document.hmsForm.submit();
		}

	}else if(gcat=="LT"){//¿ì¸®¹ý¿¬¼öÇÁ·Î±×·¥
		if(gnum=="1"){
			//document.location=DoUrl+"/LT/hmslto0010.jsp";
			document.hmsForm.action = "/training/plan.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="2"){
			//document.location=DoUrl+"/LT/hmslto0050.jsp";
			document.hmsForm.action = "/training/schedule.jsp";
			//document.hmsForm.action = "/HMSCIDJQnada.do?method=getCampList&boardCode=CAMP";
	   		document.hmsForm.submit();
		}else if(gnum=="3"){
			//document.location=DoUrl+"/LT/hmslto0090.jsp";
			document.hmsForm.action = "/training/camp.jsp";
			//document.hmsForm.action = "/HMSCIDJQnada.do?method=getAcademyList&boardCode=ACADEMY";
	   		document.hmsForm.submit();
		}else if(gnum=="4"){
			//document.location=DoUrl+"/LT/hmslto0160.jsp";
			document.hmsForm.action = "/training/academy.jsp";
			//document.hmsForm.action = "/HMSCIDJQnada.do?method=getTeacherList&boardCode=TEACHER";
	   		document.hmsForm.submit();
		}else if(gnum=="5"){
			//document.location=DoUrl+"/LT/hmslto0220.jsp";
			document.hmsForm.action = "/training/elementary.jsp";
			//document.hmsForm.action = "/HMSCIDJQnada.do?method=getServiceList&boardCode=SERVICE";

	   		document.hmsForm.submit();
		}else if(gnum=="6"){
			//document.location=DoUrl+"/LT/hmslto0280.jsp";
			document.hmsForm.action = "/training/middle.jsp";
			//document.hmsForm.action = "/HMSCIDJQnada.do?method=getEducationList&boardCode=EDUCATION";
	   		document.hmsForm.submit();
		}else if(gnum=="7"){
			//document.location=DoUrl+"/LT/hmslto0350.jsp";
			document.hmsForm.action = "/training/volunteer.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="8"){
			document.hmsForm.action = "/training/specialist.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="9"){
			document.hmsForm.action = "/training/guide.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="10"){
			document.hmsForm.action = "/training/my_schedule.jsp";
	   		document.hmsForm.submit();
	   	}
	}else if(gcat=="LE"){//¹ýÃ¼Çè°üÇÁ·Î±×·¥
		if(gnum=="1"){
		    document.hmsForm.boardCode.value = "NEW";
			document.hmsForm.action = "/experience/ex_guide.jsp";
	   		document.hmsForm.submit();
			//alert("ÁØºñÁßÀÔ´Ï´Ù.");
		}else if(gnum=="2"){
		    document.hmsForm.boardCode.value = "NEW";
			document.hmsForm.action = "/experience/look_around.jsp";
	   		document.hmsForm.submit();
			//alert("ÁØºñÁßÀÔ´Ï´Ù.");
		}else if(gnum=="3"){
		    document.hmsForm.boardCode.value = "NEW";
			document.hmsForm.action = "/experience/look_around.jsp";
	   		document.hmsForm.submit();
			//alert("ÁØºñÁßÀÔ´Ï´Ù.");
		}else if(gnum=="4"){
		    document.hmslist.boardCode.value = "NOTICE";
			document.hmslist.action = "/experience/application.jsp";
			document.hmslist.submit();
			//alert("ÁØºñÁßÀÔ´Ï´Ù.");
		}else if(gnum=="5"){
		    document.hmslist.boardCode.value = "NOTICE";
			document.hmslist.action = "/experience/pro_qna.jsp";
			document.hmslist.submit();
			//alert("ÁØºñÁßÀÔ´Ï´Ù.");
		}
	}else if(gcat=="LI"){//¹ý±³À°Á¤º¸¸¶´ç
		if(gnum=="1"){
			document.hmslist.boardCode.value = "DATA01";
			document.hmslist.action = "/gen/governing_data.jspp";
	   		document.hmslist.submit();
		}else if(gnum=="2"){
			//document.location=DoUrl+"/LI/hmslio0050.jsp";
			document.hmslist.boardCode.value = "DATA02";
			document.hmslist.action = "/gen/edu_data.jsp";
	   		document.hmslist.submit();
		}else if(gnum=="3"){
			//document.location=DoUrl+"/LI/hmslio0090.jsp";
			document.hmslist.boardCode.value = "DATA03";
			document.hmslist.action = "/gen/ex_data.jsp";
	   		document.hmslist.submit();
		}else if(gnum=="4"){
			//document.location=DoUrl+"/LI/hmslio0130.jsp";
			document.hmslist.boardCode.value = "DATA04";
			document.hmslist.action = "/gen/publish_data.jsp";
	   		document.hmslist.submit();
		}else if(gnum=="5"){
			//document.location=DoUrl+"/LI/hmslio0170.jsp";
			document.hmslist.boardCode.value = "DATA05";
			document.hmslist.action = "/gen/publish_data.jsp";
	   		document.hmslist.submit();
		}
	}else if(gcat=="NP"){//¾Ë¸²¸¶´ç
		if(gnum=="1"){
			document.hmslist.boardCode.value = "NEW";
			document.hmslist.action = "/know/photo.jsp";
	   		document.hmslist.submit();
		}else if(gnum=="2"){
			document.hmslist.boardCode.value = "NOTICE";
			document.hmslist.action = "/know/notice.jsp";
			document.hmslist.submit();
		}else if(gnum=="3"){
			//document.location=DoUrl+"/NP/hmsnpo0090.jsp";
			document.hmslist.action = "/know/speak.jsp";
	   		document.hmslist.submit();
	  	}
	}else if(gcat=="PI"){//Á¤º¸º¸È£
		if(gnum=="1"){
			document.hmsForm.boardCode.value = "";
			document.hmsForm.action = "/policy/improve.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="2"){
			document.hmsForm.boardCode.value = "";
			document.hmsForm.action = "/policy/protect.jsp";
			document.hmsForm.submit();
		}else if(gnum=="3"){
			//document.location=DoUrl+"";
			document.hmsForm.action = "/policy/copyright.jsp";
	   		document.hmsForm.submit();
			}else if(gnum=="4"){
			//document.location=DoUrl+"";
			document.hmsForm.action = "/policy/email.jsp";
	   		document.hmsForm.submit();
		}
	}else if(gcat=="PP"){//Âü¿©¸¶´ç
		if(gnum=="1"){
			//document.location=DoUrl+"/PP/hmsppo0010.jsp";
			document.hmslist.action = "/participation/speak.jsp";
	   		document.hmslist.submit();
		}else if(gnum=="2"){
			//document.location=DoUrl+"/PP/hmsppo0050.jsp";
			document.hmslist.action = "/participation/qna.jsp";
	   		document.hmslist.submit();
		}
	}else if(gcat=="LA"){//ÇÑ±¹¹ý¹®È­ÁøÈï¼¾ÅÍ
		if(gnum=="1"){
			//document.location=DoUrl+"/LA/hmslao0010.jsp";
			document.hmsForm.action = "/lawpark/center_introduce.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="2"){
			//document.location=DoUrl+"/LA/hmslao0020.jsp";
			document.hmsForm.action = "/lawpark/address.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="3"){
			//document.location=DoUrl+"/LA/hmslao0030.jsp";
			document.hmsForm.action = "/lawpark/vision.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="4"){
			//document.location=DoUrl+"/LA/hmslao0040.jsp";
			document.hmsForm.action = "/lawpark/organogram.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="5"){
			//document.location=DoUrl+"/LA/hmslao0040.jsp";
			document.hmsForm.action = "/lawpark/facilities.jsp";
	   		document.hmsForm.submit();
		}else if(gnum=="6"){
			//document.location=DoUrl+"/LA/hmslao0040.jsp";
			document.hmsForm.action = "/lawpark/map.jspp";
	   		document.hmsForm.submit();
		}
	}

}

function fncFamilySite(){
	document.hmsForm.action = "/siterelation/site_relation.jsp";
	document.hmsForm.submit();
}

function fncSiteMap(){
	document.hmsForm.action = "/sitemap/site_map.jsp";
	document.hmsForm.submit();
}

function fncAdminLogin(){
	document.hmsForm.action = "/HMSCODJDjeon.do?method=selectAdmLogin";
	document.hmsForm.submit();
}

function fncLogout() {
	    document.hmsForm.action = "/logout.jsp";
	    document.hmsForm.submit();
	}

	function fncLoginMember(){

		document.hmsForm.action = "/HMSMMDJDispatch.do?method=loginMemberView";
		document.hmsForm.submit();
	}


	function fncInsertMemberView() {
	    //½Ç¸íÀÎÁõ Ãß°¡
	    fncPopCheckRealName('HMSMMDJDispatch.do', 'insertMemberView');
	    //document.hmsForm.action = "/HMSMMDJDispatch.do?method=insertMemberView";
	    //document.hmsForm.submit();
	}

	function fncUpdateMemberView() {
	    document.hmsForm.action = "/HMSMMDJDispatch.do?method=updateMemberView";
   		document.hmsForm.submit();
   	}

   	function fncSearchIDPWD(){

   		document.hmsForm.action = "/HMSMMDJDispatch.do?method=searchIDPWDView";
   		document.hmsForm.submit();
   	}

	function fncAdmin(){
		document.hmsForm.action = "/HMSCIDJDispatch.do?method=selectDJAdmin";
		document.hmsForm.submit();
	}



//½Ç¸íÀÎÁõ Ãß°¡ ¿©±â¼­ºÎÅÍ ³¡±îÁö
//-------------------------------------------------------------------
// PopUp Window Open
//-------------------------------------------------------------------
function PopUpWindowOpen(surl, popupwidth, popupheight, winName, attribute)
{
	if( popupwidth  > window.screen.width )
		popupwidth = window.screen.width;
	if( popupheight > window.screen.height )
		popupheight = window.screen.height;

	if( isNaN(parseInt(popupwidth)) ){
		Top  = (window.screen.availHeight - 600) / 2;
		Left = (window.screen.availWidth  - 800) / 2;
	} else {
		Top  = (window.screen.availHeight - popupheight)  / 2;
		Left = (window.screen.availWidth  - popupwidth) / 2;
	}

	if (Top < 0) Top = 0;
	if (Left < 0) Left = 0;

	popupwidth = parseInt(popupwidth) + 10 ;
	popupheight = parseInt(popupheight) + 29 ;

	if(attribute == null || attribute == "") {
		attribute = "fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + Left + ",top=" + Top + ",width=" + popupwidth + ",height=" + popupheight;
	}

	popup_window = window.open(surl, winName , attribute)
	//popup_window.resizeTo(parseInt(popupwidth)+10, parseInt(popupheight)+29);
	popup_window.focus();
}

//pop ½Ç¸íÀÎÁõ
function fncPopCheckRealName(sAction, sMethod) {
	PopUpWindowOpen("", 574, 562, "CHECKNAME") ;
	document.moveForm.target = "CHECKNAME" ;

	document.moveForm.method.value = "checkRealNameView";
	document.moveForm.orginalAction.value = baseUrl + sAction  ;
	document.moveForm.orginalMethod.value = sMethod ;
	document.moveForm.formName.value = "moveForm";
	document.moveForm.reqReason.value = "10";	//Á¶È¸»çÀ¯¸¦ ¼³Á¤ÇÏ½Ê½Ã¿À. ( '10'-È¸¿ø°¡ÀÔ, '20'-±âÁ¸È¸¿ø È®ÀÎ, '30'-¼ºÀÎÀÎÁõ, '40'-ºñÈ¸¿ø È®ÀÎ, '90'-±âÅ¸ »çÀ¯ )
	document.moveForm.action = baseUrl + "HMSMMDispatch.do" ;
	document.moveForm.submit() ;


	document.moveForm.target = "_self" ;
}
