// 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/Event/Event_201009_Main.asp".toLowerCase() );	// 9¿ù ÀÌº¥Æ®

Current_Pathname_Array.push( "/Contents/Event/Event_201105_Main.asp".toLowerCase() );	// 2011-5/6¿ù ÀÌº¥Æ®
Current_Pathname_Array.push( "/Contents/Event/Event_201106_Main.asp".toLowerCase() );	// 2011-5/6¿ù ÀÌº¥Æ®

Current_Pathname_Array.push( "/Contents/Common/ContactSangdam/index_page.asp".toLowerCase() );	// ¹æ¹®»ó´ã
Current_Pathname_Array.push( "/Contents/Common/ContactSangdam/insert_page.asp".toLowerCase() );	// ¹æ¹®»ó´ã


var Secure_SI_KeyCodes = Array();
Secure_SI_KeyCodes.push( "UH0025".toUpperCase() ); // ¾îÇÐ°úÁ¤ Q&A
Secure_SI_KeyCodes.push( "UH0059".toUpperCase() ); // ÃÊÁß°íÀ¯ÇÐ Q&A
Secure_SI_KeyCodes.push( "UH0362".toUpperCase() ); // ·Î±×ÀÎ
Secure_SI_KeyCodes.push( "UH0363".toUpperCase() ); // ¹«·áÈ¸¿ø°¡ÀÔ
Secure_SI_KeyCodes.push( "UH0616".toUpperCase() ); // ¾ÆÀÌµð Ã£±â

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;
				//¼­ºêÆäÀÌÁö ÇÏÀ§¸Þ´ºÁ¢±Ù½Ã ½ºÅ©·ÑÀÌ 136¾Æ·¡·Î ³»·Á¿Í¼­ »èÁ¦ÇÔ.2011-08-22 ÀÌ¹éÀÏ/ÀÌÃ¢¼· ¿äÃ» ssy
				//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
		{
			window.status = objBody.style.height + " / " + FrameObj.document.body.scrollHeight + " / " + objBody.contentDocument.body.offsetHeight
			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()  // º¸¾È ÆäÀÌÁö Ã¼Å©
}


// ¾ÆÀÌÇÁ·¹ÀÓ ¸®»çÀÌÁî
// $("#IFramePage").iframeresize({time : 300});
(function($) {
	$.fn.iframeresize = function(options) {
		var $obj = this;
		var settings = { time : 300 }
		var opts = $.extend(settings, options);

		var FrameObjId = $obj.attr("id");
		var objBody = document.getElementById(FrameObjId);

		setInterval(function () {

			try {

				if (window.navigator.appName.indexOf("Explorer") !=-1)
				{
					$("#"+FrameObjId).css("height",$obj[0].contentWindow.document.body.scrollHeight);
				}
				else
				{
					$("#"+FrameObjId).css("height",objBody.contentDocument.body.offsetHeight);
				}

				SecureDomainCheck()

			}
			catch(e) {
			}

		}, opts.time )

	};
})(jQuery);


// ÁÂ¿ìÃø floating µÇ´Â ¹è³Ê¿ë
//
// topPoint : »ó´Ü¿¡¼­ ¶³¾îÁö´Â À§Ä¡
// smoothTime : ½Ã°£ (ÀûÀ» ¼ö·Ï ºÎµå·¯¿ò)
// stopTime : ½ºÅ©·Ñ °¨ÁöÈÄ ¿òÁ÷ÀÏ ½Ã°£ (³Ê¹« ºü¸£¸é µå¸£¸¤ °Å¸²)
// ContentsWidthSize »çÀÌÁî°¡ ÀÖÀ¸¸é ±× ÄÁÅÙÃ÷·Î ºÎÅÍÀÇ left °ªÀ¸·Î °è»ê (Áß¾ÓÁ¤·ÄÀÇ ÄÁÅÙÃ÷ ¿ÞÂÊ)
// ObjectHeigthSize ÇÏ´Ü¿¡µµ floatBanner°¡ ÀÖÀ¸¸é ±× ³ôÀÌ±îÁö °è»ê (»ó´Ü ¹è³Ê°¡ ÇÏ´Ü ¹è³Ê¶û °ãÄ¡´Â Çü»ó ¸·±âÀ§ÇØ)
//					¶Ç´Â ÇÏ´Ü¿¡ ¿øÇÏ´Â ¿µ¿ª ÀÌÇÏ·Î ³»·Á¿ÀÁö ¾Êµµ·Ï ÇÏ±â À§ÇØ ¼³Á¤
// $('#aside_left').floatBanner({ topPoint : 115, smoothTime : 30, stopTime : 500 });
// $('#aside_left').floatBanner({ topPoint : 115, leftPoint : 0, smoothTime : 30, stopTime : 500, ContentsWidthSize : 984 });
// $('#aside_left').floatBanner({ topPoint : 115, leftPoint : 0, smoothTime : 30, stopTime : 500, ContentsWidthSize : 984, ObjectHeigthSize : 630 });
(function($) {
	$.fn.floatBanner = function(options) {
		var $obj = this;
		var settings = { topPoint : 100, leftPoint : 100, smoothTime : 10, stopTime : 1000, ContentsWidthSize : 0, ObjectHeigthSize : 0 }
		var opts = $.extend(settings, options);

		$obj.css({"top":opts.topPoint+"px", "position":"absolute", "z-index":"10000" });
		if (opts.ContentsWidthSize > 0) {
			var leftPointPixel = ($(window).width() - ($(window).width() - opts.ContentsWidthSize)/2 + opts.leftPoint)
			leftPointPixel = (leftPointPixel > opts.ContentsWidthSize) ? leftPointPixel : opts.ContentsWidthSize;
			$obj.css("left", leftPointPixel + 'px');
		}
		else {
			$obj.css("left", opts.leftPoint + 'px');			
		}

		$obj.show();

		// °´Ã¼ÀÇ Å©±â (ÇÏ´Ü¿¡µµ floatBanner°¡ ÀÖÀ¸¸é ±× ³ôÀÌ±îÁö °è»êÇØ¾ß ÇØ¼­)
		var ObjectHeigthSize = opts.ObjectHeigthSize;
		if (ObjectHeigthSize == 0) {
			ObjectHeigthSize = $obj.height()
		}
		
		// ÃÖ¼Ò ³ôÀÌ °è»ê
		var minTop = $(document).height() - ObjectHeigthSize;

		$(window).scroll(function () { 

			setTimeout(function() {
				_top = $(document).scrollTop();
				_top = _top + opts.topPoint;
				if (_top > minTop) {
					_top = minTop;
				}

				$obj.stop().animate({ "top": _top+'px'}, opts.stopTime);
			}, opts.smoothTime);
		});

		if (opts.ContentsWidthSize > 0) {
			$(window).resize(function () { 
				var leftPointPixel = ($(window).width() - ($(window).width() - opts.ContentsWidthSize)/2 + opts.leftPoint)
				leftPointPixel = (leftPointPixel > opts.ContentsWidthSize) ? leftPointPixel : opts.ContentsWidthSize;
				$obj.css("left", leftPointPixel + 'px');
			});
		}
	};
})(jQuery);


