
	function goOpenUrl(strURL) {
        if(strURL != "") {
            window.open(strURL,"","");
        }
    }

	//도움말팝업창
	function HelpPOPUp()
	{		
		window.open('/_Help/List.jsp','help1','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,titlebar=no, resizable=yes,width=606,height=651, top=10, left=250' );
	}
	
	//부분도움말팝업창
	function HelpSubUp(id)
	{
		var url;
		url="/_Help/View.jsp?topid=" + id;
		
		window.open(url,'help2','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,titlebar=no, resizable=yes,width=606,height=651, top=10, left=250' );
	}

	//유니코드폰트다운팝업창
	function FontDownUniCode()
	{
		window.open("/_Font/Font.jsp?font=unicode","_blank","scrollbars=no,status=no, resizable=no,width=400,height=500");
	}

	function UniEdit(str)
	{
		window.open(str,"_blank","scrollbars=no,status=no, resizable=no,width=400,height=400");
	}

	function FullInstall()
	{
		window.open("/_UniEditDown//FullInstall.jsp","_blank","scrollbars=no,status=no, resizable=no,width=380,height=495");
	}

	function CaptureInstall()
	{
		window.open("/_UniEditDown/CaptureInstall.jsp","_blank","scrollbars=no,status=no, resizable=no,width=400,height=400");
	} 
	
	//신출자폰트다운팝업창
	function FontDownShinChool()
	{
		window.open("/_Font/FontNew.jsp?","_blank","scrollbars=no,status=no, resizable=yes,width=400,height=600");
	}

	//문자입력기 팝업창
	function HanJaInsert()
	{
		try
		{	
			if(navigator.appName =="Microsoft Internet Explorer") {
				//COM_FIND.textfield.value = COM_FIND.uniData.WideText;
				document.HANJA.HanjaInput();
			}
		}
		catch(exception)
		{
			alert( exception );				
		}
		//window.open('/_Input/inputassist.htm?'+escape(document.COM_FIND.textfield.value) ,"_blank", 'toolbar=no,status=yes, width=570, height=480');
 
	}

	//통합검색 검증 부분
	function COM_FINDCHK(){
	
		if(navigator.appName =="Microsoft Internet Explorer") {
			COM_FIND.textfield.value = document.HANJA.value();
		}else {
			var textvalue;
			textvalue = document.getElementById("HANJA_N").value;
			COM_FIND.textfield.value = textvalue;
		}

	/*
		if(textvalue=='')
			COM_FIND.textfield.value = document.HANJA.value();
		else
			COM_FIND.textfield.value = textvalue;
	*/
		if(COM_FINDCHK_RET()){
			document.COM_FIND.submit();
		}
	 
	}

	function COM_FINDCHK_RET (){
		if(navigator.appName =="Microsoft Internet Explorer") {
			if(COM_FIND.textfield.value==''){
				alert("검색어를 입력해 주십시요.");
				//COM_FIND.textfield.focus();
				document.HANJA.focus();
				return false;
			}
			else
			{
				encodeURI(COM_FIND.textfield.value)
				return true;
			}
		}else {
			var textvalue = document.getElementById("HANJA_N").value;
			if(textvalue==""){
				alert("검색어를 입력해 주십시요.");				
				document.getElementById("HANJA_N").focus();
				COM_FIND.textfield.value=="";
				return false;
			}
			else
			{	COM_FIND.textfield.value = textvalue;
				encodeURI(COM_FIND.textfield.value)
				return true;
			}
			
		}
	}

	function showSubMenu(idx){
	var i;
			
		for(i=1; i<=totalMenuCnt; i++){
			if(idx==i){
			eval("document.all.Menu" + i +".style.visibility='visible'");
			}else{
			eval("document.all.Menu" + i +".style.visibility='hidden'");
		}
	}
		
}

	function showSubSubMenu(idx){
		var i;
		for(i=1; i<totalSubMenuCnt; i++){
			if(idx==i){
				if(eval("document.all.SubMenu"+i+"!=null") )
					eval("document.all.SubMenu" + i +".style.visibility='visible'");
			}else{
				if(eval("document.all.SubMenu"+i+"!=null") )
					eval("document.all.SubMenu" + i +".style.visibility='hidden'");
			}
		}
		
	}

	//마이메뉴,링크 사이트 화면 지우는 함수
	//hideMyMenu();
	//hideRsite();


	/*좌 팝업 처리*/
	var l_mymenu = 0;
	var l_rsite = 0;
	var top_zindex = 0;
	function showMyMenu(){
		
		if (navigator.appName =="Netscape") {
			p_mymenu.style.top = "5px"
			p_mymenu.style.right = "131px"			
			mymenuFrame.contentWindow.location.href = "/_MyMenu/MyMenu.jsp";

		}else if (navigator.appName =="Microsoft Internet Explorer") {
			mymenuFrame.location = "/_MyMenu/MyMenu.jsp";
		}

		MM_swapImage('Image47','','/__Inc_Image/IMG003.gif',1);		
		mymenu_area.style.display = "";
		l_mymenu = 1;
	}

	function hideMyMenu(){
		MM_swapImage('Image47','','/__Inc_Image/IMG002.gif',1);
		mymenu_area.style.display = "none";
		l_mymenu = 0;
	}

	function showRsite(){
		MM_swapImage('Image48','','/__Inc_Image/IMG005.gif',1);
		p_myrsite.style.zIndex = getMaxIndex();
		rsiteFrame.location = "/_MyMenu/Site.jsp";
		rsite_area.style.display = "";
		l_rsite = 1;
	}

	function hideRsite(){
		MM_swapImage('Image48','','/__Inc_Image/IMG004.gif',1);
		rsite_area.style.display = "none";
		l_rsite = 0;
	}

	function getMaxIndex(){
		var ret = 0;
		var idx1 = p_mymenu.style.zIndex;
	//	var idx2 = p_myrsite.style.zIndex;

	//	if(idx1 >= idx2)
			ret = idx1;
	//	else
	//		ret = idx2;

		ret = ret + 1
		return ret;
	}

		// 비교열람 화면 출력
	function goNLS(strYear,strMonth,strDay,strDMonth){
		var url;
		url="/ADD/ADD_NLS.jsp?year=" + strYear + "&month=" + encodeURI(strMonth) + "&day=" + strDay + "&dmonth=" + encodeURI(strDMonth); 

		window.open(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=yes,titlebar=no, resizable=yes,width=1020,height=750, top=10, left=250');
	}
			// 비교열람 화면 출력
	function goNLS2(strYear,strMonth,strDay,strDMonth){
		var url;
		url="/ADD2/ADD_NLS.jsp?year=" + strYear + "&month=" + encodeURI(strMonth) + "&day=" + strDay + "&dmonth=" + encodeURI(strDMonth); 

		window.open(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=yes,titlebar=no, resizable=yes,width=1024,height=750, top=10, left=250');
	}
