	function OnSiteTran()
	{
		var strUrl = document.getElementById("siteurl").value;
		if(strUrl.replace(/ /g,"")=="")
		{
			alert("¹ø¿ªÇÏ°íÀÚÇÏ´Â »çÀÌÆ®¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä");
			return;
		}
		window.open("/newNotii/webTrans/site_trans.jsp?s=EN-US&t=KO-KR&U="+strUrl,"NotiiWebTran","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=1000,height=700");
	}
	 
	function loadServerFileReadOnly()
	{	
		window.open("/newNotii/pop/file/popFileOpenReadOnly.jsp","folderPop","width=584,height=437,directories=no,toolbar=no ,status=no,scrollbars=no,menubar=no,location=no");
	}
	
	function userDic(){
		location.href = "/newNotii/userdic/user_dic_list.jsp";
	}
	
	function wizard_pop(){
		if(login_chk == "null"){
			alert("·Î±×ÀÎÈÄ ÀÌ¿ë °¡´ÉÇÑ ÆäÀÌÁö ÀÔ´Ï´Ù.");
			location.href="/newNotii/login/Login.jsp";
		}else{
			var win = open('wizard/wiz_start.jsp','wizard_pop','directories=no,toolbar=no ,status=no,scrollbars=no,menubar=no, width=780, height=550');	
		}
	}
	
	function js_ReadEvent()
	{
		location.href="/newNotii/board/notice/notice_read.jsp?idx=2";
	}
	
	function OnSearchChange()
	{
		if(MainForm.selSearch.value == "DIC")
		{
			document.getElementById("dic_bullet").style.display = "";
			document.getElementById("ex_bullet").style.display = "none";
			document.getElementById("dic_text").style.display = "";
			document.getElementById("ex_text").style.display = "none";
		}
		else
		{
			document.getElementById("dic_bullet").style.display = "none";
			document.getElementById("ex_bullet").style.display = "";
			document.getElementById("dic_text").style.display = "none";
			document.getElementById("ex_text").style.display = "";
		}
	}
	
	function OnSearch()
	{
		var SearchURL = "";
		var strSearchText = MainForm.searchText.value;
		
		if(MainForm.searchText.value.replace(/ /g,"")=="")
		{
			alert("°Ë»öÇÏ°íÀÚÇÏ´Â ´Ü¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			 return;
		}
		
		if(MainForm.selSearch.value == "DIC")
		{
			SearchURL = "/newNotii/dict/dict_search.jsp";
			location.href = SearchURL+"?Spell="+strSearchText;
		}
		else
		{
			SearchURL = "/newNotii/pop/exam/exam_search.jsp";
			location.href = SearchURL+"?text="+strSearchText;
		}
	}
	
	function OnDic(formName)
	{
		if(formName.Spell.value.replace(/ /g,"")=="")
		{
			alert("°Ë»öÇÏ°íÀÚÇÏ´Â ´Ü¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä"); 
			return;
		}
		if(input_check(formName))
		{
			formName.action = "/newNotii/dict/dict_search.jsp";
			formName.submit();
		}
		else
		{
			alert("ÇÑ±Û È¤Àº ¿µ¾î·ÎµÈ ÇÑ´Ü¾î¸¸ ÀÔ·ÂÀÌ °¡´ÉÇÕ´Ï´Ù.");
			return;
		}
	}
	
	function input_check(formName)
	{
		var strAlpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
		var strTempChar="";
		var strSpell = formName.Spell.value;
		var nSpellLen = strSpell.length;
		var nEngLen=0;
		var nKorLen=0;
		var bResult =false;
		for(var k=0; k < strSpell.length; k++)
		{
			var  op = strSpell.charAt(k)
			if(strAlpha.indexOf(op)>=0)
			{
				nEngLen++;
			}
			else
			{
				var n = strSpell.charCodeAt(k);
				if(n>=44032 && n<=55203) // ÇÑ±Û¹üÀ§
				{
					nKorLen++;		
				}
			}
		}
		if(nSpellLen==nEngLen)
		{
			bResult =true;
			formName.hdnLangCode.value="EK";
		}
		else if(nSpellLen==nKorLen)
		{
			formName.hdnLangCode.value="KE";
			bResult =true;
		}
		return bResult;
	}
	
	function OnSearchLink(strSearchText)
	{
		var SearchURL = "";
		
		if(MainForm.selSearch.value == "DIC")
		{
			SearchURL = "/newNotii/dict/dict_search.jsp";
			location.href = SearchURL+"?Spell="+strSearchText;
		}
		else
		{
			SearchURL = "/newNotii/pop/exam/exam_search.jsp";
			location.href = SearchURL+"?text="+strSearchText;
		}
	}
	
	function showIdStyle()
	{
		var strEmail = document.getElementById("txtEmail");
		if(strEmail.value == "E-mail ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")
			strEmail.value = "";

		strEmail.style.border = "1px solid #0d77b3";
	}
	
	function hiddenIdStyle()
	{
		var strEmail = document.getElementById("txtEmail");
		if(strEmail.value == "E-mail ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä." || strEmail.value == "")
			strEmail.value = "E-mail ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.";
		
		strEmail.style.border = "1px solid #CCCCCC";
	}
	
	function showPasswordStyle()
	{
		document.getElementById("txtPassword").style.border = "1px solid #0d77b3";
	}
	
	function hiddenPasswordStyle()
	{
		document.getElementById("txtPassword").style.border = "1px solid #CCCCCC";
	}
	
	function showSiteUrlStyle()
	{
		var strUrl = document.getElementById("siteurl").value;
		var objSiteURL = document.getElementById("siteurl").style;
			objSiteURL.backgroundImage = "";
			objSiteURL.backgroundRepeat = "";
			objSiteURL.backgroundPosition = "";
			
		if (document.all.item("siteurl").value == "")
		{
			document.all.item("siteurl").value = "http://";
			
			var objTR = document.all.item("siteurl").createTextRange();
			objTR.collapse(false);
			objTR.moveEnd("textedit");
			objTR.select();
			return false;
		}
	}
	
	function hiddenSiteUrlStyle()
	{
		var objSiteURL = document.getElementById("siteurl").style;
		
		if(document.getElementById("siteurl").value == "" || document.getElementById("siteurl").value == "http://")
		{
			objSiteURL.backgroundImage = "url(/newNotii/img/main/search_bg.gif)";
			objSiteURL.backgroundRepeat = "no-repeat";
			objSiteURL.backgroundPosition = "top center";
		}
			
		//document.getElementById("siteurl").value = "";
	}
	
	function showSearchStyle()
	{
		var objsearchText = document.getElementById("searchText").style;
			objsearchText.backgroundImage = "";
			objsearchText.backgroundRepeat = "";
			objsearchText.backgroundPosition = "";
	}
	
	function hiddenSearchStyle()
	{
		var objsearchText = document.getElementById("searchText").style;
		if(document.getElementById("searchText").value == "")
		{
			objsearchText.backgroundImage = "url(/newNotii/img/main/search_box_mark.gif)";
			objsearchText.backgroundRepeat = "no-repeat";
			objsearchText.backgroundPosition = "center";
		}
	}