// ±â´É¼³¸í : 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];
	SI_SecureDomain = arguments[5]; // "y" "n" (http, https ¿©ºÎ)

	// ¹è¿­°ª°ú ºñ±³ ÈÄ 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;
		}
	}

	// https µµ¸ÞÀÎÀ¸·Î ¼¼ÆÃµÈ°Å¸é
	if (SI_SecureDomain == "y") {
		Url_Domain = Com_Url_SecureDomain;	
	}


	var LocationPathname = new String( document.location.pathname.toLowerCase() );	// /page.asp
	var MotherPageName = "MotherPage.ASP";

	// ·Î±×ÀÎ ÆäÀÌÁö¸é
	if (SI_KeyCode == "UH0362") {
		MotherPageName = "MotherPageFile.asp";
	}

	// https »çÀÌÆ®µé
	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;
		}
	}

	//alert(document.location + "\n" + LocationPathname + "\n" + MotherPageName.toLowerCase() + "\n" + WT + "\n" +  LocationPathname.indexOf(MotherPageName.toLowerCase()))

	if (LocationPathname.indexOf(MotherPageName.toLowerCase()) == -1 && WT != "w") {
		document.location.href = Url_Domain + MotherPageName + "?SI_KeyCode="+SI_KeyCode+"&UT="+UT+"&CP="+CP;
	}

	// ¸¶Áö¸· Å¬¸¯ÇÑ 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")
			{
					var ColTB=document.getElementById("DisplayPopupTable");

					if (ColTB) {

						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 {
			document.location.href = Url_Domain + MotherPageName + "?Si_KeyCode=" + SI_KeyCode + "&CP=" + CP;
		}
	}
	else {

		// ¼­ºê¸ÞÀÎ¿ëÀÌ ¾Æ´Ï¸é
		if (Com_Main_SI_KeyCodes.indexOf(SI_KeyCode) == -1)
		{
			document.location.href = Url_Domain + MotherPageName + "?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_SecureDomain
	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];
	SI_SecureDomain = arguments[8]; // "y" "n" (http, https ¿©ºÎ)

	//if (SI_KeyCode == "UH0362") {
	//	document.location.href = "http://www3.uhak.com/MotherPageFile.asp";
	//}

	// ¸µÅ©µÈ ÁÖ¼Ò Ã³¸®
	if (WT != "w")
		Location_IFramePage( SI_KeyCode, UT, CP, WT, IsUsePopUp, SI_SecureDomain);


	// Å¸ÀÌÆ²
	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,"&");

				callExternalInterface2(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
		}

}



