// 2008-04-25 5:11¿ÀÈÄ
// haroc
// ##############################################################################################
// ÆäÀÌÁö ·Îµå½Ã¿¡ °øÅëÀûÀ¸·Î »ç¿ëÇÒ ÇÔ¼ö¸¦ ¿©±â¿¡ ¸ð¾Æ³õ´Â´Ù.
Event.observe(window, 'load', function() {
	// ¸ÞÀÎÈ­¸é ¹è³Ê
	// if ( location.href.indexOf('sfc_main.asp') > 0 ) {
	// 	if ( getCookie( "Notice1" ) != "done" ) {
	// 		noticeWindow  =  window.open('popup/open.htm','Notice1','width=369,height=560,left=0,top=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0');
	// 		if ( noticeWindow )
	// 			noticeWindow.opener = self;
	// 	}
	// }
	// ¸ÞÀÎÈ­¸é ¹è³Ê
	if ( $("skip") ) {
		$("skip").focus();
	}

	div_sub_contents();
});

	// ************************************************************************************************************************************
    // ÀÛ ¼º ÀÚ : ¹ÚÁø¼®
    // ÀÛ ¼º ÀÏ : 2006-08-11
    // ÆÄ ÀÏ ¸í : cn_function.js
    // °ü·ÃÆÄÀÏ :
    // °ü·Ã  DB :
    // ¼³    ¸í : ÀÚ¹Ù½ºÅ©¸³Æ® °øÅëÇÔ¼ö
    // ************************************************************************************************************************************

    // ¼ö Á¤ ÀÚ :
    // ¼ö Á¤ ÀÏ :
    // ¼öÁ¤³»¿ë :
    // ************************************************************************************************************************************


    // var	vServerURL = "http://www.sfc.seoul.kr";
    var	vServerURL = "http://www.sfc.seoul.kr";
	// ´Þ·Â Å©±â Á¶Á¤ÇÔ¼ö ½ÃÀÛ ************************************************************************************************************
	function doResize()
	{
		if ( container.Height && Calendar.document.body.scrollHeight)
			container.height	= Calendar.document.body.scrollHeight;
		if ( container.width && Calendar.document.body.scrollWidth )
			container.width		= Calendar.document.body.scrollWidth;
	}
	// ´Þ·Â Å©±â Á¶Á¤ÇÔ¼ö Á¾·á ************************************************************************************************************


	// Å¾À¸·Î °¡±â ÇÔ¼ö ½ÃÀÛ **************************************************************************************************************
	function goTop(orix,oriy,desx,desy)
	{
		var	Timer;
		var	winHeight =	document.body.scrollTop;
		if(Timer) clearTimeout(Timer);
		startx = 0;
		starty = winHeight;
		if(!orix ||	orix < 0) orix = 0;
		if(!oriy ||	oriy < 0) oriy = 0;
		var	speed =	7;
		if(!desx) desx = 0 + startx;
		if(!desy) desy = 0 + starty;
		desx +=	(orix -	startx)	/ speed;
		if (desx < 0) desx = 0;
		desy +=	(oriy -	starty)	/ speed;
		if (desy < 0) desy = 0;
		var	posX = Math.ceil(desx);
		var	posY = Math.ceil(desy);
		window.scrollTo(posX, posY);
		if((Math.floor(Math.abs(startx - orix))	< 1) &&	(Math.floor(Math.abs(starty	- oriy)) < 1)){
			clearTimeout(Timer);
			window.scroll(orix,oriy);
		}else if(posX != orix || posY != oriy){
			Timer =	setTimeout("goTop("+orix+","+oriy+","+desx+","+desy+")",15);
		}else{
			clearTimeout(Timer);
		}
	}
	// Å¾À¸·Î °¡±â ÇÔ¼ö Á¾·á **************************************************************************************************************


	// E-MAIL Ã¼Å©ÇÔ¼ö ½ÃÀÛ ***************************************************************************************************************
	// str:email value
	function gfnCheckEmail(str)
	{
		// regular expression Áö¿ø ¿©ºÎ Á¡°Ë
		var supported = 0;

		if (window.RegExp)
		{
			var tempStr = "a";
			var tempReg = new RegExp(tempStr);

			if (tempReg.test(tempStr)) supported = 1;
		}

		if (!supported)

		return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);

		var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
		var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,4})(\\]?)$");
		return (!r1.test(str) && r2.test(str));
	}
	// E-MAIL Ã¼Å©ÇÔ¼ö Á¾·á ***************************************************************************************************************


	// ÀÔ·Â ÅØ½ºÆ® ¹®ÀÚ¿­ ±æÀÌ Ã¼Å©ÇÔ¼ö ½ÃÀÛ **********************************************************************************************
	// sval1 : Ã¼Å©ÇÊµå
	// sval2 : byte¼ö º¸¿©ÁÙÇÊµå¸í
	// sval3 : ¿¡·¯½Ã º¸¿©ÁÙ Å¸ÀÌÆ²
	// sval4 : 1 -> ÇÊ¼öÀÔ·Â
	// nsize : maxSize
	function gfnCheckLen(sval1, sval2, sval3, sval4, nsize)
	{
		var temp, k;
		var mycount;
		mycount = 0;
		var len = sval1.value.length;
		var len2 = 0;

		for(k=0;k<len;k++)
		{
			temp = sval1.value.charAt(k);
			//alert(escape(temp).length);

			if ((temp != " " ) && ( len2 == 0 ) )
			{
				len2 = len2 + 1
			}

			if(escape(temp).length > 4)
				mycount += 2;
			else
				mycount++;
		}

		if ((sval4 == 1 ) && (len2 == 0) )
		{
			alert(sval3 +'(Àº)´Â ÇÊ¼öÇ×¸ñÀÔ´Ï´Ù...!!!');
			sval1.focus();
			return false;
		}

		if (sval2 != "" )
		{
			sval2.value = "(Çö " + mycount + " byte...!!!)";
		}

		if (nsize > 0 )
		{
			if (mycount > nsize)
			{
				alert(sval3 + " ÀÔ·Â °¡´É ±ÛÀÚ¼ö¸¦ ÃÊ°úÇÏ¿´½À´Ï´Ù...!!!\n\nÃÖ´ë°¡´ÉByte¼ö : " + nsize + "\nÇöÀç ÀÔ·ÂByte¼ö : " + mycount + "\n\n¼öÁ¤¹Ù¶ø´Ï´Ù...!!!");
				sval1.focus();
				return false;
			}
		}

		return true;
	}
	// ÀÔ·Â ÅØ½ºÆ® ¹®ÀÚ¿­ ±æÀÌ Ã¼Å©ÇÔ¼ö Á¾·á **********************************************************************************************


	// ÁÖ¹Î¹øÈ£ Ã¼Å©ÇÔ¼ö ½ÃÀÛ *************************************************************************************************************
	// jumin1   Àº ÁÖ¹Î¹øÈ£¾Õ textÄÁÆ®·Ñ ÀÌ¸§
	// jumin2   ´Â ÁÖ¹Î¹øÈ£µÚ textÄÁÆ®·Ñ ÀÌ¸§
	function gfnCheckIdnum(jumin1,jumin2)
	{
		var chk =0;

		var yy = jumin1.value.substring(0,2);
		var mm = jumin1.value.substring(2,4);
		var dd = jumin1.value.substring(4,6);
		var sex = jumin2.value.substring(0,1);

		if (jumin2.value.split(" ").join("") == "")
		{
			alert ('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À...!!!');
			jumin1.focus();
			return false;
		}

		if (jumin1.value.length!=6)
		{
			alert ('ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À...!!!');
			jumin1.focus();
			return false;
		}


		if (jumin2.value.length != 7)
		{
			alert ('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À...!!!');
			jumin2.focus();
			return false;
		}

		if (isNaN(jumin1.value) || isNaN(jumin2.value))
		{
			jumin1.value = ""
			jumin2.value = ""
			alert('ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù...!!!');
			return false;
		}

		if ((jumin1.value.length!=6)||(mm <1||mm>12||dd<1))
		{
			jumin1.value = ""
			alert ('ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®°¡ Àß¸øµÇ¾ú½À´Ï´Ù...!!!');
			jumin1.focus();
			return false;
		}


		if ((sex != 1 && sex !=2 && sex != 3 && sex != 4 )||(jumin2.value.length != 7 ))
		{
			jumin2.value = ""
			alert ('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®°¡ Àß¸øµÇ¾ú½À´Ï´Ù...!!!');
			jumin2.focus();
			return false;
		}

		for (var i = 0; i <=5 ; i++)
		{
			chk = chk + ((i%8+2) * parseInt(jumin1.value.substring(i,i+1)))
		}

		for (var i = 6; i <=11 ; i++)
		{
			chk = chk + ((i%8+2) * parseInt(jumin2.value.substring(i-6,i-5)))
		}

		chk = 11 - (chk %11)
		chk = chk % 10

		if (chk != jumin2.value.substring(6,7))
		{
			alert ('¸ÂÁö ¾Ê´Â ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù...!!!');
			jumin1.focus();
			return false;
		}

		return true;
	}
	// ÁÖ¹Î¹øÈ£ Ã¼Å©ÇÔ¼ö Á¾·á *************************************************************************************************************


	// ¼ýÀÚ Ã¼Å©ÇÔ¼ö ½ÃÀÛ *****************************************************************************************************************
	// ¼ýÀÚ¸¸ ÀÔ·Â¹ÞÀ½
	function gfnNumberCheck()
	{
		if((event.keyCode < 48) || (event.keyCode > 57))
			event.returnValue = false;
	}
	// ¼ýÀÚ Ã¼Å©ÇÔ¼ö Á¾·á *****************************************************************************************************************


	// °ø¹é Ã¼Å©ÇÔ¼ö ½ÃÀÛ *****************************************************************************************************************
	// °ø¹éÁ¦¿ÜÇÑ ¹®ÀÚÃ¼Å©
	function gfnTrim(pstrText)
	{
		 var strCheck;
		 strCheck = pstrText.indexOf(" ");

		 while (strCheck != -1)
		 {
			 pstrText = pstrText.replace(" ", "");
			 strCheck  = pstrText.indexOf(" ");
		 }

		 return pstrText;
	 }
	 // °ø¹é Ã¼Å©ÇÔ¼ö Á¾·á ****************************************************************************************************************


	// ÇÁ·¹ÀÓ Á¶Á¤ÇÔ¼ö ½ÃÀÛ ***************************************************************************************************************
	function setScrollingHeight(height)
	{
		try
		{
			document.all("MainContents").style.height = height+10;
			//document.all("MainContents").focus();
		}

		catch(e){}
	}
	// ÇÁ·¹ÀÓ Á¶Á¤ÇÔ¼ö Á¾·á ***************************************************************************************************************


	// ÇÁ·¹ÀÓ Á¶Á¤ÇÔ¼ö(2) ½ÃÀÛ ************************************************************************************************************
	function setScrollingHeight1(height)
	{
		try
		{
			document.all("MainContents1").style.height = height+10;
			//document.all("MainContents1").focus();
		}

		catch(e){}
	}
	// ÇÁ·¹ÀÓ Á¶Á¤ÇÔ¼ö(2) Á¾·á ************************************************************************************************************


	// Æ¯¼ö¹®ÀÚ Ã¼Å©ÇÔ¼ö ½ÃÀÛ *************************************************************************************************************
	// Æ¯¼ö¹®ÀÚ Ã¼Å©
	function gfnCheckChar(pVar)
	{
		// ¸¸µé¼ö ¾ø´Â Æú´õ¸í Ã¼Å©1 ('\','/',':','*',''')
		if ((pVar.indexOf("\\") != -1) || (pVar.indexOf("/") != -1) || (pVar.indexOf(":") != -1) || (pVar.indexOf("*") != -1))
		{
			return false;
		}

		// ¸¸µé¼ö ¾ø´Â Æú´õ¸í Ã¼Å©2 ('?','<','>','|')
		if ((pVar.indexOf("?") != -1) || (pVar.indexOf("<") != -1) || (pVar.indexOf(">") != -1) || (pVar.indexOf("|") != -1))
		{
			return false;
		}

		// ¸¸µé¼ö ¾ø´Â Æú´õ¸í Ã¼Å©3 ('&')
		if ((pVar.indexOf("&") != -1) || (pVar.indexOf(" ") != -1)|| (pVar.indexOf("'") != -1))
		{
			return false;
		}

		return true;
	}
	// Æ¯¼ö¹®ÀÚ Ã¼Å©ÇÔ¼ö Á¾·á *************************************************************************************************************


	// ÇÁ·¹ÀÓ»ó´Ü ¹× ½Å±ÔÃ¢À¸·Î °æ·ÎÀÌµ¿ ½ÃÀÛ *********************************************************************************************
	function gfnGoURL(targetName,targetURL)
	{
		if (targetName!='')
		{
				parent.location.href=targetURL;
		}

		//eval(targetName+'.location.href.href='+targetURL);

		else window.open(targetURL);
	}
	// ÇÁ·¹ÀÓ»ó´Ü ¹× ½Å±ÔÃ¢À¸·Î °æ·ÎÀÌµ¿ Á¾·á *********************************************************************************************

	//ÇÏ´Ù¸¶ÀÌ ÇÃ·¡½Ã »ðÀÔ ÀÚ¹Ù½ºÅ©¸³Æ®-¾×Æ¼ºê¿¢½ºÆÐÄ¡´ëºñ
	//2006-02-09
	//°¢ ¼Ó¼º ¿ÜºÎ ÀÔ·Â.´ÙÁß»ç¿ë.

	function FlashInsert(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, FlashBGColor, QSetting, FlashAlign,Flashscale,Flashloc)
	{
		document.write('<object CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('CODEBASE="https://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0" ');
		document.write(' id="'+FlashIDName+'" width="' + FlashWidth + '" height="' + FlashHeight + '" align="'+FlashAlign+'">');
		document.write('<PARAM NAME="movie" VALUE="'+ FlashFileName +'">');
		document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');
		document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');
		document.write('<PARAM NAME="scale" VALUE="'+Flashscale+'">');
		document.write('<PARAM NAME="salign" VALUE="'+Flashloc+'">');
		document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');
		document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');
		document.write('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
		document.write(' width="' + FlashWidth + '" height="' + FlashHeight + '" quality="'+QSetting+'" bgcolor="'+FlashBGColor+'"scale="'+Flashscale+'"salign="'+Flashloc+'"');
		document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
		document.write(' PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer" >');
		document.write('</EMBED>');
		document.write('</OBJECT>');
	}

	function editorInsert(gstrBlogEditorFileUrl, strContent){
		document.write('<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>');
		document.write('  <!-- Easy Web Editor ¶óÀÌ¼¾½ºÆÐÅ°Áö ÆÄÀÏ·Î ¹Ýµå½Ã lpkÆÄÀÏÀÌ ÀÖ´Â °æ·Î¸¦ ¼ÂÆÃ -->');
		document.write('  <!-- lpkÆÄÀÏÀÌ ÀÖ´Â µð·ºÅä¸®¿¡ ºÎ¿©¹ÞÀº license.dat ÆÄÀÏÀ» ¹Ýµå½Ã °°ÀÌ ³Ö¾î¾ß ÇÑ´Ù. -->');
		document.write('  <PARAM NAME="LPKPath" VALUE="'+vServerURL+'/ActiveX/EasyWebEditor.lpk">');
		document.write('</OBJECT> ');
		document.write('<!-- version=1,5,0,28 °ªÀÌ ¹Ù²î¸é ¹Ýµå½Ã version°ªÀ» ¹Ù²ãÁÖ¾î¾ß ¾÷µ¥ÀÌÆ®°¡ µÈ´Ù.-->');
		document.write('<object id="ew" codebase="'+vServerURL+'/ActiveX/EasyWebEditor.CAB#version=1,5,0,54"  classid="CLSID:0E9CD89A-6C39-4770-880D-32BFF52BB9ED" width=447 height=520 VIEWASTEXT>');
		document.write('  <!-- ¼­¹ö URL ¼ÂÆÃ -->');
		document.write('  <param name="HttpServerURL" value="www.sfc.seoul.kr">');
		document.write('  <!-- Easy Web Editor¿¡¼­ µî·ÏÇÑ ÀÌ¹ÌÁö/ÇÃ·¡½¬/µ¿¿µ»ó ÆÄÀÏµîÀ» ¾÷·Îµå Ã³¸®ÇÏ±â À§ÇÑ ÇÁ·Î±×·¥ -->');
		document.write('  <param name="HttpPostScriptURL" value="/common/EditorFileUpload.asp">');
		document.write('  <!-- Easy Web Editor¿¡¼­ µî·ÏÇÑ ÀÌ¹ÌÁö/ÇÃ·¡½¬/µ¿¿µ»ó ÆÄÀÏµîÀ» ÀúÀåÇÒ °¡»ó°æ·ÎÁöÁ¤ -->');
		document.write('  <param name="HttpSaveImgURL" value="'+gstrBlogEditorFileUrl+'">');
		document.write('  <!-- ³»¿ë¼öÁ¤½Ã Easy Web Editor·Î º¸³¾ ³»¿ë : ¼öÁ¤½Ã¿¡ ¼ÂÆÃ -->');
		document.write('  <param name="HttpSetContent" value="'+strContent+'">');
		document.write('</object> ');
	}


	function BlogEditorInsert(pFileUrl, pContent)
	{
		document.write('<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>');
		document.write('  <!-- Easy Web Editor ¶óÀÌ¼¾½ºÆÐÅ°Áö ÆÄÀÏ·Î ¹Ýµå½Ã lpkÆÄÀÏÀÌ ÀÖ´Â °æ·Î¸¦ ¼ÂÆÃ -->');
		document.write('  <!-- lpkÆÄÀÏÀÌ ÀÖ´Â µð·ºÅä¸®¿¡ ºÎ¿©¹ÞÀº license.dat ÆÄÀÏÀ» ¹Ýµå½Ã °°ÀÌ ³Ö¾î¾ß ÇÑ´Ù. -->');
		document.write('  <PARAM NAME="LPKPath" VALUE="'+vServerURL+'/ActiveX/EasyWebEditor.lpk">');
		document.write('</OBJECT> ');
		document.write('<!-- version=1,5,0,28 °ªÀÌ ¹Ù²î¸é ¹Ýµå½Ã version°ªÀ» ¹Ù²ãÁÖ¾î¾ß ¾÷µ¥ÀÌÆ®°¡ µÈ´Ù.-->');
		document.write('<object id="ew" codebase="'+vServerURL+'/ActiveX/EasyWebEditor.CAB#version=1,5,0,54"  classid="CLSID:0E9CD89A-6C39-4770-880D-32BFF52BB9ED" width=590 height=520 VIEWASTEXT>');
		document.write('  <!-- ¼­¹ö URL ¼ÂÆÃ -->');
		document.write('  <param name="HttpServerURL" value="www.sfc.seoul.kr">');
		document.write('  <!-- Easy Web Editor¿¡¼­ µî·ÏÇÑ ÀÌ¹ÌÁö/ÇÃ·¡½¬/µ¿¿µ»ó ÆÄÀÏµîÀ» ¾÷·Îµå Ã³¸®ÇÏ±â À§ÇÑ ÇÁ·Î±×·¥ -->');
		document.write('  <param name="HttpPostScriptURL" value="/ActiveX/EditorFileUpload.asp">');
		document.write('  <!-- Easy Web Editor¿¡¼­ µî·ÏÇÑ ÀÌ¹ÌÁö/ÇÃ·¡½¬/µ¿¿µ»ó ÆÄÀÏµîÀ» ÀúÀåÇÒ °¡»ó°æ·ÎÁöÁ¤ -->');
		document.write('  <param name="HttpSaveImgURL" value="'+pFileUrl+'">');
		document.write('  <!-- ³»¿ë¼öÁ¤½Ã Easy Web Editor·Î º¸³¾ ³»¿ë : ¼öÁ¤½Ã¿¡ ¼ÂÆÃ -->');
		document.write('  <param name="HttpSetContent" value="'+pContent+'">');
		document.write('</object> ');
	}

	function AdminPressEditorInsert(pFileUrl, pContent)
	{
		document.write('<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>');
		document.write('  <!-- Easy Web Editor ¶óÀÌ¼¾½ºÆÐÅ°Áö ÆÄÀÏ·Î ¹Ýµå½Ã lpkÆÄÀÏÀÌ ÀÖ´Â °æ·Î¸¦ ¼ÂÆÃ -->');
		document.write('  <!-- lpkÆÄÀÏÀÌ ÀÖ´Â µð·ºÅä¸®¿¡ ºÎ¿©¹ÞÀº license.dat ÆÄÀÏÀ» ¹Ýµå½Ã °°ÀÌ ³Ö¾î¾ß ÇÑ´Ù. -->');
		document.write('  <PARAM NAME="LPKPath" VALUE="'+vServerURL+'/ActiveX/EasyWebEditor.lpk">');
		document.write('</OBJECT> ');
		document.write('<!-- version=1,5,0,28 °ªÀÌ ¹Ù²î¸é ¹Ýµå½Ã version°ªÀ» ¹Ù²ãÁÖ¾î¾ß ¾÷µ¥ÀÌÆ®°¡ µÈ´Ù.-->');
		document.write('<object id="ew" codebase="'+vServerURL+'/ActiveX/EasyWebEditor.CAB#version=1,5,0,54"  classid="CLSID:0E9CD89A-6C39-4770-880D-32BFF52BB9ED" width=590 height=520 VIEWASTEXT>');
		document.write('  <!-- ¼­¹ö URL ¼ÂÆÃ -->');
		document.write('  <param name="HttpServerURL" value="www.sfc.seoul.kr">');
		document.write('  <!-- Easy Web Editor¿¡¼­ µî·ÏÇÑ ÀÌ¹ÌÁö/ÇÃ·¡½¬/µ¿¿µ»ó ÆÄÀÏµîÀ» ¾÷·Îµå Ã³¸®ÇÏ±â À§ÇÑ ÇÁ·Î±×·¥ -->');
		document.write('  <param name="HttpPostScriptURL" value="/BackOffice/Press_EditorFileUpload.asp">');
		document.write('  <!-- Easy Web Editor¿¡¼­ µî·ÏÇÑ ÀÌ¹ÌÁö/ÇÃ·¡½¬/µ¿¿µ»ó ÆÄÀÏµîÀ» ÀúÀåÇÒ °¡»ó°æ·ÎÁöÁ¤ -->');
		document.write('  <param name="HttpSaveImgURL" value="'+pFileUrl+'">');
		document.write('  <!-- ³»¿ë¼öÁ¤½Ã Easy Web Editor·Î º¸³¾ ³»¿ë : ¼öÁ¤½Ã¿¡ ¼ÂÆÃ -->');
		document.write('  <param name="HttpSetContent" value="'+pContent+'">');
		document.write('</object> ');
	}

	function show_all(idx)
	{

		if(idx==1)
		{
			document.all.show_3.style.display="none";
			document.all.show_2.style.display="none";

			//document.all.show_td1.style.display="";
			if ( document.all.img1 ) {
				document.all.img1.style.display="none";
			}
			if ( document.all.img2 ) {
				document.all.img2.style.display="";
			}

			document.all.show_1.width="706px";
		}

		else
		{
			document.all.show_3.style.display="";
			document.all.show_2.style.display="";

			document.all.img1.style.display="";
			document.all.img2.style.display="none";
			//document.all.show_1.width="100%";
		}
	}

	/*
	|	½Ã¼³¹°¿¡ ´ëÇÑ ÁöµµÀ§Ä¡¸¦ µð½ºÇÃ·¹ÀÌ ÇÔ.
	*/
	function ff_ShowBldgMap(bldg_name, x, y)
	{
	        var Url = "";
	        var Param = "";
		var Options = "";

	        Url = "http://210.90.46.192";
	        Param = "/WardOffice/MiniMap/index.jsp?Mode=4&SisulName=" + bldg_name + "&RetSisulX=" + x + "&RetSisulY=" + y;
	        Options = "scrollbars=no, status=no, resizable=no, width=600, height=516";

		window.open(Url+Param, "ShowBldgMap", Options);
	}

	function login()
	{
		var memberId = document.frmLogin.member_id.value;
		var password = document.frmLogin.member_pass.value;

		if (memberId == "")
		{
			alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä...!!!");
			document.frmLogin.member_id.focus();
			return;
		}

		if (password == "")
		{
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä...!!!");
			document.frmLogin.member_pass.focus();
			return;
		}

		document.frmLogin.action = "https://www.sfc.seoul.kr/login/login_ok.asp";
		// document.frmLogin.action = "http://www.sfc.seoul.kr/login/login_ok.asp";
		document.frmLogin.submit();
		return;
	}

	function setCookie (name, value, expires){
		document.cookie = name + "=" + escape (value) +
		"; path=/; expires=" + expires.toGMTString();
	}

	function getCookie(Name){
		var search = Name + "="
		if (document.cookie.length > 0) // ÄíÅ°°¡ ¼³Á¤µÇ¾î ÀÖ´Ù¸é
		{
			offset = document.cookie.indexOf(search)
			if (offset != -1) // ÄíÅ°°¡ Á¸ÀçÇÏ¸é
			{
				offset += search.length
				// set index of beginning of value
			end = document.cookie.indexOf(";", offset)
			// ÄíÅ° °ªÀÇ ¸¶Áö¸· À§Ä¡ ÀÎµ¦½º ¹øÈ£ ¼³Á¤
			if (end == -1)
				end = document.cookie.length
				return unescape(document.cookie.substring(offset, end))
			}
		}
		return "";
	}



	function saveid(form){
		var expdate = new Date();


		// ±âº»ÀûÀ¸·Î 30ÀÏµ¿¾È ±â¾ïÇÏ°Ô ÇÔ. ÀÏ¼ö¸¦ Á¶ÀýÇÏ·Á¸é * 30¿¡¼­ ¼ýÀÚ¸¦ Á¶ÀýÇÏ¸é µÊ
		if (form.checksaveid.checked){
			expdate.setTime(expdate.getTime() + 1000 * 3600 * 24 * 30); // 30ÀÏ
		}
		else{
			expdate.setTime(expdate.getTime() - 1); // ÄíÅ° »èÁ¦Á¶°Ç
		}


		setCookie("saveid", form.member_id.value, expdate);
	}


	function getid(form){
		form.checksaveid.checked = ((form.id.value = getCookie("saveid")) != "");
	}

	// È¸¿øÁ¤º¸¿¡¼­
	function sub_show_1(idx)
	{
		if(idx==1)
		{
			document.all.lrimg_1.style.display="none";
			document.all.lrimg_2.style.display="";
			document.all.lshow_1.style.display="";
		}

		else if(idx==2)
		{
			document.all.lrimg_1.style.display="";
			document.all.lrimg_2.style.display="none";
			document.all.lshow_1.style.display="none";
		}

		else if(idx==3)
		{
			document.all.lmimg_1.style.display="none";
			document.all.lmimg_2.style.display="";
			document.all.lshow_2.style.display="";
		}

		else
		{
			document.all.lmimg_1.style.display="";
			document.all.lmimg_2.style.display="none";
			document.all.lshow_2.style.display="none";
		}

	}

	function imgView(imgFilename, board_idx){
		var vLeft = (screen.width - 840) / 2;
		var vTop =  (screen.height - 650) / 2;
		window.open("/common/myblog_imageView.asp?filename="+imgFilename+"&kubun="+board_idx,"imgView","left="+vLeft+", top="+vTop+", location=no, directories=no, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, status=no, width=840 height=650");
		return false;
	}

	function gonyImgWin(imgFilename){
		var vLeft = (screen.width - 840) / 2;
		var vTop =  (screen.height - 650) / 2;
		window.open("/common/myblog_imageViewEx.asp?filename="+imgFilename,"imgView","left="+vLeft+", top="+vTop+", location=no, directories=no, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, status=no, width=840 height=650");
		return false;
	}

	// È¸¿øÁ¤º¸¿¡¼­
	function showLinkURL(obj)
	{
		if(	obj == "Y"){
			document.all.link_url.style.display = ""
			}
		else{
			document.all.link_url.style.display = "none"
		}
	}

	// ¿ìÆí¹øÈ£ Ã£±â
	function jfcPostSearch(ixx,iyy, izz)
	{
		MM_openBrWindow('/common/SFC_post_Find.asp?rtnPostNo='+ixx+'&rtnPostAddres='+iyy+'&rtnPostIdx='+izz,'','width=460,height=300,scrollbars=yes');
	}

	function MM_openBrWindow(theURL,winName,features)
	{
	  window.open(theURL,winName,features);
	}


	// ºí·Î±×ÀÇ ³»¿ëºÎºÐ IFRAME Å©±â Á¶Á¤
	function doResizeMain()
	{
		if (MainContents.document.body.scrollHeight <= 800)
		{
			main.height	= (800 - MainContents.document.body.scrollHeight) + MainContents.document.body.scrollHeight;
		}

		else
		{
			main.height = MainContents.document.body.scrollHeight;
			main.width	= MainContents.document.body.scrollWidth;
		}
	}

	// È®Àå°Ë»ö¿¡¼­ ±¸±Û¿¡¼­ °Ë»öÇÑÈÄ..
	function doResizeMainGoogle()
	{
		if (MainContentsGoogle.document.body.scrollHeight <= 800)
		{
			google.height	= (800 - MainContentsGoogle.document.body.scrollHeight) + MainContentsGoogle.document.body.scrollHeight;
		}

		else
		{
			google.height = MainContentsGoogle.document.body.scrollHeight;
			google.width	= MainContentsGoogle.document.body.scrollWidth;
		}
	}


	// ¸ÞÀÎÈ­¸é »ó´Ü¸Þ´ºÀÇ MY Fashion BLOG¸¦ Å¬¸¯ÇßÀ»¶§ ºí·Î±× ID °ªÀÌ ¾øÀ»¶§ ÀÌ ÇÔ¼ö¸¦ È£Ãâ
	function goLogin()
	{
		alert('·Î±×ÀÎÈÄ ÀÌ¿ëÇÏ¼¼¿ä...!!!');
		location.href="https://www.sfc.seoul.kr/member/login/login.asp";
		//return;
	}

	// ºí·Î±×ÀÇ ´Þ·Â Å©±â Á¶Á¤
	function doResizeCal()
	{
		cal.height	= Calendar.document.body.scrollHeight;
		cal.width	= Calendar.document.body.scrollWidth;
	}

	// ºí·Î±× ¿À¸¥ÂÊ Å©±â Á¶Á¤
	function doResizeHot()
	{
		hotiframe.height	= Hot.document.body.scrollHeight;
		hotiframe.width		= Hot.document.body.scrollWidth;
	}


	// Ãß°¡ÇÑ ºí·Î±×ÀÇ ¹Ù·Î°¡±â
	function goBlog()
	{
		var aa;
		aa = document.all.favor_blog.options[document.all.favor_blog.selectedIndex].value;

		if (aa == "")
		{
			alert("ÀÌ¿ôºí·Î±×¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä...!!!");
			return false;

		}

		window.open (""+vServerURL+"/blog/blog_index.asp?blog_idx=" + aa + "");
	}

	// ºí·Î±× Ãß°¡ÇÏ±â
	function addFavorite(scriptName, BlogIdx)
	{
		if (confirm("ÀÌ¿ôºí·Î±×·Î Ãß°¡ÇÏ½Ã°Ú½À´Ï±î?"))
		{
			location.href="/blog/myblog_favorite_add_ok.asp?script_name=" + scriptName + "&blog_idx=" + BlogIdx
		}

		else
		{
			return;
		}
	}

	// È¸¿øÁ¤º¸ÇöÈ²
	function viewMember()
	{
		if (Span3.style.display == "inline")
		{
			document.getElementById('list_open3').src = "/images/blog/m08.gif";
			Span3.style.display = 'none';
		}

		else
		{
			document.getElementById('list_open3').src = "/images/blog/m01.gif";
			Span3.style.display = 'inline';
		}
	}


	function fdelGuestbook(frm)
	{
		if (document.frmGuestbook.member_id.value.length == 0)
		{
			alert('·Î±×ÀÎÀ» ÇÏ¼Å¾ß ¹æ¸í·ÏÀ» ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù...!!!');
			return;
		}

		if( confirm("¹æ¸í·ÏÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?") == true )
		{
			frm.submit();
		}
	}

	function faddGuestbook()
	{
		if (document.frmGuestbook.member_id.value.length == 0)
		{
			alert('·Î±×ÀÎÀ» ÇÏ¼Å¾ß ¹æ¸í·ÏÀ» ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù...!!!');
			return;
		}

		if (document.frmGuestbook.guest_memo.value.length == 0)
		{
			alert('¹æ¸í·Ï ³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä...!!!');
			document.frmGuestbook.guest_memo.focus();
			return;
		}

		document.frmGuestbook.submit();
	}

	function fdelReply(frm)
	{
		if (document.frmReply.member_id.value.length == 0)
		{
			alert('·Î±×ÀÎÀ» ÇÏ¼Å¾ß ´ä±ÛÀ» ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù...!!!');
			return;
		}

		if( confirm("¸®ÇÃÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?") == true )
		{
			frm.submit();
		}
	}

	function faddReply()
	{
		if (document.frmReply.member_id.value.length == 0)
		{
			alert('·Î±×ÀÎÀ» ÇÏ¼Å¾ß ´ä±ÛÀ» ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù...!!!');
			return;
		}

		if (document.frmReply.memo_content.value.length == 0)
		{
			alert('´ñ±Û ³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä...!!!');
			document.frmReply.memo_content.focus();
			return;
		}

		document.frmReply.submit();
	}



	// ###########################################################################################################################################
	// ShowRoomÀ» ÆË¾÷À¸·Î ¶ç¿öÁØ´Ù.

	function ShowroomPopup(board_idx){
		var vLeft = (screen.width - 840) / 2;
		var vTop =  (screen.height - 650) / 2;
		if ( board_idx == '') return ;
		window.open("/showroom/fsrc_store_main_popup.asp?board_idx="+board_idx,"ShowRoom","left="+vLeft+", top="+vTop+", location=no, directories=no, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, status=no, width=817 height=619");
	}









	// ###########################################################################################################################################
	// ÀÔ·ÂÈ­¸é¿¡¼­ layoutÀ» º¸¿©ÁÖ´Â ÇÔ¼ö.
	function layout_show(idx1, idx){
		if (idx1 == 1){
			obj1 = document.all.lay1_1
			obj2 = document.all.lay1_2
			obj3 = document.all.lay1_3
			obj4 = document.all.lay1_4
		}
		else if(idx1 == 2){
			obj1 = document.all.lay2_1
			obj2 = document.all.lay2_2
			obj3 = document.all.lay2_3
			obj4 = document.all.lay2_4
		}
		else if(idx1 == 3){
			obj1 = document.all.lay3_1
			obj2 = document.all.lay3_2
			obj3 = document.all.lay3_3
			obj4 = document.all.lay3_4
		}
		else if(idx1 == 4){
			obj1 = document.all.lay4_1
			obj2 = document.all.lay4_2
			obj3 = document.all.lay4_3
			obj4 = document.all.lay4_4
		}

		if(idx==1)
			{
				obj1.style.display="";
				obj2.style.display="none";
				obj3.style.display="none";
				obj4.style.display="none";
			}
		else if(idx==2)
			{
				obj1.style.display="none";
				obj2.style.display="";
				obj3.style.display="none";
				obj4.style.display="none";
			}
		else if(idx==3)
			{
				obj1.style.display="none";
				obj2.style.display="none";
				obj3.style.display="";
				obj4.style.display="none";
			}
		else
			{
				obj1.style.display="none";
				obj2.style.display="none";
				obj3.style.display="none";
				obj4.style.display="";
			}
	}


	// Ã¢À» ¶ç¿öÁÖ´Â ÇÔ¼ö.
	var	imgObj = new Image();

	function showImgWin(imgName){
		imgObj.src = imgName;
		setTimeout("createImgWin(imgObj)", 100);
	}
	function createImgWin(imgObj){
		if (!ImgObj.complete){
			setTimeout("createImgWin(ImgObj)", 100);
			return;
		}

		ImageWin = window.open("", "width=" + imgObj.width + ", height=" + ImgObj.height);
		ImageWin.document.write("<html><title>¿øº»ÀÌ¹ÌÁö</title><body style=margin:0");
		ImageWin.document.write("<img src='"+ImgObj.src+"' onclick='javascript:window.close()'>");
		ImageWin.document.write("</body></html>");

	}





	// VOD¸¦ º¸´Â ÇÔ¼ö.
	function showVOD(board_idx){
		var vLeft = (screen.width - 840) / 2;
		var vTop =  (screen.height - 650) / 2;
		window.open("/common/vod_view.asp?board_idx="+board_idx,"vod_view","left="+vLeft+", top="+vTop+", location=no, directories=no, toolbar=no, menubar=no, scrollbars=no, resizable=no, status=no, width=350 height=460");
	}


	// ÀÌ¹ÌÁö°¡ Å« °æ¿ì ÀÛ°Ô ¸¸µå´Â ÀÚ¹Ù½ºÅ©¸³Æ®.
	function fitImage(obj, maxSize){
		var			imgFile;

		imgFile			= new Image();
		imgFile.src		= obj.src;

		if (imgFile.width > maxSize){
			obj.width = maxSize;
		}
	}


	// ¸®½ºÆ® ÀÌ¹ÌÁö¿¡¼­ ÀÌ¹ÌÁö°¡ Å« °æ¿ì ÀÛ°Ô ¸¸µå´Â ÀÚ¹Ù½ºÅ©¸³Æ®.
	function fitListImage(obj, maxSize){
		var			imgFile;

		imgFile			= new Image();
		imgFile.src		= obj.src;

		if (imgFile.width > maxSize){
			obj.width = maxSize;
		}
	}


	////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	// º»¹®¿¡¼­ ÀÌ¹ÌÁö ÇÚµé¸µÇÏ´Â ÇÔ¼ö.

	// ¸®½ºÆ® ÀÌ¹ÌÁö¿¡¼­ ÀÌ¹ÌÁö°¡ Å« °æ¿ì ÀÛ°Ô ¸¸µå´Â ÀÚ¹Ù½ºÅ©¸³Æ®.
	function fitListImage(obj, maxSize){
	var   imgFile;

	imgFile   = new Image();
	imgFile.src  = obj.src;

	if (imgFile.width > maxSize){
	obj.width = maxSize;
	}
	}

	// º»¹®¿¡¼­ ÀÌ¹ÌÁö°¡ Å«°æ¿ì ÀÛ°Ô ¸¸µå´Â ÀÚ¹Ù½ºÅ©¸³Æ®
	function fitListImageWithContent(maxSize){
	var   imgFile;


	imgFile   = new Image();

	for ( i = 0 ; i < document.images.length ; i++ ){
	obj     = document.images[i];
	fitListImage(obj, maxSize);
	}
	}


	// ÀÌ¹ÌÁö Å©±âº¯°æ.
	function resizeImg(obj, maxWidth, maxHeight){
		var iWidth = eval(obj.width);
		var iHeight = eval(obj.height);

		if (iWidth > iHeight) {
			if ( iHeight > maxHeight) {
				obj.height = maxHeight;
			}
		}
		else{
			if ( iWidth > maxWidth) {
				obj.width = maxWidth;
			}
		}
	}




	function fnCategoryChange(script_name, idx, groupidx, boardmstidx){
		var forwardURL;
		if (idx == '') {
			return;
		}

		// ¸®Æ÷Æ® > Æä¾îÀÇ ¸µÅ©¸¦ À§ÇÏ¿©..
		if ( boardmstidx == '1002' ) {
			boardmstidx = idx.substring(6, 10);
			idx = idx.substring(0, 6);
			forwardURL =  script_name+"?group_idx="+groupidx+"&board_mst_idx="+boardmstidx+"&board_mst_category_idx="+idx;
		}
		else{
			forwardURL =  script_name+"?group_idx="+groupidx+"&board_mst_idx="+boardmstidx+"&board_mst_category_idx="+idx;
		}
		location.href =forwardURL;
	}

// 2008-05-30 11:44¿ÀÀü
// haroc
// ##############################################################################################
// Ajax¸¦ ÀÌ¿ëÇØ¼­ PopupÀ» ¶ç¿öÁØ´Ù.

// »ç¿ë¹ý
// p_AjaxPopup.call_popup(ajax_url, pars, posLeft, posTop, iWidth, iHeight);
// Ajax¾È¿¡¼­ ÇÔ¼ö¸¦ È£ÃâÇÒ¶§ ´Ý¾ÆÁÖ´Â ÇÔ¼öÈ£Ãâ
// parent.p_AjaxPopup.remove();

var p_AjaxPopup = {
	vposLeft	: 0,
	vposTop		: 0,
	vWidth 		: 210,
	vHeight 	: 300,
	oPopup 		: window.createPopup(),
	call_popup : function(ajax_url, pars, posLeft, posTop, iWidth, iHeight){
		if ( iWidth )
			this.vWidth = iWidth;
		if ( iHeight )
			this.vHeight = iHeight;
		if ( posLeft )
			this.vposLeft = posLeft;
		if ( posTop )
			this.vposTop = posTop;
		var		myAjax	= new Ajax.Request( ajax_url, {
				method: 		'post',
				parameters:		pars,
				onComplete:		this.open_popup
			}
		);
	},
	open_popup : function (originalRequest) {
		var oPopBody		= p_AjaxPopup.oPopup.document.body;

		oPopBody.innerHTML = originalRequest.responseText;
		p_AjaxPopup.oPopup.show(p_AjaxPopup.vposLeft, p_AjaxPopup.vposTop, p_AjaxPopup.vWidth, p_AjaxPopup.vHeight, document.body);
	},
	remove : function () {
		p_AjaxPopup.oPopup.hide();
	},
	getLeft : function (obj){
		return document.body.clientLeft	+ p_AjaxPopup.GetObjectLeft(obj)	-  document.body.scrollLeft;
	},
	GetObjectLeft : function (obj) {
		if (obj.offsetParent == document.body)
			return obj.offsetLeft;
		else
			return obj.offsetLeft + p_AjaxPopup.GetObjectLeft(obj.offsetParent);
	},
	// 2008-04-29 11:29¿ÀÀü
	// haroc
	// ##############################################################################################
	// ºê¶ó¿ìÀú»ó¿¡¼­ÀÇ objectÀÇ topÀ» °¡Á®¿Â´Ù.
	getTop : function (obj){
		var vTop = document.body.clientTop	+ p_AjaxPopup.GetObjectTop(obj) - document.body.scrollTop;
		var target = obj;

		return vTop + target.offsetHeight;
	},
	// 2008-04-29 11:29¿ÀÀü
	// haroc
	// ##############################################################################################
	// objectÀÇ topÀ» °¡Á®¿Â´Ù.
	GetObjectTop : function (obj) {
		if (obj.offsetParent == document.body)
			return obj.offsetTop;
		else
			return obj.offsetTop + p_AjaxPopup.GetObjectTop(obj.offsetParent);
	}
}

// 2008-09-03 9:27¿ÀÀü
// haroc
// ##############################################################################################
// ¸®Æ÷ÅÍ¸¦ Å¬¸¯ÇÏ¸é ¶ß´Â ÆË¾÷Ã¢
function showReporterPopupMenu(obj, member_id, mail) {
	var ajax_url 	= "/report/reporter.menu.ajax.asp";
	var pars 		= "?member_id="+member_id+"&mail="+mail;
	var posLeft		= p_AjaxPopup.getLeft(obj);
	var posTop		= p_AjaxPopup.getTop(obj);
	var iWidth 		= 123;
	var iHeight		= 72;

	p_AjaxPopup.call_popup(ajax_url, pars, posLeft, posTop, iWidth, iHeight);
}

// 2008-09-03 3:03¿ÀÈÄ
// haroc
// ##############################################################################################
// ¸®Æ÷Æ® ÆäÀÌÁö¸¦ º¸¿©ÁÖ°í °¨Ãß´Â ÇÔ¼ö.
function reportViewPage(idx) {
	if ( ! document.getElementsByName("report_page_box") ) {
		return false;
	}
	var page = document.getElementsByName("report_page_box");

	idx = idx - 1;
	if ( idx > page.length ) {
		return false;
	}

	for ( var i = 0 ; i < page.length ; i++ ) {
		if ( i == idx ) {
			page[i].style.display = 'block';
		}
		else {
			if ( -1 == idx ) {
				page[i].style.display = 'block';
			}
			else {
				page[i].style.display = 'none';
			}
		}
	}
}

// 2008-09-03 6:04¿ÀÈÄ
// haroc
// ##############################################################################################
// Ãâ·Â Å¬¸¯
function sub_print(group_idx, board_mst_idx, board_mst_category_idx, board_idx){
	var vLeft = (screen.width - 275) / 2;
	var vTop =  (screen.height - 300) / 2;

	window.open('/common/sub_mid_center_print.asp?group_idx='+group_idx+'&board_mst_idx='+board_mst_idx+'&board_mst_category_idx='+board_mst_category_idx+'&board_idx='+board_idx,'sub_print','top=' + vTop.toString() + ',left=' + vLeft.toString() + ',width=600,height=600,scrollbars=yes');
}

// 2008-09-03 6:05¿ÀÈÄ
// haroc
// ##############################################################################################
// ÃßÃµ¹öÆ° Å¬¸¯
function addVoteCnt(board_idx){
	// var vLeft = (screen.width - 275) / 2;
	// var vTop =  (screen.height - 300) / 2;

	var vLeft = - 200;
	var vTop =  -200 ;

	window.open('/common/vote_ok.asp?board_idx='+board_idx,'vote_cnt','top=' + vTop.toString() + ',left=' + vLeft.toString() + ',width=440,height=240,scrollbars=no');
}

// 2008-09-03 6:08¿ÀÈÄ
// haroc
// ##############################################################################################
// ½ºÅ©·¦ Å¬¸¯
function addScrap(board_mst_idx, board_mst_category_idx, board_idx){
	var vLeft = (screen.width - 275) / 2;
	var vTop =  (screen.height - 300) / 2;

	window.open('/common/post_scrap_ok.asp?board_mst_idx='+board_mst_idx+'&board_idx='+board_idx+'&board_mst_category_idx='+board_mst_category_idx,'add_scrap','top=' + vTop.toString() + ',left=' + vLeft.toString() + ',width=440,height=240,scrollbars=no');
}

// 2008-09-03 6:11¿ÀÈÄ
// haroc
// ##############################################################################################
// °Ô½Ã¹° »èÁ¦
function fnPostDel(group_idx, board_mst_idx, board_mst_category_idx, board_idx){
	var vLeft = (screen.width - 275) / 2;
	var vTop =  (screen.height - 300) / 2;
	var delUrl = "/common/post_del.asp?group_idx="+group_idx+"&board_mst_idx="+board_mst_idx+"&board_idx="+board_idx+"&board_mst_category_idx="+board_mst_category_idx;
	if (confirm("Á¤¸» »èÁ¦¸¦ ¿øÇÏ½Ê´Ï±î?, »èÁ¦ÇÏ¸é º¹±¸°¡ ºÒ°¡ÇÕ´Ï´Ù.")){
		// alert( delUrl);
		window.open(delUrl,'post_del','top=' + vTop.toString() + ',left=' + vLeft.toString() + ',width=275,height=300,scrollbars=yes');
	}
}

// 2008-04-23 10:17¿ÀÀü
// haroc
// ##############################################################################################
// ¸ðµç¹®ÀÚ¿­ Replace
String.prototype.replaceAll = function( searchStr, replaceStr ){
	var temp = this;

	while( temp.indexOf( searchStr ) != -1 ){
		temp = temp.replace( searchStr, replaceStr );
	}

	return temp;
}

// 2008-10-27 10:42¿ÀÈÄ
// haroc
// ##############################################################################################
// Ã¤¿ëÁ¤º¸ ÆË¾÷
function open_guin(board_idx){
	var link_url = "/common/guin.asp?board_idx="+board_idx;
	window.open(link_url, 'guin', 'width=767, height=600,scrollbars=yes');
}

// 2008-10-30 4:17¿ÀÈÄ
// haroc
// ##############################################################################################
// ½Ç¸íÃ¼Å© ÇÔ¼ö
function silmyung_check() {
	var jumin1 = document.frm1.jumin1.value;
	var jumin1_leng = jumin1.length;
	var jumin2 = document.frm1.jumin2.value;
	var jumin2_leng = jumin2.length;
	var member_name = document.frm1.member_name.value;
	var member_name_leng = member_name.length;

	if ( document.getElementById("check_jumin").value == 'Y' ) {
		return false;
	}


	if(jumin2_leng == 7 && jumin1_leng == 6 && member_name_leng > 1 )
	{
		nc_url = "/namecheck/nc_coin_p.asp?JoinNM="+frm1.member_name.value;
		nc_url = nc_url + "&JoinJumin="+frm1.jumin1.value+frm1.jumin2.value ;
		newWin = window.open(nc_url, "window", "width=10, height=10, toolbar=off");
	}
	else {
		alert ( "¼º¸í°ú ÁÖ¹Îµî·Ï¹øÈ£¸¦ Á¤»óÀûÀ¸·Î ÀÔ·ÂÇÏ½ÅÈÄ Å¬¸¯ÇØ ÁÖ½Ê½Ã¿À." );
	}
}

// 2008-10-30 4:52¿ÀÈÄ
// haroc
// ##############################################################################################
function next() {
	if(document.frm1.jumin1.value.length==6)
	{
		document.frm1.jumin2.focus();
	}

	else
	{
		return false;
	}
}

// 2008-11-07 9:39¿ÀÀü
// haroc
// °øÁö»çÇ× ¹öÆ°
function toggleGongji(opt){
	if ( opt == 'SFC' ) {
		$("sfc_gongji").show();
		$("sfc_btn").setAttribute("src", "/images/portal/btn_sfcnotice_r.gif");
		$("sba_gongji").hide();
		$("sba_btn").setAttribute("src", "/images/portal/btn_sbanotice.gif");
	}
	else if ( opt == 'SBA' ) {
		$("sfc_gongji").hide();
		$("sfc_btn").setAttribute("src", "/images/portal/btn_sfcnotice.gif");
		$("sba_gongji").show();
		$("sba_btn").setAttribute("src", "/images/portal/btn_sbanotice_r.gif");
	}
}

// 2008-11-07 9:40¿ÀÀü
// haroc
//
function 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 "";
}

// 2008-11-07 10:01¿ÀÀü
// haroc
// °Ë»ö
function fSearch(){
	document.frmSearch.action = "/search/search.asp";
	frmSearch.submit();
}

function moveSearchNextItem(thisItem, nextItem)
{
	if (event.keyCode == 13)
	{
		if (thisItem != nextItem)
			document.frmLogin.elements[nextItem].focus();
		else
			//document.frmLogin.btnLogin.focus();
			this.fSearch();
	}
}

function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
	 if (targetstr == 'blank') {
	   window.open(sel.options[index].value, 'win1');
	 } else {
	   var frameobj;
	   if (targetstr == '') targetstr = 'self';
	   if ((frameobj = eval(targetstr)) != null)
		 frameobj.location = sel.options[index].value;
	 }
  }
}

