// UH »çÀÌÆ®¿ë ÇÔ¼ö

// ±â´É¼³¸í : ¸¶´õÆäÀÌÁö³» iframe ÆäÀÌÁö°ª Ã¼Å©ÈÄ http¿Í https·Î ÀüÈ¯ÇØÁÜ
// »ç¿ëÀ§Ä¡ : ¸¶´õÆäÀÌÁö
// 	var Com_Url_Domain = "<%=Com_Url_Domain%>";
//	var Com_Url_SecureDomain = "<%=Com_Url_SecureDomain%>";


// https·Î Ã³¸®ÇÒ ÁÖ¼Ò¸®½ºÆ® (¹è¿­·Î Ãß°¡ÇÏ¸é µÊ)
var Current_Pathname_Array = Array();
Current_Pathname_Array.push( "/Contents/MyPage/LoginMain.asp".toLowerCase() );			// ·Î±×ÀÎ
Current_Pathname_Array.push( "/Contents/MyPage/Loginmain_shortcheck.asp".toLowerCase() );	// ·Î±×ÀÎ
Current_Pathname_Array.push( "/Contents/MyPage/adduserDBNew.asp".toLowerCase() );			// ·Î±×ÀÎ
Current_Pathname_Array.push( "/Contents/MyPage/adduserform.asp".toLowerCase() );			// ·Î±×ÀÎ
Current_Pathname_Array.push( "/Contents/MyPage/Main.asp".toLowerCase() );			// ¸¶ÀÌÀ¯ÇÐ		
Current_Pathname_Array.push( "/Contents/MyPage/FindMember.asp".toLowerCase() );			// ¸¶ÀÌÀ¯ÇÐ		
Current_Pathname_Array.push( "/Contents/MyPage/Join.asp".toLowerCase() );			// ¸¶ÀÌÀ¯ÇÐ		


Current_Pathname_Array.push( "/Contents/MyPage/modiuser_c.asp".toLowerCase() );		// È¸¿øÁ¤º¸¼öÁ¤
Current_Pathname_Array.push( "/Contents/MyPage/find_idpwd_form.asp".toLowerCase() );		// È¸¿øÃ£±â
Current_Pathname_Array.push( "/Contents/MyPage/find_idpwd.asp".toLowerCase() );		// È¸¿øÃ£±â

Current_Pathname_Array.push( "/Contents/MyPage/myuhak_open1.asp".toLowerCase() );		// ¿Â¶óÀÎÈ¸¿øÀ¸·Î ·Î±×ÀÎ½ÃÃ¼Å©
Current_Pathname_Array.push( "/Contents/MyPage/myuhak_open2.asp".toLowerCase() );		// ¿ÀÇÁ¶óÀÎÈ¸¿øÀ¸·Î ·Î±×ÀÎ½ÃÃ¼Å©
Current_Pathname_Array.push( "/Contents/MyPage/autoOnlineRegister.asp".toLowerCase() );		// ¿ÀÇÁ¶óÀÎÈ¸¿øÀ¸·Î ·Î±×ÀÎ½ÃÃ¼Å©
Current_Pathname_Array.push( "/contents/Mypage/susokonlineregister.asp".toLowerCase() );		// ¿ÀÇÁ¶óÀÎÈ¸¿øÀ¸·Î ·Î±×ÀÎ½ÃÃ¼Å©


Current_Pathname_Array.push( "/Contents/MyPage/CancelMember.asp".toLowerCase() );		// Å»Åð
Current_Pathname_Array.push( "/Contents/MyPage/CkRealName14.asp".toLowerCase() );		// È¸¿øÀÎÁõ


Current_Pathname_Array.push( "/Contents/Online/reliance.asp".toLowerCase() );		// »ó´ã¿øÃßÃµÇÐ±³
Current_Pathname_Array.push( "/Contents/Online/reliance_view.asp".toLowerCase() );		// »ó´ã¿øÃßÃµÇÐ±³

Current_Pathname_Array.push( "/Contents/Common/Secure/UH_certifysend.asp".toLowerCase() );	// ½Ç¸íÀÎÁõ