// ±â´É¼³¸í : ¸¶´õÆäÀÌÁö 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;

	// »ó´Ü¸Þ´º¿ë ÇÐ±³Ã£±â¸é flash ¼öÁ¤¾ÈÇÏ°í script ¼öÁ¤ÇÔ
	if (document.location.pathname.toLowerCase().indexOf("menusearchschool.asp") > 0) {
		inOut = "parent"
	}  

	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() {

	inOut = arguments[1];
	// »ó´Ü¸Þ´º¿ë ÇÐ±³Ã£±â¸é flash ¼öÁ¤¾ÈÇÏ°í script ¼öÁ¤ÇÔ
	if (document.location.pathname.toLowerCase().indexOf("menusearchschool.asp") > 0) {
		inOut = "parent"
	}  

	if (inOut != '') {
		if (inOut == "blank") {
			window.open(Com_Url_Domain + "MotherPage.Asp?SI_KeyCode=" + arguments[0]);
		}
		else if (inOut == "parent") {
			parent.document.location.href = 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')
		{
			document.location.href= Com_Url_SecureDomain + "MotherPageFile.asp?SI_KeyCode=UH0362";
		}
		else {
			//location.href="/Contents/MyPage/LoginMain.asp?SI_KeyCode="+SI_KeyCode+"&CP=" + CP;
			parent.document.location.href= Com_Url_SecureDomain + "MotherPageFile.asp?SI_KeyCode=UH0362&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=680,height=753,scrollbars=no');
}

// ±â´É¼³¸í : ÆäÀÌÁö¿¡¼­ °É¸®´Â ±â´Éº° ¸µÅ©
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â
function Pagelink() {

	try {

		var linkCode = arguments[0];
		var inOut = arguments[1];
		var CP = "", Si_KeyCode = "";
		var Secure = "false";
		var MotherPageFile = "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');
			//window.open('http://www.uhak.com/Contents/Common/ContactSangdam/frame.asp','contactsangdam','width=630,height=663,scrollbars=no');
			Si_KeyCode = "UH0376";
			CP = "/Contents/Common/ContactSangdam/index_page.asp";
			Secure = "true";
		}
		// ·Î±×ÀÎ
		else if (linkCode == 'login') {
			Si_KeyCode = "UH0362";
			Secure = "true";
			MotherPageFile = "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";
		}

		// Áö»ç > °­³²2
		else if (linkCode == 'branch_gangnam2') {
			Si_KeyCode = "UH0596";
		}

		// Áö»ç > Á¾°¢
		else if (linkCode == 'branch_jongro') {
			Si_KeyCode = "UH0407";
		}

		// Áö»ç > Á¾·Î3
		else if (linkCode == 'branch_jongro3') {
			Si_KeyCode = "UH0577";
		}

		// Áö»ç > ½ÅÃÌ
		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_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_mon') {
			Si_KeyCode = "UH0585";
		}

		// Áö»ç > ·±´ø
		else if (linkCode == 'branch_lon') {
			Si_KeyCode = "UH0584";
		}

		// Áö»ç > ¿ÀÅ¬·£µå
		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";
		}

		// ±¹°¡ > Ä³³ª´Ù (¿Ö 00ÀÎ°¡?)
		else if (linkCode == 'why_02') {
			Si_KeyCode = "UH0457";
		}

		// ±¹°¡ > ¿µ±¹ (¿Ö 00ÀÎ°¡?)
		else if (linkCode == 'why_03') {
			Si_KeyCode = "UH0460";
		}

		// ±¹°¡ > ¾ÆÀÏ·£µå (¿Ö 00ÀÎ°¡?)
		else if (linkCode == 'why_04') {
			Si_KeyCode = "UH0191";
		}

		// ±¹°¡ > È£ÁÖ (¿Ö 00ÀÎ°¡?)
		else if (linkCode == 'why_05') {
			Si_KeyCode = "UH0463";
		}

		// ±¹°¡ > ´ºÁú·£µå (¿Ö 00ÀÎ°¡?)
		else if (linkCode == 'why_06') {
			Si_KeyCode = "UH0465";
		}

		// ±¹°¡ > ÇÊ¸®ÇÉ (¿Ö 00ÀÎ°¡?)
		else if (linkCode == 'why_07') {
			Si_KeyCode = "UH0466";
		}


		// ±¹°¡¸ÞÀÎ > ¹Ì±¹
		else if (linkCode == 'Main_US') {
			CP = "/main/nation/us.asp";
		}
		// ±¹°¡¸ÞÀÎ > Ä³³ª´Ù
		else if (linkCode == 'Main_CA') {
			CP = "/main/nation/ca.asp";
		}
		// ±¹°¡¸ÞÀÎ > ¿µ±¹
		else if (linkCode == 'Main_UK') {
			CP = "/main/nation/uk.asp";
		}
		// ±¹°¡¸ÞÀÎ > 
		else if (linkCode == 'Main_IR') {
			CP = "/main/nation/ir.asp";
		}
		// ±¹°¡¸ÞÀÎ > 
		else if (linkCode == 'Main_NZ') {
			CP = "/main/nation/nz.asp";
		}
		// ±¹°¡¸ÞÀÎ > È£ÁÖ
		else if (linkCode == 'Main_AU') {
			CP = "/main/nation/au.asp";
		}
		// ±¹°¡¸ÞÀÎ > ÇÊ¸®ÇÉ
		else if (linkCode == 'Main_PH') {
			CP = "/main/nation/ph.asp";
		}
		// ±¹°¡¸ÞÀÎ > ÇÊ¸®ÇÉ
		else if (linkCode == 'Main_ETC') {
			CP = ""
			Si_KeyCode = "UH0269"
		}

		

		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_Domain + "MotherPage.asp?SI_KeyCode=" + Si_KeyCode + "&CP=" + CP;
			}
			*/

			if (MotherPageFile == "true") {
				LocationUrl = Com_Url_SecureDomain + "MotherPageFile.asp?SI_KeyCode=" + Si_KeyCode + "&CP=" + CP;
			}
			else {

				if (Secure == "true")
				{
					LocationUrl = Com_Url_SecureDomain + "MotherPage.asp?SI_KeyCode=" + Si_KeyCode + "&CP=" + CP;
				}
				else
				{
					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]
    }
}
// callExternalInterface ¸íÀ» »ç¿ëÇÏ¸é FF¿¡¼­ ÀÛµ¿¾ÈÇÔ
function callExternalInterface(num, num1, link1, num2, link2, num3, link3, num4, link4) {
    thisMovie("movie").returnValue(num, num1, link1, num2, link2, num3, link3, num4, link4);
}
function callExternalInterface2(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])
	}

	// »çÀÌ¹ö ³»¿¡¼­ ÇÐ±³Ã£±â
	else if (Get_Function.toString().toLowerCase() == 'MenuSearchSchool'.toLowerCase()) {
		fn_MenuSearchSchool(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// »çÀÌ¹ö ³»¿¡¼­ ÇÐ±³Ã£±â ´Ý±â
	else if (Get_Function.toString().toLowerCase() == 'MenuSearchSchool_Close'.toLowerCase()) {
		fn_MenuSearchSchool_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	//Áö»ç Ã£±â
	else if (Get_Function.toString().toLowerCase() == 'JisaSearch'.toLowerCase())
	{
		fn_JisaSearch(arguments[1], arguments[2], arguments[3], arguments[4])
	}
	//Áö»ç Ã£±â ´Ý±â
	else if (Get_Function.toString().toLowerCase() == 'JisaSearch_Close'.toLowerCase())
	{
		fn_JisaSearch_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}
	
	// È¸»ç¼Ò°³
	else if(Get_Function.toString().toLowerCase() == 'CompanyPop'.toLowerCase())
	{
		fn_Company(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// È¸»ç¼Ò°³ ´Ý±â
	else if(Get_Function.toString().toLowerCase() == 'CompanyPop_Close'.toLowerCase())
	{
		fn_Company_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}


	// 9¿ù ÀÌº¥Æ®
	else if(Get_Function.toString().toLowerCase() == 'Event201009'.toLowerCase())
	{
		fn_Event201009(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// 9¿ù ÀÌº¥Æ® ´Ý±â
	else if(Get_Function.toString().toLowerCase() == 'Event201009_Close'.toLowerCase())
	{
		fn_Event201009_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// 9¿ù ÀÌº¥Æ®
	else if(Get_Function.toString().toLowerCase() == 'Event201009_pop'.toLowerCase())
	{
		fn_Event201009_Pop(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// 9¿ù ÀÌº¥Æ® ´Ý±â
	else if(Get_Function.toString().toLowerCase() == 'Event201009_pop_Close'.toLowerCase())
	{
		fn_Event201009_Pop_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}


	// 2011 5¿ù ÀÌº¥Æ®
	else if(Get_Function.toString().toLowerCase() == 'Event201105'.toLowerCase())
	{
		fn_Event201105(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// 2011 5¿ù ÀÌº¥Æ® ´Ý±â
	else if(Get_Function.toString().toLowerCase() == 'Event201105_Close'.toLowerCase())
	{
		fn_Event201105_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	} 

	// 2011 5¿ù ÀÌº¥Æ®
	else if(Get_Function.toString().toLowerCase() == 'Event201105_pop'.toLowerCase())
	{
		fn_Event201105_Pop(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// 2011 5¿ù ÀÌº¥Æ® ´Ý±â
	else if(Get_Function.toString().toLowerCase() == 'Event201105_pop_Close'.toLowerCase())
	{
		fn_Event201105_Pop_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// 2011 6¿ù ÀÌº¥Æ®
	else if(Get_Function.toString().toLowerCase() == 'Event201106'.toLowerCase())
	{
		fn_Event201106(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// 2011 6¿ù ÀÌº¥Æ® ´Ý±â
	else if(Get_Function.toString().toLowerCase() == 'Event201106_Close'.toLowerCase())
	{
		fn_Event201106_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// 2011 6¿ù ÀÌº¥Æ®
	else if(Get_Function.toString().toLowerCase() == 'Event201106_pop'.toLowerCase())
	{
		fn_Event201106_Pop(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// 2011 6¿ù ÀÌº¥Æ® ´Ý±â
	else if(Get_Function.toString().toLowerCase() == 'Event201106_pop_Close'.toLowerCase())
	{
		fn_Event201106_Pop_Close(arguments[1], arguments[2], arguments[3], arguments[4])
	}


	// ºÎ»êÁö»ç ¿ÀÇÂ ÀÌº¥Æ®
	else if(Get_Function.toString().toLowerCase() == 'EventBusanOpen'.toLowerCase())
	{
		fn_EventBusanOpen(arguments[1], arguments[2], arguments[3], arguments[4])
	}

	// ºÎ»êÁö»ç ¿ÀÇÂ ÀÌº¥Æ® ´Ý±â
	else if(Get_Function.toString().toLowerCase() == 'EventBusanOpen_Close'.toLowerCase())
	{
		fn_EventBusanOpen_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')
// »ó´Ü¸Þ´º¿¡¼­ ÇÐ±³Ã£±â	(z-index : 10050)	: fn_Top_ExecuteFunction('MenuSearchSchool')	
// »ó´Ü¸Þ´º¿¡¼­ ÇÐ±³Ã£±â	´Ý±â				: fn_Top_ExecuteFunction('MenuSearchSchool_Close')
// ºÎ»ê ÀÌº¥Æ®¿ë	(z-index : 10060)			: fn_Top_ExecuteFunction('EventBusanOpen')	
// ºÎ»ê ÀÌº¥Æ®¿ë	´Ý±â						: fn_Top_ExecuteFunction('EventBusanOpen_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_Event201009_Pop() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_Event201009_Pop_BackgroundWin = $("<div id='Popup_Event201009_Pop_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10020;'></div>");
		$(document.body).append(Popup_Event201009_Pop_BackgroundWin);

		
		var Get_UID = arguments[0];

		if (Get_UID == undefined) {
			Get_UID = ""
		}
		
		
		var Url = "/contents/Event/Event_201009_Pop.asp";

		if (Get_UID !="")
		{
			Url = "/contents/Event/Event_201009_Popbusan.asp";

		}


		$('#Popup_Event201009_Pop').remove();

		var Event201009_PopWin = $("<div id='Popup_Event201009_Pop' style='display:none;width:567px;height:585px;z-index:10021;'></div>");

		Event201009_PopWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='Event201009_Pop' name='Event201009_Pop' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "567px")
			.attr("height", "585px")
			.attr("scrolling", "no")
		);
		$(document.body).append(Event201009_PopWin);

		var popupHeight = $("#Popup_Event201009_Pop").height();
		var popupWidth = $("#Popup_Event201009_Pop").width();
		//centering
		$("#Popup_Event201009_Pop").css({
			"position": "absolute",
			"top": 700,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		$("#Popup_Event201009_Pop_Background").css({
			"opacity": "0.3"
		});
		$("#Popup_Event201009_Pop_Background").fadeIn("fast");
		$("#Popup_Event201009_Pop").slideDown("slow"); //.fadeIn("fast");

	}
	catch(e) {
		alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}

// ±â´É¼³¸í : 9¿ùÀÌº¥Æ® ´Ý±â
// »ç¿ëÀ§Ä¡ : 9¿ùÀÌº¥Æ® ³»ºÎ
function fn_Event201009_Pop_Close()
{
	//disables popup only if it is enabled
	$("#Popup_Event201009_Pop_Background").fadeOut("fast");
	$("#Popup_Event201009_Pop").slideUp("slow");
}




// ±â´É¼³¸í : ÃÖ»ó´Ü¿¡¼­ ÇÔ¼ö ½ÇÇà½ÃÅ°±â
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â
function fn_Event201009() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_Event201009_BackgroundWin = $("<div id='Popup_Event201009_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10020;'></div>");
		$(document.body).append(Popup_Event201009_BackgroundWin);

		
		var Get_UID = arguments[0];
		var Get_Posi = arguments[1];

		if (Get_UID == undefined) {
			Get_UID = ""
		}

		if (Get_Posi == undefined) {
			Get_Posi = ""
		}

		if (Get_Posi =="1")
		{
			var Top_Posi = "600";
		}else if (Get_Posi=="2")
		{
			var Top_Posi = "1200";
		}else{
			var Top_Posi = "900";
		}


		

		var Url = "/contents/Event/Event_201009_EnterMain.asp?Uid="+Get_UID;

		$('#Popup_Event201009').remove();

		var Event201009Win = $("<div id='Popup_Event201009' style='display:none;width:450px;height:300px;z-index:10021;'></div>");

		Event201009Win.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='Event201009' name='Event201009' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "450px")
			.attr("height", "300px")
			.attr("scrolling", "no")
		);
		$(document.body).append(Event201009Win);

		var popupHeight = $("#Popup_Event201009").height();
		var popupWidth = $("#Popup_Event201009").width();
		//centering
		$("#Popup_Event201009").css({
			"position": "absolute",
			"top": Top_Posi,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		$("#Popup_Event201009_Background").css({
			"opacity": "0.3"
		});
		$("#Popup_Event201009_Background").fadeIn("fast");
		$("#Popup_Event201009").slideDown("slow"); //.fadeIn("fast");

	}
	catch(e) {
		alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}


// ±â´É¼³¸í : 9¿ùÀÌº¥Æ® ´Ý±â
// »ç¿ëÀ§Ä¡ : 9¿ùÀÌº¥Æ® ³»ºÎ
function fn_Event201009_Close()
{
	//disables popup only if it is enabled
	$("#Popup_Event201009_Background").fadeOut("fast");
	$("#Popup_Event201009").slideUp("slow");
}


// 2011 5¿ùÀÌº¥Æ®(ÄªÂù´ñ±Û)
// ±â´É¼³¸í : ÃÖ»ó´Ü¿¡¼­ ÇÔ¼ö ½ÇÇà½ÃÅ°±â
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â
function fn_Event201105() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_Event201009_BackgroundWin = $("<div id='Popup_Event201105_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10020;'></div>");
		$(document.body).append(Popup_Event201009_BackgroundWin);

		
		var Get_UID = arguments[0];
		var Get_Posi = arguments[1];

		if (Get_UID == undefined) {
			Get_UID = ""
		}

		if (Get_Posi == undefined) {
			Get_Posi = ""
		}

		if (Get_Posi =="1")
		{
			var Top_Posi = "500";
		}else if (Get_Posi=="2")
		{
			var Top_Posi = "1200";
		}else{
			var Top_Posi = "900";
		}


		

		var Url = "/contents/Event/Event_201105_InMain.asp?Uid="+Get_UID;

		$('#Popup_Event201105').remove();

		var Event201009Win = $("<div id='Popup_Event201105' style='display:none;width:450px;height:300px;z-index:10021;'></div>");

		Event201009Win.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='Event201105' name='Event201105' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "450px")
			.attr("height", "400px")
			.attr("scrolling", "no")
		);
		$(document.body).append(Event201009Win);

		var popupHeight = $("#Popup_Event201105").height();
		var popupWidth = $("#Popup_Event201105").width();
		//centering
		$("#Popup_Event201105").css({
			"position": "absolute",
			"top": Top_Posi,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		$("#Popup_Event201105_Background").css({
			"opacity": "0.3"
		});
		$("#Popup_Event201105_Background").fadeIn("fast");
		$("#Popup_Event201105").slideDown("slow"); //.fadeIn("fast");

	}
	catch(e) {
		alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}
 

function fn_Event201105_Close()
{
	//disables popup only if it is enabled
	$("#Popup_Event201105_Background").fadeOut("fast");
	$("#Popup_Event201105").slideUp("slow");
}


function fn_Event201105_Pop() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_Event201105_Pop_BackgroundWin = $("<div id='Popup_Event201105_Pop_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10020;'></div>");
		$(document.body).append(Popup_Event201105_Pop_BackgroundWin);

		
		var Get_UID = arguments[0];
		var Get_Posi = arguments[1];

		if (Get_UID == undefined) {
			Get_UID = ""
		}
		
		
		var Url = "/contents/Event/Event_201105_Pop.asp";

		if (Get_Posi =="1")
		{
			var Top_Posi = "1000";
		}else if (Get_Posi=="2")
		{
			var Top_Posi = "900";
		}else{
			var Top_Posi = "900";
		}

		  
		$('#Popup_Event201105_Pop').remove();

		var Event201105_PopWin = $("<div id='Popup_Event201105_Pop' style='display:none;width:567px;height:585px;z-index:10021;'></div>");

		Event201105_PopWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='Event201105_Pop' name='Event201105_Pop' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "557px")
			.attr("height", "800px")
			.attr("scrolling", "yes")
		);
		$(document.body).append(Event201105_PopWin);

		var popupHeight = $("#Popup_Event201105_Pop").height();
		var popupWidth = $("#Popup_Event201105_Pop").width();
		//centering
		$("#Popup_Event201105_Pop").css({
			"position": "absolute",
			"top": Top_Posi,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		$("#Popup_Event201105_Pop_Background").css({
			"opacity": "0.3"
		});
		$("#Popup_Event201105_Pop_Background").fadeIn("fast");
		$("#Popup_Event201105_Pop").slideDown("slow"); //.fadeIn("fast");

	}
	catch(e) {
		alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}
 

function fn_Event201105_Pop_Close()
{
	//disables popup only if it is enabled
	$("#Popup_Event201105_Pop_Background").fadeOut("fast");
	$("#Popup_Event201105_Pop").slideUp("slow");
}



// 2011 - 5/6¿ù ÀÎÁõ¼¦
// ±â´É¼³¸í : ÃÖ»ó´Ü¿¡¼­ ÇÔ¼ö ½ÇÇà½ÃÅ°±â
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â
function fn_Event201106_Pop() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_Event201106_Pop_BackgroundWin = $("<div id='Popup_Event201106_Pop_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10020;'></div>");
		$(document.body).append(Popup_Event201106_Pop_BackgroundWin);

		
		var Get_UID = arguments[0];

		if (Get_UID == undefined) {
			Get_UID = ""
		}
		
		
		var Url = "/contents/Event/Event_201106_Pop.asp";

		if (Get_UID !="")
		{
			Url = "/contents/Event/Event_201106_Popbusan.asp";

		}


		$('#Popup_Event201106_Pop').remove();

		var Event201106_PopWin = $("<div id='Popup_Event201106_Pop' style='display:none;width:567px;height:585px;z-index:10021;'></div>");

		Event201106_PopWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='Event201106_Pop' name='Event201106_Pop' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "567px")
			.attr("height", "585px")
			.attr("scrolling", "no")
		);
		$(document.body).append(Event201106_PopWin);

		var popupHeight = $("#Popup_Event201106_Pop").height();
		var popupWidth = $("#Popup_Event201106_Pop").width();
		//centering
		$("#Popup_Event201106_Pop").css({
			"position": "absolute",
			"top": 700,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		$("#Popup_Event201106_Pop_Background").css({
			"opacity": "0.3"
		});
		$("#Popup_Event201106_Pop_Background").fadeIn("fast");
		$("#Popup_Event201106_Pop").slideDown("slow"); //.fadeIn("fast");

	}
	catch(e) {
		alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}
 

function fn_Event201106_Pop_Close()
{
	//disables popup only if it is enabled
	$("#Popup_Event201106_Pop_Background").fadeOut("fast");
	$("#Popup_Event201106_Pop").slideUp("slow");
}


 
function fn_Event201106() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_Event201106_BackgroundWin = $("<div id='Popup_Event201106_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10020;'></div>");
		$(document.body).append(Popup_Event201106_BackgroundWin);

		
		var Get_UID = arguments[0];
		var Get_Posi = arguments[1];

		if (Get_UID == undefined) {
			Get_UID = ""
		}

		if (Get_Posi == undefined) {
			Get_Posi = ""
		}

		if (Get_Posi =="1")
		{
			var Top_Posi = "700";
		}else if (Get_Posi=="2")
		{
			var Top_Posi = "1200";
		}else{
			var Top_Posi = "900";
		}


		

		var Url = "/contents/Event/Event_201106_EnterMain.asp?Uid="+Get_UID;

		$('#Popup_Event201106').remove();

		var Event201106Win = $("<div id='Popup_Event201106' style='display:none;width:450px;height:300px;z-index:10021;'></div>");

		Event201106Win.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='Event201106' name='Event201106' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "450px")
			.attr("height", "300px")
			.attr("scrolling", "no")
		);
		$(document.body).append(Event201106Win);

		var popupHeight = $("#Popup_Event201106").height();
		var popupWidth = $("#Popup_Event201106").width();
		//centering
		$("#Popup_Event201106").css({
			"position": "absolute",
			"top": Top_Posi,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		$("#Popup_Event201106_Background").css({
			"opacity": "0.3"
		});
		$("#Popup_Event201106_Background").fadeIn("fast");
		$("#Popup_Event201106").slideDown("slow"); //.fadeIn("fast");

	}
	catch(e) {
		alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}

 
function fn_Event201106_Close()
{
	//disables popup only if it is enabled
	$("#Popup_Event201106_Background").fadeOut("fast");
	$("#Popup_Event201106").slideUp("slow");
}





// ±â´É¼³¸í : ÃÖ»ó´Ü¿¡¼­ ÇÔ¼ö ½ÇÇà½ÃÅ°±â
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â
function fn_Company() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_SearchSchool_BackgroundWin = $("<div id='Popup_Company_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10020;'></div>");
		$(document.body).append(Popup_SearchSchool_BackgroundWin);


		var Url = "/contents/common/company/companypop.asp";

		$('#Popup_Company').remove();

		var SearchSchoolWin = $("<div id='Popup_Company' style='display:none;width:960px;height:505px;z-index:10021;'></div>");

		SearchSchoolWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='Company' name='Company' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "960px")
			.attr("height", "505px")
			.attr("scrolling", "no")
		);
		$(document.body).append(SearchSchoolWin);

		var popupHeight = $("#Popup_Company").height();
		var popupWidth = $("#Popup_Company").width();
		//centering
		$("#Popup_Company").css({
			"position": "absolute",
			"top": 100,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		$("#Popup_Company_Background").css({
			"opacity": "0.3"
		});
		$("#Popup_Company_Background").fadeIn("fast");
		$("#Popup_Company").slideDown("slow"); //.fadeIn("fast");

	}
	catch(e) {
		alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}

// ±â´É¼³¸í : Áö»çÃ£±â ´Ý±â
// »ç¿ëÀ§Ä¡ : Áö»çÃ£±â ³»ºÎ
function fn_Company_Close()
{
	//disables popup only if it is enabled
	$("#Popup_Company_Background").fadeOut("fast");
	$("#Popup_Company").slideUp("slow");
}






// ±â´É¼³¸í : ÃÖ»ó´Ü¿¡¼­ ÇÔ¼ö ½ÇÇà½ÃÅ°±â
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â
function fn_JisaSearch() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_SearchSchool_BackgroundWin = $("<div id='Popup_JisaSearch_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10020;'></div>");
		$(document.body).append(Popup_SearchSchool_BackgroundWin);


		var Url = "/contents/common/company/branchpop.asp";

		$('#Popup_JisaSearch').remove();

		var SearchSchoolWin = $("<div id='Popup_JisaSearch' style='display:none;width:960px;height:505px;z-index:10021;'></div>");

		SearchSchoolWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='JisaSearch' name='JisaSearch' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "960px")
			.attr("height", "505px")
			.attr("scrolling", "no")
		);
		$(document.body).append(SearchSchoolWin);

		var popupHeight = $("#Popup_JisaSearch").height();
		var popupWidth = $("#Popup_JisaSearch").width();
		//centering
		$("#Popup_JisaSearch").css({
			"position": "absolute",
			"top": 100,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		$("#Popup_JisaSearch_Background").css({
			"opacity": "0.3"
		});
		$("#Popup_JisaSearch_Background").fadeIn("fast");
		$("#Popup_JisaSearch").slideDown("slow"); //.fadeIn("fast");

	}
	catch(e) {
		alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}

// ±â´É¼³¸í : Áö»çÃ£±â ´Ý±â
// »ç¿ëÀ§Ä¡ : Áö»çÃ£±â ³»ºÎ
function fn_JisaSearch_Close()
{
	//disables popup only if it is enabled
	$("#Popup_JisaSearch_Background").fadeOut("fast");
	$("#Popup_JisaSearch").slideUp("slow");
}


// ±â´É¼³¸í : ÃÖ»ó´Ü¿¡¼­ ÇÔ¼ö ½ÇÇà½ÃÅ°±â
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â
function fn_SearchSchool() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_SearchSchool_BackgroundWin = $("<div id='Popup_SearchSchool_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10050;'></div>");
		$(document.body).append(Popup_SearchSchool_BackgroundWin);


		var Url = "/Contents/SWF/FlashSearchSchool.Asp";

		$('#Popup_SearchSchool').remove();

		var SearchSchoolWin = $("<div id='Popup_SearchSchool' style='display:none;width:960px;height:505px;z-index:10051;'></div>");

		SearchSchoolWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='SearchSchool' name='SearchSchool' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "960px")
			.attr("height", "505px")
			.attr("scrolling", "no")
		);
		$(document.body).append(SearchSchoolWin);

		var popupHeight = $("#Popup_SearchSchool").height();
		var popupWidth = $("#Popup_SearchSchool").width();
		//centering
		$("#Popup_SearchSchool").css({
			"position": "absolute",
			"top": 100,
			"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");

	}
	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");

	// ¾îÂ¿¼ö ¾ø´Â ÄÚµå (ÇÃ·¡½Ã¼öÁ¤À» ¾ÈÇÏ·Á´Ù º¸´Ï)
	$("#Popup_MenuSearchSchool_Background").fadeOut("fast");
	$("#Popup_MenuSearchSchool").slideUp("slow");
}




// ±â´É¼³¸í : »ó´Ü¸Þ´º¿¡¼­ ÇÐ±³Ã£±â ½ÇÇà½ÃÅ°±â
// »ç¿ëÀ§Ä¡ : À¯ÇÐ´åÄÄ »ó´Ü¸Þ´º
function fn_MenuSearchSchool() {


	if ($("#Popup_MenuSearchSchool_Background").css('display') == 'block') {
		fn_MenuSearchSchool_Close()
	}
	else {


		try {

			var windowHeight = $(document.body).height();
			var windowWidth = $(document.body).width();

			var Popup_MenuSearchSchool_BackgroundWin = $("<div id='Popup_MenuSearchSchool_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10020;'></div>");
			$(document.body).append(Popup_MenuSearchSchool_BackgroundWin);


			var Url = "/Contents/SWF/MenuSearchSchool.Asp";

			$('#Popup_MenuSearchSchool').remove();

			var MenuSearchSchoolWin = $("<div id='Popup_MenuSearchSchool' style='display:none;width:990px;height:505px;z-index:10021;text-align: right'></div>");

			MenuSearchSchoolWin.append(
				$("<iframe allowTransparency='true' frameborder='no' id='MenuSearchSchool' name='MenuSearchSchool' src='" + Url + "'></iframe>")
				.attr("marginWidth", "0px")
				.attr("marginHeight", "0px")
				.attr("frameborder", "no")
				.attr("width", "960px")
				.attr("height", "505px")
				.attr("scrolling", "no")
			);
			$(document.body).append(MenuSearchSchoolWin);

			var popupHeight = $("#Popup_MenuSearchSchool").height();
			var popupWidth = $("#Popup_MenuSearchSchool").width();
			//centering
			$("#Popup_MenuSearchSchool").css({
				"position": "absolute",
				"top": 88,
				"left": windowWidth/2-popupWidth/2
			});
			//only need force for IE6
			


			$("#Popup_MenuSearchSchool_Background").css({
				"opacity": "0.0"
			});
			$("#Popup_MenuSearchSchool_Background").fadeIn("fast");
			$("#Popup_MenuSearchSchool").slideDown("slow");

		}
		catch(e) {
			alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
			//top.document.location.href = Com_Url_Domain;
		}

	}



}


// ±â´É¼³¸í : »ó´Ü¸Þ´º¿¡¼­ ÇÐ±³Ã£±â ´Ý±â
// »ç¿ëÀ§Ä¡ : »ó´Ü¸Þ´º¿¡¼­ ÇÐ±³Ã£±â ³»ºÎ
function fn_MenuSearchSchool_Close()
{
	//disables popup only if it is enabled
	$("#Popup_MenuSearchSchool_Background").fadeOut("fast");
	$("#Popup_MenuSearchSchool").slideUp("slow");
}



// ±â´É¼³¸í : »çÀÌ¹ö»ó´ã Å¬¸¯½Ã
// »ç¿ëÀ§Ä¡ : ¿©±âÀú±â And fn_Top_ExecuteFunction_List()
function fn_CyberCounsel() {

	try {

		/*
		if (navigator.userAgent.indexOf("MSIE 6.0") > 0 ) {
			// ¸ÞÀÎ¿¡¼­´Â ·¹ÀÌ¾Æ¿ô ±¸Á¶ ¶§¹®¿¡ ³ôÀÌ¸¦ ¸øºÒ·¯¿Í¼­..
			if (document.location.pathname.toLowerCase() == "/main.asp") {
				var BackgroundPageHeight = 1277;
			}
			else {
				var BackgroundPageHeight = parseInt(document.body.scrollHeight);
			}
		}
		else {
			var BackgroundPageHeight = parseInt( document.documentElement.scrollHeight );
		} 

		//if (document.body.clientHeight > BackgroundPageHeight) {
		//	var BackgroundPageHeight = document.body.clientHeight;
		//}
		*/

		var windowHeight = $(document.body).height(); //parseInt( document.documentElement.scrollWidth );
		var windowWidth = $(document.body).width();	//parseInt( document.documentElement.scrollHeight );

		var Popup_CyberCounsel_BackgroundWin = $("<div id='Popup_CyberCounsel_Background' style=' display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10010;'></div>");
		$(document.body).append(Popup_CyberCounsel_BackgroundWin);

		var Url = "/Contents/SWF/OnlineCounsel_Window.asp";

		$('#Popup_CyberCounsel').remove();

		var CyberCounselWin = $("<div id='Popup_CyberCounsel' 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", "no")
			.attr("width", "871px")
			.attr("height", "501px")
			.attr("scrolling", "no")
			.attr("src",Url) 
		);
		$(document.body).append(CyberCounselWin);
			
		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");
	//	popupCyberCounselStatus = 0;
	//}
}


var popupEstimateStatus = 0;
// ±â´É¼³¸í : °ßÀû¼­
// »ç¿ëÀ§Ä¡ : »çÀÌ¹ö»ó´ãÃ¢¿¡¼­
function fn_CyberEstimate() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_Estimate_BackgroundWin = $("<div id='Popup_Estimate_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10030;'></div>");
		$(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 id='Popup_Estimate' style='display:none;width:756px;height:679px;z-index:10031;'></div>");

		EstimateWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='Estimate' name='Estimate' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "756px")
			.attr("height", "679px")
			.attr("scrolling", "no")
		);
		$(document.body).append(EstimateWin);

		var popupHeight = $("#Popup_Estimate").height();
		var popupWidth = $("#Popup_Estimate").width();
		//centering
		$("#Popup_Estimate").css({
			"position": "absolute",
			"top": 100,
			"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");
		//	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");
	//	popupEstimateStatus = 0;
	//}
}


// ±â´É¼³¸í : °ßÀû¼­
// »ç¿ëÀ§Ä¡ : »çÀÌ¹ö»ó´ãÃ¢¿¡¼­
function fn_CyberEstimateSale() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_EstimateSale_BackgroundWin = $("<div id='Popup_EstimateSale_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;width:99.7%;top:0;left:0;background:#000000;border:1px solid #cecece;z-index:10040;'></div>");
		$(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 id='Popup_EstimateSale' style='display:none;width:756px;height:679px;z-index:10041;'></div>");

		EstimateSaleWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='EstimateSale' name='EstimateSale' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "756px")
			.attr("height", "679px")
			.attr("scrolling", "no")
		);
		$(document.body).append(EstimateSaleWin);

		var popupHeight = $("#Popup_EstimateSale").height();
		var popupWidth = $("#Popup_EstimateSale").width();
		//centering
		$("#Popup_EstimateSale").css({
			"position": "absolute",
			"top": 100,
			"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");

	}
	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");
}



// ±â´É¼³¸í : ºÎ»êÁö»ç ¿ÀÇÂ ½ÇÇà½ÃÅ°±â
// »ç¿ëÀ§Ä¡ : ÀÌº¥Æ® ÆäÀÌÁö ³»
function fn_EventBusanOpen() {

	try {

		var windowHeight = $(document.body).height();
		var windowWidth = $(document.body).width();

		var Popup_SearchSchool_BackgroundWin = $("<div id='Popup_EventBusanOpen_Background' style='display:none;position:fixed;_position:absolute;height:"+windowHeight+"px;top:0;left:0;border:1px solid #cecece;z-index:10060;'></div>");
		$(document.body).append(Popup_SearchSchool_BackgroundWin);


		var Url = "/Contents/Common/Event/2010/9/Busan_open1.asp";

		$('#Popup_EventBusanOpen').remove();

		var SearchSchoolWin = $("<div id='Popup_EventBusanOpen' style='display:none;width:900px;height:1168px;z-index:10061;'></div>");

		SearchSchoolWin.append(
			$("<iframe  allowTransparency='true' frameborder='no' id='EventBusanOpen' name='EventBusanOpen' src='" + Url + "'></iframe>")
			.attr("marginWidth", "0px")
			.attr("marginHeight", "0px")
			.attr("frameborder", "no")
			.attr("width", "900px")
			.attr("height", "1168px")
			.attr("scrolling", "no")
		);
		$(document.body).append(SearchSchoolWin);

		var popupHeight = $("#Popup_EventBusanOpen").height();
		var popupWidth = $("#Popup_EventBusanOpen").width();
		//centering
		$("#Popup_EventBusanOpen").css({
			"position": "absolute",
			"top": 100,
			"left": windowWidth/2-popupWidth/2
		});
		//only need force for IE6
		


		$("#Popup_EventBusanOpen_Background").css({
			"opacity": "0.0"
		});
		$("#Popup_EventBusanOpen_Background").fadeIn("fast");
		$("#Popup_EventBusanOpen").slideDown("slow"); //.fadeIn("fast");

	}
	catch(e) {
		alert('ÃÊ±âÈ­ ÇÏÁö ¸øÇß½À´Ï´Ù.\n\n´Ù½Ã ½ÃµµÇÏ¼¼¿ä.');
		//top.document.location.href = Com_Url_Domain;
	}

}

// ±â´É¼³¸í : ºÎ»êÁö»ç ¿ÀÇÂ ´Ý±â
// »ç¿ëÀ§Ä¡ : ºÎ»êÁö»ç ¿ÀÇÂ ³»ºÎ
function fn_EventBusanOpen_Close()
{
	//disables popup only if it is enabled
	$("#Popup_EventBusanOpen_Background").fadeOut("fast");
	$("#Popup_EventBusanOpen").slideUp("slow");
}