// 2009-01-30 9:46¿ÀÀü
// haroc
// ##############################################################################################
function selected_lecturer(obj, obj_name) {
	$(obj_name).value = obj.value;
}

// ¿©·¯°³ÀÇ Ã¼Å©¹Ú½º¸¦ ÇÑ²¨¹ø¿¡ Ã¼Å©ÇÏ°í Ç®¾îÁØ´Ù.
function toggleCheckBox(obj, target){
	if ( !obj ) return false;
	if ( !target ) return false;

	if ( target.length ) {
		for ( var i = 0 ; i < target.length ; i++ ){
			target[i].setAttribute("checked", obj.getAttribute("checked"));
		}
	}
	else{
		target.setAttribute("checked", obj.getAttribute("checked"));
	}
}

// 2009-07-03 10:41¿ÀÀü
// haroc
// ¿¡µðÅÍ ¾È¿¡ ÀÖ´Â ¸µÅ©ÀÇ target = _blank·Î º¯°æÇÑ´Ù.
function div_sub_contents(){
	if ( document.getElementById("div_sub_contents") ) {
		var div_sub_contents = document.getElementById("div_sub_contents");
		var _a = div_sub_contents.getElementsByTagName("a");

		for ( var i = 0 ; i < _a.length ; i++ ) {
			if ( !_a[i].getAttribute("target") ) {
				_a[i].setAttribute("target", "_blank");
			}
		}
	}
}

// 2008-06-10 10:20¿ÀÀü
// haroc
// ##############################################################################################
// FCK Editor¸¦ SetÇÑ´Ù.
function setFCKEditor(oFCKeditor, obj_name, originalRequest){
	// oFCKeditor.Value	= originalRequest						//ÃÊ±â¿¡ º¸¿©Áú ³»¿ë
	oFCKeditor.Update(originalRequest);
}


function createFCKEditor(area_name){
	if ( $( area_name ) ) {
		var oFCKeditor = new FCKeditor( area_name ) ;
		oFCKeditor.BasePath	= "/fckeditor/";
		oFCKeditor.ToolbarSet = "SemiBasic";
		oFCKeditor.Width = '667px';
		oFCKeditor.Height	= '520px';
		oFCKeditor.ReplaceTextarea();
	}
}

function quick_banner00(){
	window.open('http://ebook.sfc.seoul.kr/gfreport/intro.html', 'gfreport', '');
}