Current_Pathname_Array.push( "/Contents/MyPage/Online/Apply_Complete.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/Apply_Customer_Basic.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/Apply_NoChoice.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/Apply_PayResult.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/Apply_Step1.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/Apply_Step2.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/Apply_Step3.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/Apply_Step4.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/ApplyNotPayCheck.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/Card_Info.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/Frameforpay.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/frameforpay_new.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/Online_Main.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/ProgrameBeginDate.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/MyPage/Online/treaty_content.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/e_school/schoolsave.asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó


Current_Pathname_Array.push( "/Contents/Board/Complain/Write.Asp".toLowerCase() );	// ¿Â¶óÀÎ¼ö¼Ó
Current_Pathname_Array.push( "/Contents/Board/QnA/Write.Asp".toLowerCase() );	// Qna
Current_Pathname_Array.push( "/Contents/Board/QnA/list.Asp".toLowerCase() );	// Qna
Current_Pathname_Array.push( "/Contents/Board/QnA/view.Asp".toLowerCase() );	// Qna
Current_Pathname_Array.push( "/Contents/Board/QnA/edit.Asp".toLowerCase() );	// Qna
Current_Pathname_Array.push( "/Contents/Board/QnA/write_confirm.Asp".toLowerCase() );	// Qna
Current_Pathname_Array.push( "/Contents/Board/QnA/del_confirm.Asp".toLowerCase() );	// Qna
Current_Pathname_Array.push( "/Contents/Board/QnA/edit_confirm.Asp".toLowerCase() );	// Qna
Current_Pathname_Array.push( "/Contents/Board/QnA/Pop_write.Asp".toLowerCase() );	// Qna
Current_Pathname_Array.push( "/Contents/Board/QnA/pop_write_cofirm.Asp".toLowerCase() );	// Qna
Current_Pathname_Array.push( "/Contents/Board/QnA/survey_confirm.Asp".toLowerCase() );	// Qna


Current_Pathname_Array.push( "/Contents/Test/SLEP/Index.Asp".toLowerCase() );	// SLEP
Current_Pathname_Array.push( "/Contents/Test/SLEP/SLEP_Complete.Asp".toLowerCase() );	// SLEP
Current_Pathname_Array.push( "/Contents/Test/SLEP/SLEP_FailCheck.Asp".toLowerCase() );	// SLEP
Current_Pathname_Array.push( "/Contents/Test/SLEP/SLEP_Form_Cancel.Asp".toLowerCase() );	// SLEP
Current_Pathname_Array.push( "/Contents/Test/SLEP/SLEP_Form_Confirm.Asp".toLowerCase() );	// SLEP
Current_Pathname_Array.push( "/Contents/Test/SLEP/SLEP_Move.Asp".toLowerCase() );	// SLEP
Current_Pathname_Array.push( "/Contents/Test/SLEP/SLEP_PayResult.Asp".toLowerCase() );	// SLEP

Current_Pathname_Array.push( "/contents/common/company/recruit_2010_realchk.asp".toLowerCase() );	// ÇØ¿Ü ¿µ¾î¿¬¼ö


var Secure_SI_KeyCodes = Array();
Secure_SI_KeyCodes.push( "UH0025".toUpperCase() ); // ¾îÇÐ°úÁ¤ Q&A
Secure_SI_KeyCodes.push( "UH0059".toUpperCase() ); // ÃÊÁß°íÀ¯ÇÐ Q&A

// ÀÌÀüÆäÀÌÁöÁÖ¼Ò
var Old_Location = ""


// ±â´É¼³¸í : ÆäÀÌÁöÁ¤º¸
// »ç¿ëÀ§Ä¡ : Çì´õ --> PageInfoSave("P")
//			  Location_IFramePage() --> PageInfoSave("M")
function PageInfoSave(PageType) {

	try {

		if (navigator.javaEnabled()>-1) jscript = "Y";
		else jscript = "N";

		if (navigator.cookieEnabled) cookie = "Y";
		else cookie = "N";

		var Current_Pathname = new String( document.location.pathname.toLowerCase() );	// /page.asp
		var Current_Search = new String( escape( document.location.search ) );		// ?a=1
		var Sys_JS = jscript
		var Sys_CK = cookie
		var Sys_SCR = new String( escape( screen.availWidth + "*" + screen.availHeight ) );		// ?a=1
		var Sys_CD = screen.colorDepth;		// ?a=1
		var Sys_AN = new String( escape( navigator.appName ) );
		var Sys_AV = new String( escape( navigator.appVersion ) );
		var Sys_UA = new String( escape( navigator.userAgent ) );
		var Sys_RE = new String( escape( document.referrer ) );

		if ( PageType == "M" ) {
			var Current_SI_Keycode =$('#Current_SI_Keycode').val();
		}
		else {

			if ( document.location.pathname.toLowerCase() == "/MotherPage.asp".toString().toLowerCase() )
				return;

			var Current_SI_Keycode =$('#Current_SI_Keycode', parent.document).val();
			if (Current_SI_Keycode == undefined) {
				Current_SI_Keycode =$('#Current_SI_Keycode', parent.parent.document).val();
			}

		}

		if (Current_SI_Keycode == undefined) {
			Current_SI_Keycode = "";
		}


		$.ajax({
			type:"post",
			cashe:false,
			//dataType: 'json',
			url: '/Contents/Tool/PageInfoSave.asp',
			data:"PageType=" + PageType + "&Current_SI_SiteCode=UH&Current_SI_Keycode=" + Current_SI_Keycode + "&Current_Pathname=" + Current_Pathname + "&Current_Search=" + Current_Search + "&Sys_JS=" + Sys_JS + "&Sys_CK=" + Sys_CK + "&Sys_SCR=" + Sys_SCR + "&Sys_CD=" + Sys_CD + "&Sys_AN=" + Sys_AN + "&Sys_AV=" + Sys_AV + "&Sys_UA=" + Sys_UA + "&Sys_RE=" + Sys_RE,
			error: function(err){
				//alert(err.responseText)
			},
			success: function(data){
				//alert(data)	
			},
			complete : function() {}

		}); 


	}
	catch(e) {}

}


function SecureDomainCheck()
{
	// "IFramePage" ¸¦ ÀÎ½Ä ¸øÇÒ ¶§°¡ ÀÖ´Â °Í °°À½
	if (document.getElementById("IFramePage") != null)
	{

		try {

			// °ª³Ö±â
			var Current_Location = new String( document.getElementById("IFramePage").contentWindow.location);			// http://uhak.com/page.asp?a=1
			var Current_Pathname = new String( document.getElementById("IFramePage").contentWindow.location.pathname.toLowerCase() );	// /page.asp
			var Current_Search = new String( document.getElementById("IFramePage").contentWindow.location.search);		// ?a=1
			var Current_Domain = new String( Current_Location.substring(0, Com_Url_Domain.length ) );


			if (Old_Location.toString().toLowerCase() != Current_Location.toString().toLowerCase()) {
				Old_Location = Current_Location;
				window.scroll(0,136);
			}

			// /iframepage.asp ´Â °Ë»öÇÏÁö ¾ÊÀ½
			if (Current_Pathname.toString().toLowerCase() != "/iframepage.asp")
			{


				// ¼Ò¹®ÀÚ·Î º¯È¯
				Current_Location = Current_Location.toLowerCase();


				// ¹è¿­°ª°ú ºñ±³ ÈÄ º¸¾ÈÆäÀÌÁö¸é Current_Flag °ª true Ã³¸®
				var Current_Flag = false;
				for (var sec_i=0;sec_i < Current_Pathname_Array.length ;sec_i++ )
				{
					if (Current_Pathname.toString().toLowerCase() == Current_Pathname_Array[sec_i].toString().toLowerCase() )
						Current_Flag = true;
				}


				var Current_Si_KeyCode = document.getElementById("Current_SI_Keycode").value;
				var Current_CPValue = Change_AnsiCode(Current_Pathname+Current_Search,"e");

				// CP°ª¿¡ °æ·Î°¡ //contents ¶ó°í µé¾î°¡´Â °æ¿ì°¡ ÀÖ¾î¼­ ÇØ´ç°æ¿ì //¸¦ »©ÁÜ
				if (Current_CPValue.substring(0,2) == "//")
					Current_CPValue = Current_CPValue.substring(1, Current_CPValue.length );

				// º¸¾ÈÆäÀÌÁö¸é
				if (Current_Flag == true)
				{
					// http ÇÁ·ÎÅäÄÝÀÌ¸é
					if (Current_Domain.toString() == Com_Url_Domain.toString())
					{
						var Current_LocationURL = Com_Url_SecureDomain + "MotherPage.asp?Si_KeyCode=" + Current_Si_KeyCode + "&CP=" + Current_CPValue ;
						//alert(Current_Flag + " : " + Current_LocationURL + " / " + Current_Location)
						//window.status = Current_Flag + " : " + Current_LocationURL + " / " + Current_Location
						document.location.href = Current_LocationURL;
						//document.getElementById("msg").innerHTML = Current_LocationURL;
					}
				}
				// º¸¾ÈÆäÀÌÁö°¡ ¾Æ´Ï¸é
				else
				{
					// https ÇÁ·ÎÅäÄÝÀÌ¸é 
					if (Current_Domain.toString() == Com_Url_SecureDomain.substring(0, Current_Domain.length).toString())
					{
						var Current_LocationURL = Com_Url_Domain + "MotherPage.asp?Si_KeyCode=" + Current_Si_KeyCode + "&CP=" + Current_CPValue ;
						//alert(Current_Flag + " : " + Current_LocationURL + " / " + Current_Location)
						//window.status = Current_Flag + " : " + Current_LocationURL + " / " + Current_Location
						document.location.href = Current_LocationURL;
						//document.getElementById("msg").innerHTML = Current_LocationURL;
					}
				}


			}

		}
		catch(e) {
		}

	}
}


// ±â´É¼³¸í : ¸¶´õÆäÀÌÁö ¾ÈÂÊ iframe »çÀÌÁî Á¶Á¤ ÄÁÆ®·Ñ
// »ç¿ëÀ§Ä¡ : ÁÂÃø¸Þ´º
// setInterval("IFrame_reSize('IFramePage',IFramePage);",100);
function IFrame_reSize() {
	var FrameObjName = arguments[0];	
	var FrameObj = arguments[1];
	var objBody = document.getElementById(FrameObjName);

	try {
		if (window.navigator.appName.indexOf("Explorer") !=-1)
		{
			objBody.style.height = FrameObj.document.body.scrollHeight;
			//document.getElementById("msgbox").innerHTML = 'iframe ¿µ¿ª ³ôÀÌ :'+ objBody.style.height;
		}
		else
		{
			objBody.height = objBody.contentDocument.body.offsetHeight;
			//document.getElementById("msgbox").innerHTML = 'iframe ¿µ¿ª ³ôÀÌ :'+ objBody.height;
		}
	}
	catch(e) {
	}

//	var now=new Date();
//	var str = "";
//	str+=now.getUTCMinutes()+'ºÐ ';
//	str+=now.getUTCSeconds()+'ÃÊ ';
//	str+=now.getUTCMilliseconds()+'ms'

//	window.status = "¸®»çÀÌÁî : " + str  + document.getElementById("IFramePage").contentWindow.location;

	SecureDomainCheck()  // º¸¾È ÆäÀÌÁö Ã¼Å©
}


// ±â´É¼³¸í : MotherPage¿¡ IFramePage ÇÁ·¹ÀÓ ºÎºÐ ÄÁÆ®·Ñ
// »ç¿ëÀ§Ä¡ : ÁÂÃø¸Þ´º
function Location_IFramePage()
{
	var SI_KeyCode, UT, CP, WT,IsUsePopUp;
	SI_KeyCode = arguments[0].toUpperCase();
	UT = arguments[1];
	CP = arguments[2];
	WT = arguments[3];	// m (¸¶´õÆäÀÌÁö 200 : 680 class=''),  n (¸¶´õÆäÀÌÁö 155 : 725 class='company') , w (À©µµ¿ì)
	IsUsePopUp = arguments[4];


	// ¹è¿­°ª°ú ºñ±³ ÈÄ Url_Domain µµ¸ÞÀÎ Ã³¸®
	var Url_Domain = Com_Url_Domain;

	for (var sec_i=0;sec_i < Secure_SI_KeyCodes.length ;sec_i++ )
	{
		if (SI_KeyCode.toString().toUpperCase() == Secure_SI_KeyCodes[sec_i].toString().toUpperCase() )
		{
			Url_Domain = Com_Url_SecureDomain;
			break;
		}
	}


	// ¸¶Áö¸· Å¬¸¯ÇÑ SI_Keycode °ª MotherPage ¸®·Îµå½Ã »ç¿ë
	document.getElementById("Current_SI_Keycode").value = SI_KeyCode;
	if (document.getElementById("IFramePage") != null) {

		if (Com_Main_SI_KeyCodes.indexOf(SI_KeyCode) == -1)
		{
			if (WT != "w")
			{
				//window.status = Com_Url_SecureDomain + "MotherPage.asp?SI_KeyCode="+SI_KeyCode+"&UT="+UT+"&CP="+CP;
				//alert(Com_Url_SecureDomain + "MotherPage.asp?SI_KeyCode="+SI_KeyCode+"&UT="+UT+"&CP="+CP);
				//if (Secure_SI_KeyCodes.indexOf(SI_KeyCode) > -1)
				//	document.location.href = Com_Url_SecureDomain + "MotherPage.asp?SI_KeyCode="+SI_KeyCode+"&UT="+UT+"&CP="+CP;
				//else
					var ColTB=document.getElementById("DisplayPopupTable");

					if (ColTB.rows.length >0)
					{
						ColTB.deleteRow(0);
					}

					document.getElementById("IFramePage").src = "/IFramePage.asp?SI_KeyCode="+SI_KeyCode+"&UT="+UT+"&CP="+CP;
					
					if (IsUsePopUp != "")
					{
						
						document.getElementById("PopupiFrame").src="/include/iFramePopup.Asp?Si_KeyCode="+SI_KeyCode;

					}
					

				document.getElementById("IFramePage").className = ""

			}
			else
				window.open( Url_Domain + "IFramePage.asp?SI_KeyCode="+SI_KeyCode+"&UT="+UT+"&CP="+CP );
		}
		else {
			location.href = Url_Domain + "MotherPage.Asp?Si_KeyCode=" + SI_KeyCode + "&CP=" + CP;
		}
	}
	else {

		// ¼­ºê¸ÞÀÎ¿ëÀÌ ¾Æ´Ï¸é
		if (Com_Main_SI_KeyCodes.indexOf(SI_KeyCode) == -1)
		{
			location.href = Url_Domain + "MotherPage.Asp?Si_KeyCode=" + SI_KeyCode + "&CP=" + CP;
		}
		else 
		{
			if (document.getElementById("IFrameSubMain") != null) // && UT == 'u'
				document.getElementById("IFrameSubMain").src = "/IFramePage.asp?SI_KeyCode="+SI_KeyCode+"&UT="+UT+"&CP="+CP;
			
			// 2009-07-15 Ãß°¡ 
			// ¼­ºê ¸ÞÀÎÀÏ¶§ ÆË¾÷Ã³¸®
			if (IsUsePopUp != "")
			{
				document.getElementById("PopupiFrame").src="/include/iFramePopup.Asp?Si_KeyCode="+SI_KeyCode;

			}

		}		
	}

//	PageInfoSave("M");
//	window.status = document.getElementById("IFramePage").src + " / " + document.getElementById("IFramePage").style.height;
}



// ±â´É¼³¸í : ÁÂÃø¸Þ´º ÄÁÆ®·Ñ
// »ç¿ëÀ§Ä¡ : ÁÂÃø¸Þ´º
function SelectMenu()
{
	// FF¿¡ childNodes »ç¿ëÀ» À§ÇØ ÅÂ±×°£ °ø¹éÀÌ ¾ø¾î¾ßÇÔ 

	// ¸Þ´º¸¦ µÑ·¯½Î°í ÀÖ´Â ¹Ú½º¸í
	var MenuBoxObj = document.getElementById("l_menu");

	var sDepth_1, sDepth_2, sDepth_3;
	sDepth_1 = arguments[0];
	sDepth_2 = arguments[1];
	sDepth_3 = arguments[2];

	var SI_KeyCode, UT, CP, WT,IsUsePopUp
	SI_KeyCode = arguments[3].toUpperCase();
	UT = arguments[4];
	CP = arguments[5];
	WT = arguments[6];	// m (¸¶´õÆäÀÌÁö 200 : 680 class=''),  n (¸¶´õÆäÀÌÁö 155 : 725 class='company') , w (À©µµ¿ì)
	IsUsePopUp = arguments[7];

	// ¸µÅ©µÈ ÁÖ¼Ò Ã³¸®
	if (WT != "w")
		Location_IFramePage( SI_KeyCode, UT, CP, WT, IsUsePopUp );


	// Å¸ÀÌÆ²
	var thisObj = document.getElementById( "L"+sDepth_1+sDepth_2+sDepth_3 );

	if (thisObj != null)
	{

		// ÆË¾÷ÀÌ¸é ÆË¾÷¸¸ Ã³¸®
		if (WT == "w") {
			window.open( "/IFramePage.asp?SI_KeyCode="+SI_KeyCode+"&UT="+UT+"&CP="+CP );
		}
		else {
			

			if (thisMovie("movie")) {

				var Flash_Title = "", Flash_Str_1, Flash_Link_1, Flash_Str_2, Flash_Link_2, Flash_Str_3, Flash_Link_3, Flash_Str_4, Flash_Link_4
				Flash_Title = thisObj.childNodes[0].innerHTML;
				
				var menuObjName, menuObjClickValue;
				// ³×ºñ°ÔÀÌÅÍ HOME > ÀÏº»À¯ÇÐµµ¿ì¹Ì > ¹æÇÐ¿¬¼ö > <span class="on">ÃßÃµ ÀÏº»¾î ÇÐ±³</span>
				var Navigator_Str;

				if (sDepth_2 == "000")
				{
					menuObjName = "L"+sDepth_1+"000000";
					menuObjClickValue = document.getElementById(menuObjName).firstChild.attributes['onclick'].value;
					Flash_Str_1 = document.getElementById( menuObjName ).childNodes[0].innerHTML;

					if (Flash_Str_1 != '') {
						Flash_Str_1 = '> ' + Flash_Str_1;
						Flash_Link_1 = 'javascript:' +  menuObjClickValue;

						//Flash_Str_1 = Flash_Str_1.innerHTML.replace(new RegExp("<\/?em>", "gi"), "").replaceAll("&amp;", "&").match("^[^ ]*"), true); 
					}
				}
				else
				{
					menuObjName = "L"+sDepth_1+"000000";
					menuObjClickValue = document.getElementById(menuObjName).firstChild.attributes['onclick'].value;
					Flash_Str_1 = document.getElementById( menuObjName ).childNodes[0].innerHTML;

					if (Flash_Str_1 != '') {
						Flash_Str_1 = '> ' + Flash_Str_1;
						Flash_Link_1 = 'javascript:' +  menuObjClickValue;

						//Flash_Str_1 = Flash_Str_1.replaceAll("&amp;", "&").match("^[^ ]*"); 				
					}

					// http://www2.uhak.com/MotherPage.Asp?Si_KeyCode=UH0127&CP=/

					if (sDepth_3 == "000")
					{
						menuObjName = "L"+sDepth_1+sDepth_2+"000";
						menuObjClickValue = document.getElementById(menuObjName).firstChild.attributes['onclick'].value;
						Flash_Str_2 = document.getElementById( menuObjName ).childNodes[0].innerHTML;

						if (Flash_Str_2 != '') {
							Flash_Str_2 = '> ' + Flash_Str_2;
							Flash_Link_2 = 'javascript:' +  menuObjClickValue;			
						}
					}
					else
					{
						menuObjName = "L"+sDepth_1+sDepth_2+"000";
						menuObjClickValue = document.getElementById(menuObjName).firstChild.attributes['onclick'].value;
						Flash_Str_2 = document.getElementById( menuObjName ).childNodes[0].innerHTML;

						if (Flash_Str_2 != '') {
							Flash_Str_2 = '> ' + Flash_Str_2;
							Flash_Link_2 = 'javascript:' +  menuObjClickValue;			
						}
						
						menuObjName = "L"+sDepth_1+sDepth_2+sDepth_3;
						menuObjClickValue = document.getElementById(menuObjName).firstChild.attributes['onclick'].value;
						Flash_Str_3 = document.getElementById( menuObjName ).childNodes[0].innerHTML;

						if (Flash_Str_3 != '') {
							Flash_Str_3 = '> ' + Flash_Str_3;
							Flash_Link_3 = 'javascript:' +  menuObjClickValue;			
						}
					}
				}


				if (!Flash_Str_1) {
					Flash_Str_1 = "";
					Flash_Link_1 = "";
				}
				if (!Flash_Str_2) {
					Flash_Str_2 = "";
					Flash_Link_2 = "";
				}
				if (!Flash_Str_3) {
					Flash_Str_3 = "";
					Flash_Link_3 = "";
				}
				if (!Flash_Str_4) {
					Flash_Str_4 = "";
					Flash_Link_4 = "";
				}

				var regexp=/&amp;/g;
				Flash_Title = Flash_Title.replace(regexp,"&");
				Flash_Str_1 = Flash_Str_1.replace(regexp,"&");
				Flash_Str_2 = Flash_Str_2.replace(regexp,"&");
				Flash_Str_3 = Flash_Str_3.replace(regexp,"&");
				Flash_Str_4 = Flash_Str_4.replace(regexp,"&");

				callExternalInterface(Flash_Title, Flash_Str_1, Flash_Link_1, Flash_Str_2, Flash_Link_2, Flash_Str_3, Flash_Link_3, Flash_Str_4, Flash_Link_4);
			}

			// callExternalInterface('¼­¿ï Á¾·ÎÁö»ç','> ¹Ì±¹', 'http://www.naver.com', '> ¾îÇÐ°úÁ¤', '¾îÇÐ¸µÅ©','> ÇÁ·Î±×·¥º° ÃßÃµÇÐ±³', 'http://www.cyworld.com', '> ¸í¹®ÇÐ±³ ´Ü±â ºñÁî´Ï½º °úÁ¤','°úÁ¤¸µÅ©');



			// className ÃÊ±âÈ­
			for (var i=0;i<MenuBoxObj.getElementsByTagName("LI").length;i++ )
				MenuBoxObj.getElementsByTagName("LI")[i].className = "off";

			// ´Ü°èº° display Ã³¸®
			// 1´Ü°è´Â ¹«Á¶°Ç º¸ÀÎ´Ù
			// 2´Ü°è´Â 1´Ü°è ¼±ÅÃ½Ã º¸ÀÎ´Ù
			// 3´Ü°è´Â 1´Ü°è, 2´Ü°è ¼±ÅÃ½Ã º¸ÀÎ´Ù

			// 2´Ü°èÃ³¸® ½ÃÀÛ
			var MenuBoxObj_Depth1 = MenuBoxObj.childNodes[0];
			for (var i=0;i<MenuBoxObj_Depth1.childNodes.length ;i++ )
			{
				var MenuBoxObj_Depth2 = MenuBoxObj_Depth1.childNodes[i];
				if (MenuBoxObj_Depth2.id.substring(0,4) == "L" + sDepth_1)
				{

					for (var j=0;j<MenuBoxObj_Depth2.childNodes.length ;j++ )
					{
						var MenuBoxObj_Depth3 = MenuBoxObj_Depth2.childNodes[j];
						if (MenuBoxObj_Depth3.nodeName == "UL")
						{
							// 3´Ü°èÃ³¸® ½ÃÀÛ
							for (var k=0;k<MenuBoxObj_Depth3.childNodes.length ;k++ )
							{

								var MenuBoxObj_Depth4 = MenuBoxObj_Depth3.childNodes[k];
								if (MenuBoxObj_Depth4.id.substring(0,7) == "L" + sDepth_1 + sDepth_2)
								{
									for (var l=0;l<MenuBoxObj_Depth4.childNodes.length ;l++ )
									{
										if (MenuBoxObj_Depth4.childNodes[l].nodeName == "UL")
											MenuBoxObj_Depth4.childNodes[l].style.display = "block";
									}
								}
								else
								{
									for (var l2=0;l2<MenuBoxObj_Depth4.childNodes.length ;l2++ )
									{
										if (MenuBoxObj_Depth4.childNodes[l2].nodeName == "UL")
											MenuBoxObj_Depth4.childNodes[l2].style.display = "none";
									}
								}

							}
							// 3´Ü°èÃ³¸® ³¡

							MenuBoxObj_Depth3.style.display = "block";
						}
					}
				}
				else
				{
					for (var j2=0;j2<MenuBoxObj_Depth2.childNodes.length ;j2++ )
					{
						if (MenuBoxObj_Depth2.childNodes[j2].nodeName == "UL")
							MenuBoxObj_Depth2.childNodes[j2].style.display = "none";
					}
				}
			}
			// 2´Ü°èÃ³¸® ³¡


			// ¼±ÅÃÇÑ className ÁöÁ¤
			document.getElementById("L" + sDepth_1 + "000000").className = "on";
			document.getElementById("L" + sDepth_1 + sDepth_2 + "000").className = "on";
			document.getElementById("L" + sDepth_1 + sDepth_2 + sDepth_3 ).className = "on";

			} // if (arguments[6] == "w") {} else
		}
		
		// ¸µÅ©µÈ ÁÖ¼Ò Ã³¸®
		//if (WT != "w")
		//	Location_IFramePage( SI_KeyCode, UT, CP, WT, IsUsePopUp );
}



// ±â´É¼³¸í : ¸¶´õÆäÀÌÁö CP°ª º¯°æÀ» À§ÇÑ ½ºÅ©¸³Æ® (asp·Îµµ °°ÀºÀÌ¸§ÀÇ ÇÔ¼ö ÀÖÀ½)
// »ç¿ëÀ§Ä¡ : ¸¶´õÆäÀÌÁö & ¿ÞÂÊ ¸Þ´º
function Change_AnsiCode()
{
	var Url_Value = arguments[0];
	var Action_Value = arguments[1];
	var Param_Value = "";
	var Return_Url_Value = "/"

	if (Action_Value != undefined) // && Action_Value.length > 0
	{
		if (Action_Value.substring(0,1).toLowerCase().toString() == "e")
		{
			//if (Url_Value.indexOf("?") > -1)
			//{
			//	Param_Value = Url_Value.substring( Url_Value.indexOf("?"), 100000)
			//	Url_Value = Url_Value.substring( 0, Url_Value.indexOf("?") )

			//	Param_Value = Param_Value.replace(/\?/gi, "AnsiCode" + ( "?".charCodeAt(0) ) );
			//	Param_Value = Param_Value.replace(/\&/gi, "AnsiCode" + ( "&".charCodeAt(0) ) );
			//	Param_Value = Param_Value.replace(/\=/gi, "AnsiCode" + ( "=".charCodeAt(0) ) );
			//}

			Url_Value = Url_Value.replace(/\?/gi, "AnsiCode" + ( "?".charCodeAt(0) ) );
			Url_Value = Url_Value.replace(/\&/gi, "AnsiCode" + ( "&".charCodeAt(0) ) );
			Url_Value = Url_Value.replace(/\=/gi, "AnsiCode" + ( "=".charCodeAt(0) ) );
			Url_Value = Url_Value.replace(/\'/gi, "AnsiCode" + ( "'".charCodeAt(0) ) );

		}
		else
		{
			Url_Value = Url_Value.replace(/AnsiCode63/gi, "?" );
			Url_Value = Url_Value.replace(/AnsiCode38/gi, "&" );
			Url_Value = Url_Value.replace(/AnsiCode61/gi, "=" );
			Url_Value = Url_Value.replace(/AnsiCode39/gi, "'" );
		}

		Return_Url_Value = Url_Value // + Param_Value
	}
	return Return_Url_Value;
}




// ±â´É¼³¸í : Æû °ªÀ» ºñ±³ÇÏ¿© Å©±â°¡ °°À»°æ¿ì ´ÙÀ½ ÆûÀ¸·Î ÀÌµ¿
// »ç¿ëÀ§Ä¡ : È¸¿ø°¡ÀÔÆû
function autotab(original, destination) 
{
	if (original.getAttribute && original.value.length == original.getAttribute("maxlength"))
	destination.focus();
}


// ±â´É¼³¸í : ÁÖ¼Ò °Ë»ö
// »ç¿ëÀ§Ä¡ : È¸¿ø°¡ÀÔÆû 
function FindPostCode( vForm, vPost, vAddress ){

	var dest = "/common/searchPost/searchMain.asp?FormName="+vForm+"&PostName="+vPost+"&AddressName="+vAddress
	var WO = window.open(dest, "FindPost", "scrollbars=yes,toolbar=no,location=no,directories=no,width=600,height=500,resizable=no,mebar=no,left=250,top=65");

	WO.focus();
}


// ±â´É¼³¸í : ÇÐ±³Á¤º¸ÆäÀÌÁö·Î ÀÌµ¿
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â
// SchoolInfo(ÇÐ±³ÄÚµå,ÇöÀçÆÄÀÏÀ§Ä¡ (MotherPage iframe ±âÁØ),Ãß°¡ ÆÄ¶ó¸ÞÅÍ°ª)
// SchoolInfo("UH0095","in","test=tesvalue&test=tesvalue&test=tesvalue&test=tesvalue")
// SchoolInfo("UH0095","out","test=tesvalue")
function SchoolInfo()
{
	var schoolNo = arguments[0];
	var inOut = arguments[1];
	var addParam = arguments[2];

	var Si_KeyCode;
	var schoolNationCode = schoolNo.substring(0,2).toUpperCase().toString();
	
	if (schoolNationCode == 'US')
		Si_KeyCode = 'UH0023'
	else if (schoolNationCode == 'CA')
		Si_KeyCode = 'UH0076'
	else if (schoolNationCode == 'UK')
		Si_KeyCode = 'UH0211'
	else if (schoolNationCode == 'IR')
		Si_KeyCode = 'UH0211'
	else if (schoolNationCode == 'AU')
		Si_KeyCode = 'UH0164'
	else if (schoolNationCode == 'NZ')
		Si_KeyCode = 'UH0164'
	else if (schoolNationCode == 'PH')
		Si_KeyCode = 'UH0256'
	else if (schoolNationCode == 'SW')
		Si_KeyCode = 'UH0269'
	else 
		Si_KeyCode = 'UH0023'

	if (!inOut)
		inOut = "in"

	if (!addParam) 
		addParam = "";
	else
		addParam = "&" + addParam;

	var CP = Change_AnsiCode("/Contents/E_School/School_Info/Schoolinfo.asp?schoolno=" + schoolNo + addParam, "Encode");
	var locationUrl = Com_Url_Domain + "MotherPage.Asp?SI_KeyCode=" + Si_KeyCode + "&CP=" + CP;

	if (inOut.toLowerCase().substring(0,1) == "o")
		document.location.href = locationUrl;
	else if (inOut.toLowerCase().substring(0,1) == "b")
		window.open(locationUrl);
	else
		parent.document.location.href = locationUrl;
}

// ±â´É¼³¸í : ÆäÀÌÁö·Î ÀÌµ¿
// »ç¿ëÀ§Ä¡ : RIA ÆäÀÌÁö °Ë»ö ÀÌµ¿¿ë
function PageInfo() {

	if (arguments[1]) {
		if (arguments[1] == "blank") {
			window.open(Com_Url_Domain + "MotherPage.Asp?SI_KeyCode=" + arguments[0]);
		}
		else {
			document.location.href = Com_Url_Domain + "MotherPage.Asp?SI_KeyCode=" + arguments[0] + "&CP=/IFramePage.asp?UT=c&CFileName=" + arguments[1];			
		}
	}
	else {
		document.location.href = Com_Url_Domain + "MotherPage.Asp?SI_KeyCode=" + arguments[0];		
	}
}

// ±â´É¼³¸í : ÆäÀÌÁö ¸®·Îµå
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â / ±Û¾²±âµîÀÇ ³»¿ë Ã³¸® ÈÄ ÇØ´ç ³»¿ëÀ¸·Î º¸³¾ ¶§ ( SI_Keycode °¡ ¹Ù²î´Â ¸µÅ©³ª list ÆäÀÌÁöµîÀÌ ¾ø¾î¼­ º¸³¾ °÷ÀÌ ¾ø´Â Ã³¸® ÆäÀÌÁöÀÇ °æ¿ì)
// PageReload('ÇØ´ç ÇÐ±³Á¤º¸°¡ ¾ø¾î ÇÐ±³Ã£±â ÆäÀÌÁö·Î ÀÌµ¿ÇÕ´Ï´Ù.');
function PageReload()
{
	// ¾Ë¸² ¸Þ½ÃÁö°¡ ÀÖÀ¸¸é Ãâ·Â
	if (arguments[0])
		alert(arguments[0]);

	if (parent.document.getElementById("Current_SI_Keycode") == null)
	{
		parent.document.location.href = "/"
	}
	else
	{
		// ¸¶Áö¸· Å¬¸¯ÇÑ SI_Keycode°ª
		var Current_SI_Keycode = parent.document.getElementById("Current_SI_Keycode").value;
		parent.document.location.href = "/MotherPage.Asp?SI_KeyCode=" + Current_SI_Keycode;		
	}
}

// ±â´É¼³¸í : ASP ¿¡¼­ Instr ±â´É ºñ½º¹«¸®~ 
// »ç¿ëÀ§Ä¡ :  ¿©±âÀú±â Ajax ºÒ·¯¿Í¼­ ±¸ºÐÀÚ¸¦ Ã£À»°æ¿ì~ 
function Instr(strValue,SearchChar)
{
    for (j=0;j<strValue.length;j++){
        if(SearchChar == strValue.substring(j,j+1)){
            return j+1;
        }
    }
    return -1;
}


// ±â´É¼³¸í : ¸µÅ©°É¸° ÀÌ¹ÌÁö¿¡ Æ÷Ä¿½º ¾ø¾Ö±â
// »ç¿ëÀ§Ä¡ : »çÀÌÆ® ÀüÃ¼
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;


// ±â´É¼³¸í : ÇöÀç ÆäÀÌÁö ÆÄ¶ó¹ÌÅÍ°ª º¯°æÈÄ ¹ÝÈ¯ 
// »ç¿ëÀ§Ä¡ : °Ô½ÃÆÇ·ùÀÇ ÆäÀÌÁö (¿¹¸¦ µé¾î ¸®½ºÆ®¿¡¼­ º¸±âÆäÀÌÁö·Î ÆÄ¶ó¹ÌÅÍ¸¦ ³Ñ°å´Ù°¡ º¸±âÆäÀÌÁö¿¡¼­ ¸®½ºÆ®³ª ¼öÁ¤À¸·Î ±×°ªÀ» ±×´ë·Î ³Ñ±â°Å³ª Æ¯Á¤°ª¸¸ ¼öÁ¤ÇØ¼­ ³Ñ°Ü¾ß ÇÒ ¶§ »ç¿ë )
// GetParam(¹Ù²Ü º¯¼ö {ÇÊ¼ö}, ¹Ù²Ü º¯¼ö °ª  {ÇÊ¼ö or null}, ÆÄ¶ó¹ÌÅÍ  {¼±ÅÃ})
// ?TEST1=1&TEST2=2&TEST3=3
// UFN_GetParam("TEST3", "4") ==> ?TEST1=1&TEST2=2&TEST3=4
function UFN_GetParam()
{
	var Replace_Key = arguments[0];		// ¹Ù²Ü º¯¼ö
	var Repalce_Value = arguments[1];	// ¹Ù²Ü º¯¼ö °ª ( null ÀÌ¸é ÇØ´ç º¯¼ö »èÁ¦ )
	var Get_Param = arguments[2];		// ÆÄ¶ó¹ÌÅÍ

	if (Replace_Key == "") return this.location.search;

	if (Get_Param == "" || Get_Param == undefined)	// ³Ñ°Ü¹ÞÀº ÆÄ¶ó¹ÌÅÍ°ªÀÌ ¾øÀ¸¸é ÇöÀç°ª
		Get_Param = this.location.search.substring(1,10000);

	var Arr_Get_Param = Get_Param.split("&");

	var Return_Param = "";
	var Replace_OK = true;
	for (var i=0;i<Arr_Get_Param.length ;i++ )
	{
		if (Arr_Get_Param[i] != "") // ÆÄ¶ó¹ÌÅÍ°¡ ¾øÀ¸¸é ½ÇÇà ¾ÈÇÔ ( =undefined ¸¦ ¹ÝÈ¯ÇØ¼­ ½ÇÇà ¾ÈÇÔ)
		{
			var Arr_Param = Arr_Get_Param[i].split("=");
			if (Arr_Param[0] == Replace_Key)
			{
				if (Repalce_Value != null)
					Return_Param = Return_Param + "&" + Arr_Param[0] + "=" + Repalce_Value;

				Replace_OK = false;
			}
			else
				Return_Param = Return_Param + "&" + Arr_Param[0] + "=" + Arr_Param[1];
		}
	}

	if (Replace_OK) // ÇØ´ç º¯¼ö°¡ ¾ø¾î¼­ º¯°æÀ» ¸øÇßÀ¸¸é Ãß°¡ÇÔ
		Return_Param = Return_Param + "&" + Replace_Key + "=" + Repalce_Value;


	Return_Param = Return_Param.substring(1,10000)
	
	return Return_Param;
}


// ±â´É¼³¸í : ÆË¾÷ ¶ç¿ì±â
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â
// toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no, scollbars=no, width=100, height=100, left=0, top=0
function window_open()
{
	var popUrl, popName

	if (arguments[0])
	{
		popUrl = arguments[0];
		popName = arguments[1];
		if (arguments[2])
			var windowObj = window.open(popUrl,popName,arguments[2]);
		else
			var windowObj = window.open(popUrl,popName);

		windowObj.focus();
	}
}


// ±â´É¼³¸í : »ó´Ü °Ë»ö ºÎºÐ Ã³¸®
// »ç¿ëÀ§Ä¡ : motherpage.asp °Ë»öºÎºÐ
function TopSearch()
{
	if (document.getElementById("topSearchText").value.replace(/ /gi,"").length == 0)
	{
		alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
		document.getElementById("topSearchText").focus();
		return;
	}
	var CPValue = "/Contents/Search/TopSearch.Asp?Search_Word=" + document.getElementById("topSearchText").value;
	document.location.href = Com_Url_Domain + "Motherpage.asp?SI_KeyCode=UH0241&CP=" + Change_AnsiCode( CPValue , "Encode" );
}



// ±â´É¼³¸í : ÆË¾÷°ü¸®¿ë
// »ç¿ëÀ§Ä¡ : main.asp 
function notice_getCookie( name )
{
		var nameOfCookie = name + '=';
		var x = 0;
		while ( x <= document.cookie.length )
		{
				var y = (x+nameOfCookie.length);
				if ( document.cookie.substring( x, y ) == nameOfCookie ) {
						if ( (endOfCookie=document.cookie.indexOf( ';', y )) == -1 )
								endOfCookie = document.cookie.length;
						return unescape( document.cookie.substring( y, endOfCookie ) );
				}
				x = document.cookie.indexOf( ' ', x ) + 1;
				if ( x == 0 )
						break;
		}
		return '';
}

function notice_setCookie( name, value, expiredays )
						{
							var todayDate = new Date();
							todayDate.setDate( todayDate.getDate() + expiredays );
							document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
						}

function notice_closeWin( varCookie, LayerName, ckName )
{
		var TCV = MM_findObj(ckName)

		if ( TCV.checked == true ){
				notice_setCookie( varCookie, "done" , 1); // 1=ÇÏ·íµ¿¾È °øÁöÃ¢ ¿­Áö ¾ÊÀ½
		} 
		MM_showHideLayers(LayerName,'','hide')
}


function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


// ±â´É¼³¸í : ·Î±×ÀÎ Ã¼Å©
// »ç¿ëÀ§Ä¡ : ÇÐ±³ º¸°üÇÔ¿¡ ÀúÀå½Ã 
function LoginCheck2(Id, target,retUrl){
	
	var CP = document.location
	CP = Change_AnsiCode(CP.toString(), "Encode");
	
	if(parent.document.getElementById("Current_SI_Keycode") == null)
	{
		//¿À´Ãº» ÇÐ±³¿¡¼­ 
		var SI_KeyCode = 'Main'; 
	}else{
		// ÇÐ±³Á¤º¸¿¡¼­
		var SI_KeyCode = parent.document.getElementById("Current_SI_Keycode").value;
	}

	if (Id =="") {	    
		alert("À¯ÇÐ´åÄÄ ·Î±×ÀÎÀÌ ÇÊ¿äÇÑ È¸¿ø¸Þ´ºÀÌ°Å³ª\n·Î±×ÀÎ ÈÄ ÀÏÁ¤½Ã°£ °æ°ú·Î °í°´´ÔÀÇ °³ÀÎÁ¤º¸ º¸È£¸¦ À§ÇØ\n·Î±×ÀÎÈ­¸éÀ¸·Î ÀÌµ¿ÇÕ´Ï´Ù.")

		if (SI_KeyCode == 'Main')
		{
			location.href="/MotherPage.asp?SI_KeyCode=UH0362";
		}
		else
			location.href="/Contents/MyPage/LoginMain.asp?SI_KeyCode="+SI_KeyCode+"&CP=" + CP;

	}
	else {
		 var obj = eval(target + '.location');
		 obj.href = retUrl;
	}
}


// ±â´É¼³¸í : Å×¸¶º° ÇÁ·Î±×·¥ CMS¿ë ÇÃ·¡½¬
// »ç¿ëÀ§Ä¡ : CMS¿ë ÇÃ·¡½¬ ¸Þ´º°¡ µé¾î°£ °÷
function Theme(){
	if (arguments[1]) {
		document.location.href = "/Contents/Theme/ThemeCode_Get.Asp?TH_KeyCode=" + arguments[0] + "&Abs_Si_KeyCode=" + arguments[1];
	}
	else {
		document.location.href = "/Contents/Theme/ThemeCode_Get.Asp?TH_KeyCode=" + arguments[0];
	}
}


// ±â´É¼³¸í : ÆäÀÌÁö¿¡¼­ °É¸®´Â ±â´Éº° ¸µÅ©
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â

function sangdam_page(gubun){
	window.open('/Contents/Common/ContactSangdam/index.asp?branch='+gubun,'contactsangdam','width=630,height=663,scrollbars=no');
}
function Pagelink() {

	try {

		var linkCode = arguments[0];
		var inOut = arguments[1];
		var CP = "", Si_KeyCode = "";
		var Secure = "false"

		if (!inOut)
			inOut = "in"

		// À¯ÇÐ´åÄÄ ·Î°í (»ó´Ü ÁÂÃø)
		if (linkCode == 'home') {

			if (document.URL.substring(0,8) == 'https://')
				document.location.href = Com_Url_Domain + "LocationMain.Asp?Secure=Yes";
			else 
				top.document.location.href = Com_Url_Domain;
			

			//if (inOut == "in")
			//	top.document.location.href = Com_Url_Domain;
			//else 
				//document.location.href = "/";
			//}
		}

		// »ó´ã½ÅÃ»
		else if (linkCode == 'sangdam')
			window.open('/Contents/Common/ContactSangdam/index.asp','contactsangdam','width=630,height=663,scrollbars=no');

		// ·Î±×ÀÎ
		else if (linkCode == 'login') {
			Si_KeyCode = "UH0362";
			Secure = "true";
		}

		// ·Î±×¾Æ¿ô
		else if (linkCode == 'logout') {
			CP = "/Contents/MyPage/LogOut.asp";
			Secure = "true";
		}
		
		// È¸¿ø°¡ÀÔ
		else if (linkCode == 'member') {
			Si_KeyCode = "UH0363";
			Secure = "true";
		}

		// ¸¶ÀÌÀ¯ÇÐ
		else if (linkCode == 'myuhak') {
			Si_KeyCode = "UH0361";
			Secure = "true";
		}

		// À¯ÇÐ¿¬¼ö µµ¿ì¹Ì
		else if (linkCode == 'helper') {
			Si_KeyCode = "UH0276";
		}

		// Ä¿¹Â´ÏÆ¼
		else if (linkCode == 'community') {
			Si_KeyCode = "UH0376";
		}

		// È¸»ç¼Ò°³
		else if (linkCode == 'company') {
			Si_KeyCode = "UH0306";
		}

		// Q&A
		else if (linkCode == 'QnA') {
			Si_KeyCode = "UH0025";
			Secure = "true";
		}

		// ¿Â¶óÀÎ ¼ö¼Ó½ÅÃ»
		else if (linkCode == 'online') {
			Si_KeyCode = "UH0370";
			CP = "/Contents/MyPage/Online/Apply_NoChoice.asp";
		}

		// Áö»ç > °­³²
		else if (linkCode == 'branch_gangnam') {
			Si_KeyCode = "UH0408";
		}

		// Áö»ç > Á¾·Î
		else if (linkCode == 'branch_jongro') {
			Si_KeyCode = "UH0407";
		}

		// Áö»ç > ½ÅÃÌ
		else if (linkCode == 'branch_sinchon') {
			Si_KeyCode = "UH0409";
		}

		// Áö»ç > ºÐ´ç
		else if (linkCode == 'branch_bundang') {
			Si_KeyCode = "UH0531";
		}

		// Áö»ç > ´ëÀü
		else if (linkCode == 'branch_daejeon') {
			Si_KeyCode = "UH0410";
		}

		// Áö»ç > ´ë±¸
		else if (linkCode == 'branch_daegu') {
			Si_KeyCode = "UH0411";
		}

		// Áö»ç > ºÎ»ê
		else if (linkCode == 'branch_pusan') {
			Si_KeyCode = "UH0412";
		}

		// Áö»ç > ÀüÁÖ
		else if (linkCode == 'branch_jeonju') {
			Si_KeyCode = "UH0413";
		}

		// Áö»ç > ±¤ÁÖ
		else if (linkCode == 'branch_kwangju') {
			Si_KeyCode = "UH0532";
		}

		// Áö»ç > ¹êÄí¹ö
		else if (linkCode == 'branch_ca_b') {
			Si_KeyCode = "UH0415";
		}

		// Áö»ç > Åä·ÐÅä
		else if (linkCode == 'branch_ca_t') {
			Si_KeyCode = "UH0446";
		}

		// Áö»ç > ºòÅä¸®¾Æ
		else if (linkCode == 'branch_vic') {
			Si_KeyCode = "UH0416";
		}

		// Áö»ç > ¿ÀÅ¬·£µå
		else if (linkCode == 'branch_ok') {
			Si_KeyCode = "UH0417";
		}

		// Áö»ç > È£ÁÖ ½Ãµå´Ï
		else if (linkCode == 'branch_syd') {
			Si_KeyCode = "UH0418";
		}

		// Áö»ç > È£ÁÖ ºê¸®Áî¹ø
		else if (linkCode == 'branch_bris') {
			Si_KeyCode = "UH0479";
		}

		// Áö»ç > µ¿°æ
		else if (linkCode == 'branch_japan') {
			Si_KeyCode = "UH0414";
		}

		// Áö»ç > Áö»ç¾È³»
		else if (linkCode == 'branch_info') {
			Si_KeyCode = "UH0387";
		}

		// ±¹°¡¸ÞÀÎ > ¹Ì±¹
		else if (linkCode == 'why_01') {
			Si_KeyCode = "UH0455";
		}

		// ±¹°¡¸ÞÀÎ > Ä³³ª´Ù
		else if (linkCode == 'why_02') {
			Si_KeyCode = "UH0457";
		}

		// ±¹°¡¸ÞÀÎ > ¿µ±¹
		else if (linkCode == 'why_03') {
			Si_KeyCode = "UH0460";
		}

		// ±¹°¡¸ÞÀÎ > ¾ÆÀÏ·£µå
		else if (linkCode == 'why_04') {
			Si_KeyCode = "UH0191";
		}

		// ±¹°¡¸ÞÀÎ > È£ÁÖ
		else if (linkCode == 'why_05') {
			Si_KeyCode = "UH0463";
		}

		// ±¹°¡¸ÞÀÎ > ´ºÁú·£µå
		else if (linkCode == 'why_06') {
			Si_KeyCode = "UH0465";
		}

		// ±¹°¡¸ÞÀÎ > ÇÊ¸®ÇÉ
		else if (linkCode == 'why_07') {
			Si_KeyCode = "UH0466";
		}

		var LocationUrl;

		if (Si_KeyCode != '') {
			if (Secure == "true")
			{
				//if (document.URL.substring(0,8) == 'https://')
				//	LocationUrl = Com_Url_Domain + "MotherPage.asp?SI_KeyCode=" + Si_KeyCode + "&CP=" + CP;
				//else 
					LocationUrl = Com_Url_SecureDomain + "MotherPage.asp?SI_KeyCode=" + Si_KeyCode + "&CP=" + CP;
			}
			else
			{
				//if (document.URL.substring(0,8) == 'https://')
				//	LocationUrl = Com_Url_Domain + "MotherPage.asp?SI_KeyCode=" + Si_KeyCode + "&CP=" + CP;
				//else 
					//LocationUrl = Com_Url_SecureDomain + "MotherPage.asp?SI_KeyCode=" + Si_KeyCode + "&CP=" + CP;
					LocationUrl = Com_Url_Domain + "MotherPage.asp?SI_KeyCode=" + Si_KeyCode + "&CP=" + CP;
			}
		}
		else {
			LocationUrl = CP;
		}

		if (CP != '' || Si_KeyCode != '') {
			if (inOut == "in")  
				parent.document.location.href = LocationUrl;

			else if (inOut == "blank") {
				window.open(LocationUrl);
			}
			else {
				document.location.href = LocationUrl;
			}

		}

	}
	catch(e) {

		if (document.URL.substring(0,8) == 'https://')
			document.location.href = Com_Url_Domain + "LocationMain.Asp?Secure=Yes";
		else 
			document.location.href = Com_Url_SecureDomain + "LocationMain.asp";

	}
}


// ±â´É¼³¸í : ¸ÞÀÎ ÇÃ·¡½¬ÂÊ¿¡ °É¸®´Â ¸µÅ© (±×¿Ü ÆäÀÌÁö¿¡¼­ »ç¿ëÇÔ)
// »ç¿ëÀ§Ä¡ : ÇÃ·¡½¬µé (±×¿Ü ÆäÀÌÁö¿¡¼­µµ »ç¿ëÇÔ)
// flashlink('sangdam')
function flashlink() {
	Pagelink(arguments[0],'out');
}







// ±â´É¼³¸í : ÆäÀÌÁö Å¸ÀÌÆ² && ³×ºñ ÇÃ·¡½Ã¿ë
// »ç¿ëÀ§Ä¡ : movie.swf¿ë
function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}
function callExternalInterface(num, num1, link1, num2, link2, num3, link3, num4, link4) {
    thisMovie("movie").returnValue(num, num1, link1, num2, link2, num3, link3, num4, link4);
}



// ±â´É¼³¸í : °ßÀû³»±âÃ¢ ´Ý±â
// »ç¿ëÀ§Ä¡ : ÇÃ·¡½Ã ³»ºÎ
function fn_Estimate_WindowClose()
{
	//$.unblockUI();
	fn_CyberEstimate_Close();
}




// ±â´É¼³¸í : ½ÇÇàÇÒ ÇÔ¼ö ¸®½ºÆ®
// »ç¿ëÀ§Ä¡ : fn_Top_ExecuteFunction()
function fn_Top_ExecuteFunction_List() {
	var Get_Function = arguments[0];

	// »çÀÌ¹ö »ó´ã
	if (Get_Function.toString().toLowerCase() == 'Cyber'.toLowerCase()) {
		fn_CyberCounsel(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// »çÀÌ¹ö »ó´ã ´Ý±â
	if (Get_Function.toString().toLowerCase() == 'CyberClose'.toLowerCase()) {
		fn_CyberCounsel_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// ¿¹»óºñ¿ë
	else if (Get_Function.toString().toLowerCase() == 'CyberEstimate'.toLowerCase()) {
		fn_CyberEstimate(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// ¿¹»óºñ¿ë ´Ý±â
	else if (Get_Function.toString().toLowerCase() == 'CyberEstimate_Close'.toLowerCase()) {
		fn_CyberEstimate_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// »çÀÌ¹ö ³»¿¡¼­ ÇÒÀÎ
	else if (Get_Function.toString().toLowerCase() == 'CyberEstimateSale'.toLowerCase()) {
		fn_CyberEstimateSale(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// »çÀÌ¹ö ³»¿¡¼­ ÇÒÀÎ ´Ý±â
	else if (Get_Function.toString().toLowerCase() == 'CyberEstimateSale_Close'.toLowerCase()) {
		fn_CyberEstimateSale_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// »çÀÌ¹ö ³»¿¡¼­ ÇÐ±³Ã£±â
	else if (Get_Function.toString().toLowerCase() == 'SearchSchool'.toLowerCase()) {
		fn_SearchSchool(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// »çÀÌ¹ö ³»¿¡¼­ ÇÐ±³Ã£±â ´Ý±â
	else if (Get_Function.toString().toLowerCase() == 'SearchSchool_Close'.toLowerCase()) {
		fn_SearchSchool_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}

}




// ±â´É¼³¸í : ÃÖ»ó´Ü¿¡¼­ ÇÔ¼ö ½ÇÇà½ÃÅ°±â
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â

// »çÀÌ¹ö»ó´ã (z-index : 10010)					: fn_Top_ExecuteFunction('Cyber')
// »çÀÌ¹ö»ó´ã ´Ý±â								: fn_Top_ExecuteFunction('CyberClose')
// »çÀÌ¹ö»ó´ã > ¿¹»óºñ¿ë	(z-index : 10030)	: fn_Top_ExecuteFunction('CyberEstimate', ÇÐ±³ÄÚµå, ¿¬µµ, ÇÁ·Î±×·¥¹øÈ£)
// »çÀÌ¹ö»ó´ã > ¿¹»óºñ¿ë	(z-index : 10030)	: fn_Top_ExecuteFunction('CyberEstimate_Close')
// »çÀÌ¹ö»ó´ã > ¿¹»óºñ¿ë > ÇÒÀÎ	(z-index : 10040)	: fn_Top_ExecuteFunction('CyberEstimateSale', ÇÐ±³ÄÚµå)
// »çÀÌ¹ö»ó´ã > ¿¹»óºñ¿ë > ÇÒÀÎ ´Ý±â			: fn_Top_ExecuteFunction('CyberEstimateSale_Close')
// ÇÐ±³Ã£±â	(z-index : 10020)					: fn_Top_ExecuteFunction('SearchSchool')	
// ÇÐ±³Ã£±â	´Ý±â								: fn_Top_ExecuteFunction('SearchSchool_Close')
function fn_Top_ExecuteFunction() {

	if (window.navigator.appName.indexOf("Explorer") !=-1)
	{
		var IsOpen = false;
		try {
			if (top.document.parentWindow.frames["mainFrame"] == null) {
				top.document.parentWindow.fn_Top_ExecuteFunction_List(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
			}
			else {
				top.document.parentWindow.frames["mainFrame"].fn_Top_ExecuteFunction_List(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
			}

			IsOpen = true;
		}
		catch(e) {}

		if (IsOpen == false) {
			
			try {
				parent.parent.fn_Top_ExecuteFunction_List(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
				IsOpen = true;
			}
			catch(e) {}
		}

		if (IsOpen == false) {
			
			try {
				parent.fn_Top_ExecuteFunction_List(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
				IsOpen = true;
			}
			catch(e) {}
		}

		if (IsOpen == false) {
			
			try {
				fn_Top_ExecuteFunction_List(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
				IsOpen = true;
			}
			catch(e) {
			
				alert('´Ù½Ã ½ÃµµÇÏ¼¼¿ä');
				top.document.location.href = Com_Url_Domain;
			
			}
		}

	}
	else
	{

		var IsOpen = false;
		try {
			if (top.document.getElementById("mainFrame") == null) {
				top.fn_Top_ExecuteFunction_List(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
			}
			else {
				top.document.getElementById("mainFrame").contentWindow.fn_Top_ExecuteFunction_List(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);			
			}

			IsOpen = true;
		}
		catch(e) {}

		if (IsOpen == false) {
			
			try {
				parent.parent.fn_Top_ExecuteFunction_List(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
				IsOpen = true;
			}
			catch(e) {}
		}

		if (IsOpen == false) {
			
			try {
				parent.fn_Top_ExecuteFunction_List(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
				IsOpen = true;
			}
			catch(e) {}
		}

		if (IsOpen == false) {
			
			try {
				fn_Top_ExecuteFunction_List(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
				IsOpen = true;
			}
			catch(e) {
			
				alert('´Ù½Ã ½ÃµµÇÏ¼¼¿ä');
				top.document.location.href = Com_Url_Domain;
			
			}
		}


	}	
}




// ±â´É¼³¸í : ÃÖ»ó´Ü¿¡¼­ ÇÔ¼ö ½ÇÇà½ÃÅ°±â
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â
function fn_SearchSchool() {

	try {

		if (document.body.clientHeight > window.document.body.scrollHeight) {
			var BackgroundPageHeight = document.body.clientHeight;
		}
		else {
			var BackgroundPageHeight = window.document.body.scrollHeight;
		}

		if (document.body.clientWidth > window.document.body.scrollWidth) {
			var BackgroundPageWidth = document.body.clientWidth;
		}
		else {
			var BackgroundPageWidth = window.document.body.scrollWidth;
		}

		BackgroundPageWidth = BackgroundPageWidth - 30;

		var Popup_SearchSchool_BackgroundWin = $("<div id='Popup_SearchSchool_Background' style='display:none;position:fixed;_position:absolute;height:"+BackgroundPageHeight+";width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10020;'></div>");
		$("#Popup_SearchSchool_Background").css({
			"height": windowHeight
		});
		$(document.body).append(Popup_SearchSchool_BackgroundWin);


		var Url = "/Contents/SWF/FlashSearchSchool.Asp";

		$('#Popup_SearchSchool').remove();

		var SearchSchoolWin = $("<div style='display:none;width:960px;height:505px;z-index:10021;'></div>");
		SearchSchoolWin.attr("id", "Popup_SearchSchool");
		SearchSchoolWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='SearchSchool' name='SearchSchool' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "0px")
			.attr("width", "960px")
			.attr("height", "505px")
			.attr("scrolling", "no")
		);
		$(document.body).append(SearchSchoolWin);

		//request data for centering
		var windowWidth = $(document.body).width();
		var windowHeight = $(document.body).height(); //document.documentElement.clientHeight;
			
		var popupHeight = $("#Popup_SearchSchool").height();
		var popupWidth = $("#Popup_SearchSchool").width();
		//centering
		$("#Popup_SearchSchool").css({
			"position": "absolute",
			"top": 100, //($(window).height() - 500) /2, //windowHeight/2-popupHeight/2,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		$("#Popup_SearchSchool_Background").css({
			"opacity": "0.3"
		});
		$("#Popup_SearchSchool_Background").fadeIn("fast");
		$("#Popup_SearchSchool").slideDown("slow"); //.fadeIn("fast");

	}
	catch(e) {
		alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}


// ±â´É¼³¸í : »çÀÌ¹ö»ó´ã ´Ý±â
// »ç¿ëÀ§Ä¡ : ÇÃ·¡½Ã ³»ºÎ
function fn_SearchSchool_Close()
{
	//disables popup only if it is enabled
	$("#Popup_SearchSchool_Background").fadeOut("fast");
	$("#Popup_SearchSchool").slideUp("slow"); //.fadeOut("fast");
}



// ±â´É¼³¸í : »çÀÌ¹ö»ó´ã Å¬¸¯½Ã
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â And fn_Top_ExecuteFunction_List()
function fn_CyberCounsel() {

	try {

		if (document.body.clientHeight > window.document.body.scrollHeight) {
			var BackgroundPageHeight = document.body.clientHeight;
		}
		else {
			var BackgroundPageHeight = window.document.body.scrollHeight;
		}

		if (document.body.clientWidth > window.document.body.scrollWidth) {
			var BackgroundPageWidth = document.body.clientWidth;
		}
		else {
			var BackgroundPageWidth = window.document.body.scrollWidth;
		}

		BackgroundPageWidth = BackgroundPageWidth - 30;

		var Popup_CyberCounsel_BackgroundWin = $("<div id='Popup_CyberCounsel_Background' style=' display:none;position:fixed;_position:absolute;height:"+BackgroundPageHeight+";width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10010;'></div>");

		$("#Popup_CyberCounsel_Background").css({
			"height": windowHeight
		});
		$(document.body).append(Popup_CyberCounsel_BackgroundWin);


		var Url = "/Contents/SWF/OnlineCounsel_Window.asp"

		$('#Popup_CyberCounsel').remove();

		var CyberCounselWin = $("<div style='display:none;width:871px;height:501px;z-index:10011;'></div>");
		CyberCounselWin.attr("id", "Popup_CyberCounsel");

		CyberCounselWin.append(
			$("<iframe frameborder='no' allowTransparency='true' ></iframe>")
			.attr("id", "CyberCounsel")
			.attr("name", "CyberCounsel")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "0px")
			.attr("width", "871px")
			.attr("height", "501px")
			.attr("scrolling", "no")
			.attr("src",Url) 
		);
		$(document.body).append(CyberCounselWin);

		//request data for centering
		var windowWidth = $(document.body).width();
		var windowHeight = $(document.body).height(); //document.documentElement.clientHeight;
			
		var popupHeight = $("#Popup_CyberCounsel").height();
		var popupWidth = $("#Popup_CyberCounsel").width();
		//centering
		$("#Popup_CyberCounsel").css({
			"position": "absolute",
			"top": 150, //windowHeight/2-popupHeight/2,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6

		//loads popup only if it is disabled
		$("#Popup_CyberCounsel_Background").css({
			"opacity": "0.3"
		});
		$("#Popup_CyberCounsel_Background").fadeIn("fast");
		$("#Popup_CyberCounsel").slideDown("slow"); //.fadeIn("fast");

	}
	catch(e) {
		//alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}


// ±â´É¼³¸í : »çÀÌ¹ö»ó´ã ´Ý±â
// »ç¿ëÀ§Ä¡ : ÇÃ·¡½Ã ³»ºÎ
function fn_CyberCounsel_Close()
{
	//disables popup only if it is enabled
	//if(popupCyberCounselStatus==1){
		$("#Popup_CyberCounsel_Background").fadeOut("fast");
		$("#Popup_CyberCounsel").slideUp("slow"); //.fadeOut("fast");
	//	popupCyberCounselStatus = 0;
	//}
}


var popupEstimateStatus = 0;
// ±â´É¼³¸í : °ßÀû¼­
// »ç¿ëÀ§Ä¡ : »çÀÌ¹ö»ó´ãÃ¢¿¡¼­
function fn_CyberEstimate() {

	try {

		if (document.body.clientHeight > window.document.body.scrollHeight) {
			var BackgroundPageHeight = document.body.clientHeight;
		}
		else {
			var BackgroundPageHeight = window.document.body.scrollHeight;
		}

		if (document.body.clientWidth > window.document.body.scrollWidth) {
			var BackgroundPageWidth = document.body.clientWidth;
		}
		else {
			var BackgroundPageWidth = window.document.body.scrollWidth;
		}

		BackgroundPageWidth = BackgroundPageWidth - 24;

		var Popup_Estimate_BackgroundWin = $("<div id='Popup_Estimate_Background' style='display:none;position:fixed;_position:absolute;height:"+BackgroundPageHeight+";width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10030;'></div>");
		$("#Popup_Estimate_Background").css({
			"height": windowHeight
		});
		$(document.body).append(Popup_Estimate_BackgroundWin);


		var Get_SchoolNo = arguments[0];
		var Get_Year = arguments[1];
		var Get_Program_No = arguments[2];

		if (Get_Year == undefined) {
			Get_Year = ""
		}

		if (Get_Program_No == undefined) {
			Get_Program_No = ""
		}

		var Url = "/contents/Common/Estimate/School_Cost.asp?Get_SchoolNo=" + Get_SchoolNo + "&Get_Year=" + Get_Year + "&Get_Program_No=" + Get_Program_No;

		$('#Popup_Estimate').remove();

		var EstimateWin = $("<div style='display:none;width:756px;height:679px;z-index:10031;'></div>");
		EstimateWin.attr("id", "Popup_Estimate");
		EstimateWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='Estimate' name='Estimate' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "0px")
			.attr("width", "756px")
			.attr("height", "679px")
			.attr("scrolling", "no")
		);
		$(document.body).append(EstimateWin);

		//request data for centering
		var windowWidth = $(document.body).width();
		var windowHeight = $(document.body).height(); //document.documentElement.clientHeight;
			
		var popupHeight = $("#Popup_Estimate").height();
		var popupWidth = $("#Popup_Estimate").width();
		//centering
		$("#Popup_Estimate").css({
			"position": "absolute",
			"top": 100, //($(window).height() - 500) /2, //windowHeight/2-popupHeight/2,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		//loads popup only if it is disabled
		//if(popupEstimateStatus==0){
			$("#Popup_Estimate_Background").css({
				"opacity": "0.3"
			});
			$("#Popup_Estimate_Background").fadeIn("fast");
			$("#Popup_Estimate").slideDown("slow"); //.fadeIn("fast");
		//	popupEstimateStatus = 1;
		//}

	}
	catch(e) {
		//alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}


// ±â´É¼³¸í : °ßÀû¼­ ´Ý±â
// »ç¿ëÀ§Ä¡ : ÇÃ·¡½Ã ³»ºÎ
function fn_CyberEstimate_Close()
{
	//disables popup only if it is enabled
	//if(popupEstimateStatus==1){
		$("#Popup_Estimate_Background").fadeOut("fast");
		$("#Popup_Estimate").slideUp("slow"); //.fadeOut("fast");
	//	popupEstimateStatus = 0;
	//}
}


// ±â´É¼³¸í : °ßÀû¼­
// »ç¿ëÀ§Ä¡ : »çÀÌ¹ö»ó´ãÃ¢¿¡¼­
function fn_CyberEstimateSale() {

	try {

		if (document.body.clientHeight > window.document.body.scrollHeight) {
			var BackgroundPageHeight = document.body.clientHeight;
		}
		else {
			var BackgroundPageHeight = window.document.body.scrollHeight;
		}

		if (document.body.clientWidth > window.document.body.scrollWidth) {
			var BackgroundPageWidth = document.body.clientWidth;
		}
		else {
			var BackgroundPageWidth = window.document.body.scrollWidth;
		}

		BackgroundPageWidth = BackgroundPageWidth - 24;

		var Popup_EstimateSale_BackgroundWin = $("<div id='Popup_EstimateSale_Background' style='display:none;position:fixed;_position:absolute;height:"+BackgroundPageHeight+";width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10040;'></div>");
		$("#Popup_EstimateSale_Background").css({
			"height": windowHeight
		});
		$(document.body).append(Popup_EstimateSale_BackgroundWin);


		var Get_SchoolNo = arguments[0];
		var Get_Year = arguments[1];
		var Get_Program_No = arguments[2];

		if (Get_Year == undefined) {
			Get_Year = ""
		}

		if (Get_Program_No == undefined) {
			Get_Program_No = ""
		}

		var Url = "/contents/Common/Estimate/SchoolSale.asp?Get_SchoolNo=" + Get_SchoolNo;

		$('#Popup_EstimateSale').remove();

		var EstimateSaleWin = $("<div style='display:none;width:756px;height:679px;z-index:10041;'></div>");
		EstimateSaleWin.attr("id", "Popup_EstimateSale");
		EstimateSaleWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='EstimateSale' name='EstimateSale' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "0px")
			.attr("width", "756px")
			.attr("height", "679px")
			.attr("scrolling", "no")
		);
		$(document.body).append(EstimateSaleWin);

		//request data for centering
		var windowWidth = $(document.body).width();
		var windowHeight = $(document.body).height(); //document.documentElement.clientHeight;
			
		var popupHeight = $("#Popup_EstimateSale").height();
		var popupWidth = $("#Popup_EstimateSale").width();
		//centering
		$("#Popup_EstimateSale").css({
			"position": "absolute",
			"top": 100, //($(window).height() - 500) /2, //windowHeight/2-popupHeight/2,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		//loads popup only if it is disabled
		$("#Popup_EstimateSale_Background").css({
			"opacity": "0.3"
		});
		$("#Popup_EstimateSale_Background").fadeIn("fast");
		$("#Popup_EstimateSale").slideDown("slow"); //.fadeIn("fast");


	}
	catch(e) {
		//alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}


// ±â´É¼³¸í : °ßÀû¼­ ´Ý±â
// »ç¿ëÀ§Ä¡ : ÇÃ·¡½Ã ³»ºÎ
function fn_CyberEstimateSale_Close()
{
		$("#Popup_EstimateSale_Background").fadeOut("fast");
		$("#Popup_EstimateSale").slideUp("slow"); //.fadeOut("fast");
}