	/********************************************************************************************************
	1. ÆäÀÌÁö ¸í : CommFunction.js
	2. ¼³       ¸í : ÀÚÁÖ»ç¿ëÇÏ´Â js ÇÔ¼ö ¸ðÀ½
	3. Á¦ÀÛ ¾÷Ã¼ : WIXON INTERACTIVE(À¨½¼ ÀÎÅÍ·¢Æ¼ºê)  (http://www.wixon.co.kr)
	4. ¿¬  ¶ô  Ã³ : ¢Ï 02)3141-1305/1306 | FAX : 02)3141-1335 ¼­¿ï½Ã ¸¶Æ÷±¸ µ¿±³µ¿ 198-20 ½ºÆ©µð¿À ÇÑ»ç B/D 306 À¨½¼ ÀÎÅÍ·¢Æ¼ºê
	5. ÀÛ  ¼º  ÀÏ : 2009. 6. 17
	6. ¼ö  Á¤  ÀÏ:
	*********************************************************************************************************/
	/*
	var LoadingVar;
	LoadingVar = "<DIV ID=\"progressbar\" STYLE=\"POSITION:ABSOLUTE;MARGIN-TOP:10%;DISPLAY:NONE;MARGIN-LEFT: 40%\"> ";
	LoadingVar += "	<TABLE WIDTH=\"240\" HEIGHT=\"50\" BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"1\" BGCOLOR=\"#A9A9A9\"> ";
	LoadingVar += "		<TR> ";
	LoadingVar += "			<TD> ";
	LoadingVar += "				<TABLE WIDTH=\"100%\" BORDER=\"0\" CELLPADDING=\"1\" CELLSPACING=\"0\" BGCOLOR=\"#FFFFFF\"> ";
	LoadingVar += "					<TR> ";
	LoadingVar += "						<TD	ALIGN=\"CENTER\" VALIGN=\"MIDDLE\"> ";
	LoadingVar += "							<SPAN ID=\"LoadMessage\" STYLE=\"FONT-SIZE:9PT;\">Àá½Ã¸¸ ±â´Ù¸®¼¼¿ä..</SPAN> ";
	LoadingVar += "						</TD> ";
	LoadingVar += "					</TR> ";
	LoadingVar += "					<TR> ";
	LoadingVar += "						<TD	ALIGN=\"CENTER\" VALIGN=\"MIDDLE\"> ";
	LoadingVar += "							<IMG SRC=\"/IMAGE/Admin/Main/LOAD_BAR.GIF\"> ";
	LoadingVar += "						</TD> ";
	LoadingVar += "					</TR> ";
	LoadingVar += "				</TABLE> ";
	LoadingVar += "			</TD> ";
	LoadingVar += "		</TR> ";
	LoadingVar += "	</TABLE> ";
	LoadingVar += "	</DIV>";

	document.write(LoadingVar);

	hidden_progressbar();	// »óÅÂ¹Ù¸¦ ¼û±ä´Ù.
	*/

	function hidden_progressbar()
	{
		var ProgressVar = eval("document.getElementById('progressbar')");
		try
		{
			ProgressVar.style.display = "none";
		}
		catch(e){}
	}

	function show_progressbar()
	{
		var ProgressVar = eval("document.getElementById('progressbar')");

		ProgressVar.style.top = document.body.scrollTop; // ¼öÁ÷ ½ºÅ©·Ñ¹Ù°¡ Á¸ÀçÇÒ °æ¿ì ¿òÁ÷ÀÎ °Å¸®¸¦ »óÅÂ¹ÙÀÇ TopÀ§Ä¡¿¡ ´õÇÑ´Ù.
		ProgressVar.style.display = "";				// »óÅÂ¹Ù¸¦ ³ªÅ¸³½´Ù.
		setTimeout(change_msg, 3000);				// 3ÃÊÈÄ »óÅÂ¹ÙÀÇ ¹®±¸¸¦ º¯°æ½ÃÄÑÁØ´Ù.
	}

	function change_msg()
	{
		var LoadMessageVar = eval("document.getElementById('LoadMessage')");

		try
		{
			LoadMessageVar.innerHTML = "<FONT COLOR=RED>µ¥ÀÌÅÍ Ã³¸®ÁßÀÔ´Ï´Ù...</FONT>";
		}
		catch(e)
		{
		}
	}

	function BusinessNumber(a) {

		var strNumb = a.value;
		if (strNumb.length != 10) {
			alert("»ç¾÷ÀÚµî·Ï¹øÈ£°¡ Àß¸øµÇ¾ú½À´Ï´Ù.");
			return false;
		}

			sumMod  =   0;
			sumMod  +=  parseInt(strNumb.substring(0,1));
			sumMod  +=  parseInt(strNumb.substring(1,2)) * 3 % 10;
			sumMod  +=  parseInt(strNumb.substring(2,3)) * 7 % 10;
			sumMod  +=  parseInt(strNumb.substring(3,4)) * 1 % 10;
			sumMod  +=  parseInt(strNumb.substring(4,5)) * 3 % 10;
			sumMod  +=  parseInt(strNumb.substring(5,6)) * 7 % 10;
			sumMod  +=  parseInt(strNumb.substring(6,7)) * 1 % 10;
			sumMod  +=  parseInt(strNumb.substring(7,8)) * 3 % 10;
			sumMod  +=  Math.floor(parseInt(strNumb.substring(8,9)) * 5 / 10);
			sumMod  +=  parseInt(strNumb.substring(8,9)) * 5 % 10;
			sumMod  +=  parseInt(strNumb.substring(9,10));

		if (sumMod % 10  !=  0) {
			alert("»ç¾÷ÀÚµî·Ï¹øÈ£°¡ Àß¸øµÇ¾ú½À´Ï´Ù.");
			return false;
		}

		return true;
	}

	function flash_seting(src, w, h, bg, wmode){
	var str = src.split('.');
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'  width='"+w+"' height='"+h+"' id='"+str[0]+"' align='middle'>");
	document.write("<param name='movie' value='"+src+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='menu' value='false' />");
	document.write("<param name='bgcolor' value='"+bg+"' />");
	if(wmode == "yes"){
		document.write("<param name='wmode' value='transparent' />");
	}
	document.write("<embed src='"+src+"' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+str[0]+"' align='middle' wmode='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
	}

	function NotKeyBoard(e)
	{
		e = e ? e : event;

		try
		{
			if (navigator.userAgent.indexOf("MSIE") != -1)
			{
				if (e.keyCode == 116)
				{
					e.keyCode = 0;
					return false;
				}
			}
			else
			{
				if (e.which == 116)
				{
					 e.preventDefault();
				}
			}
	    }
	    catch(ex)
	    {
			return false;
	    }
	}

	function CommonEventCheck(obj)
	{
		if(!obj)
		{
			obj = window.document;
		}

		if(document.attachEvent)
		{
			obj.attachEvent("onkeydown", NotKeyBoard );
		}
		else
		{
			window.captureEvents(Event.ONKEYDOWN);
			obj.addEventListener("keydown", NotKeyBoard , false);
		}
	}

	CommonEventCheck(window.document);

	function newXMLHTTP()
	{
		if(window.XMLHttpRequest)
		{
			try
			{
				xmlhttp = new XMLHttpRequest();
			}
			catch(e)
			{
				alert("XMLHTTP¸¦ ÃÊ±âÈ­ÇÒ ¼ö ¾ø½À´Ï´Ù.");
				return false;
			}
		}
		else if(window.ActiveXObject)
		{
			try
			{
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch(e)
			{
				try
				{
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch(e)
				{
					alert("XMLHTTP¸¦ ÃÊ±âÈ­ÇÒ ¼ö ¾ø½À´Ï´Ù.");
					return false;
				}
			}

		} else
		{
			alert("XMLHTTP¸¦ ÃÊ±âÈ­ÇÒ ¼ö ¾ø½À´Ï´Ù.");
			return false;
		}

		return xmlhttp;
	}

	function commonFormPost(frmObj)
	{
		var str = '';
        var elm;
        var endName ='';

		for( i = 0,k = frmObj.length; i < k; i++ )
		{
			elm = frmObj[i];
			switch( elm.type )
			{
				case 'text':
                case 'hidden':
                case 'password':
                case 'textarea':
                case 'select-one':
					str += elm.name + '=' + escape(elm.value) + '&';
                    break;
				case 'select-multiple':
					sElm = elm.options;
                    str += elm.name + '='
                    for( x = 0, z = sElm.length; x <z; x++ )
					{
						if( sElm[x].selected )
						{
							str += escape(sElm[x].value) + ',';
                        }
					}
                    str = str.substr(0, str.length -1 ) + '&';
                    break;

				case 'radio':
					if( elm.checked )
					{
						str += elm.name + '=' + escape(elm.value) + '&';
					}
					break;

				case 'checkbox':
					if(elm.checked)
					{
						if(elm.name == endName)
						{
							if( str.lastIndexOf('&') == str.length-1)
							{
								str = str.substr(0, str.length -1 );
							}
                            str += ',' + escape(elm.value);
                         }
						 else
						 {
							str += elm.name + '=' + escape(elm.value);
                         }
                         str += '&';
                         endName = elm.name;
                     }
                     break;
			}
		}
		return str.substr(0, str.length - 1 );
	}


	// ÄÁÆß ¸Þ¼¼Áö ¹Ú½º ÇÁ·Î±×·¹½º ¹Ù êó

	function ConfirmJavaScript(JSMessage,JSGotoPageURL)
	{

		var ConFirmTxt = confirm(JSMessage);

		if(ConFirmTxt)
		{
			document.location.href = JSGotoPageURL;
		}
		else
		{
			return;
		}
	}


	// ÄÁÆß ¸Þ¼¼Áö ¹Ú½º ÇÁ·Î±×·¹½º ¹Ù Ùí

	function ConfirmNoProgress(JSMessage,JSGotoPageURL)
	{

		var ConFirmTxt = confirm(JSMessage);

		if(ConFirmTxt)
		{
			document.location.href = JSGotoPageURL;
		}
		else
		{
			return;
		}
	}

	function ConfirmAjaxSubmit(form, JSMessage, JSGotoPageURL)
	{
		var ConFirmTxt = confirm(JSMessage);

		if(ConFirmTxt)
		{
			var ActionURL = JSGotoPageURL;
			var ActionFlag = "1";

			SendXMLDataFun(form, ActionURL, ActionFlag);
		}
		else
		{
			return;
		}
	}

	function ConfirmPopAjaxSubmit(form, JSMessage, JSGotoPageURL)
	{
		var ConFirmTxt = confirm(JSMessage);

		if(ConFirmTxt)
		{
			var ActionURL = JSGotoPageURL;
			var ActionFlag = "3";
			if (window.dialogArguments)
			{
				form.target = "ModalFrm";
			}
			SendXMLDataFun(form, ActionURL, ActionFlag);
		}
		else
		{
			return;
		}
	}

	// ÀÌ¸ÞÀÏ Ã¼Å©

	 function CheckEmail(EmailValue)
	 {
		var regExp = /[a-z0-9]{2,}@[a-z0-9-]{2,}\.[a-z0-9]{2,}/i;

		if(!regExp.test(EmailValue))
		{
			return false;
		 }
		else
		{
			return true;
		 }
	}

	// ¾ÆÀÌµð Ã¹±ÛÀÚ ¿µ¹®À» Á¦¿ÜÇÑ ´Ù¸¥°ÍÀÌ ¿ÔÀ» °æ¿ì FALSE

	function IDAlPhaChK(str)
	{
		var ch = str.charAt(0);
		if ( (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') )
			return true;
		else
			return false;
	}

	//¾ÆÀÌµð¿¡ ¿µ¹® / ¼ýÀÚ¸¦ Á¦¿ÜÇÑ ´Ù¸¥°ÍÀÌ ¿ÔÀ» °æ¿ì FALSE
	function IDNumChk( str )
	{
		var result = true;
		for(var i=0; i < str.length;i++)
		{
			var ch=str.charAt(i);

			if ( (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')  || (ch >= '0' && ch <= '9'))
				continue;
			Else
			{
				result = false;
				break;
			}
		}
	    return result;
	}


	// Ã¢ ¶ç¿ì±â

	var DefaultPopupView = null;
	function DefaultPopup(CurrentOpenPageUrl,PopupName,Width,Height,Scroll)
	{
		LeftPosition = (screen.width) ? (screen.width-Width)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-Height)/10 : 0;
		PopupSetting = 'height='+Height+',width='+Width+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+Scroll+',resizable=0'
		DefaultPopupView = window.open(CurrentOpenPageUrl,PopupName,PopupSetting)

		if (DefaultPopupView == null)
		{
			if ((navigator.userAgent.indexOf("Windows NT 5.1")!=-1) && (navigator.userAgent.indexOf("SV1")!=-1)) {      // SP2 À¥ ºê¶ó¿ìÀú
		        alert("!ÆË¾÷ Ã¢ÀÌ Â÷´ÜµÇ¾ú½À´Ï´Ù.\n³»¿ëÀ» º¸½Ã·Á¸é ºê¶ó¿ìÀúÀÇ »ó´Ü ³ë¶õ»ö [¾Ë¸² Ç¥½ÃÁÙ]À» Å¬¸¯ÇÏ½Å ÈÄ\nÆË¾÷ Ã¢À» Çã¿ëÇÏµµ·Ï ¼±ÅÃÇÏ¿© ÆË¾÷ Ã¢À» ¿©½Ê½Ã¿À.");
		    }
		    else {
			  alert("!ÆË¾÷ Ã¢À» ¿ÀÇÂ ÇÒ ¼ö ¾ø½À´Ï´Ù.\n³»¿ëÀ» º¸½Ã·Á¸é ÆË¾÷ Â÷´Ü ÇÁ·Î±×·¥ÀÌ ¼³Ä¡µÇ¾î ÀÖ´Â °æ¿ì ÆË¾÷ Ã¢À» Çã¿ëÇÏ¿© ÆË¾÷ Ã¢À» ¿©½Ê½Ã¿À.");
		    }
		} else
		{
		    DefaultPopupView;
			window.DefaultPopupView.focus();
		}
	}

	//¸ð´ÞÃ¢ ¶ç¿ì±â

	function ModalDefaultPopup(CurrentOpenPageUrl, Width, Height, Vresizable, Vstatus, VScroll)
	{

		var NewHeight, NewWidth;

		if(navigator.userAgent.indexOf("MSIE 6.0") > 0)
		{
			NewHeight = parseInt(Height) + 30;
			NewWidth = parseInt(Width);
		}
		else
		{
			NewHeight = Height;
			NewWidth = Width;
		}

		if(window.showModalDialog)
		{
			var PopupSetting = 'dialogHeight : '+parseInt(NewHeight)+'px; dialogWidth : '+parseInt(NewWidth)+'px; resizable : '+Vresizable+'; help : 0; status : '+Vstatus+'; scroll : '+VScroll;
			var ModalPopupView = window.showModalDialog(CurrentOpenPageUrl,document,PopupSetting);
		}
		else
		{
			DefaultPopup(CurrentOpenPageUrl, "DefaultPop", NewWidth, NewHeight, VScroll);
		}
	}

	function StopPopup(GotoPageURL)
	{
		if(!self.opener)
		{
			document.location.href = GotoPageURL;
		}
	}

	function StopPopupModal(GotoPageURL)
	{
		var oMyObject = window.dialogArguments;
		if(!oMyObject)
		{
			document.location.href = GotoPageURL;
		}
	}

	//Goto URL Location
	function PageLocationURL(GotoPageURL)
	{
		if (GotoPageURL != "")
   		{
			document.location.href = GotoPageURL;
//			show_progressbar();
		}
		else
		{
			alert("!URL ¿À·ùÀÔ´Ï´Ù.\n\n»õ·Î°íÄ§ ÈÄ ´Ù½Ã ÀÌ¿ëÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}
	}

	function PageLocationReplaceURL(GotoPageURL)
	{
		if (GotoPageURL != "")
   		{

			document.location.replace(GotoPageURL);
		}
		else
		{
			alert("!URL ¿À·ùÀÔ´Ï´Ù.\n\n»õ·Î°íÄ§ ÈÄ ´Ù½Ã ÀÌ¿ëÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}
	}

	function CommonFormLocationURL(form, GotoPageURL)
	{
		if (GotoPageURL != "")
   		{
			form.action = GotoPageURL;
			form.submit();
		}
		else
		{
			alert("!URL ¿À·ùÀÔ´Ï´Ù.\n\n»õ·Î°íÄ§ ÈÄ ´Ù½Ã ÀÌ¿ëÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}
	}

	function ModalPageLocationURL(form, GotoPageURL)
	{
		if (GotoPageURL != "")
   		{
			if (window.showModelessDialog)
			{
				form.target = "ModalFrm";
				form.action = GotoPageURL;
				form.submit();
			}
			else
			{
				form.action = GotoPageURL;
				form.submit();
			}
		}
		else
		{
			alert("!URL ¿À·ùÀÔ´Ï´Ù.\n\n»õ·Î°íÄ§ ÈÄ ´Ù½Ã ÀÌ¿ëÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}
	}

	function ConfirmSubmit(JSMessage, JSGotoPageURL, FormName, TargetName)
	{
		var ConFirmTxt = confirm(JSMessage);

		if(ConFirmTxt)
		{
			if (JSGotoPageURL != "")
			{
				FormName.target = TargetName;
				FormName.action = JSGotoPageURL;
				FormName.submit();
			}
			else
			{
				alert("!URL ¿À·ùÀÔ´Ï´Ù.\n\n»õ·Î°íÄ§ ÈÄ ´Ù½Ã ÀÌ¿ëÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
				return;
			}
		}
		else
		{
			return;
		}
	}

	//Goto Windows URL Location Close
	function WindowLocationClose(GotoPageURL)
	{
		if (GotoPageURL != "")
		{
			if(window.dialogArguments)
			{
				window.dialogArguments.location.href = GotoPageURL;
				if(window.close())
				{
					window.close();
				}
				else
				{
					self.close();
				}
			}
			else
			{
				window.parent.opener.document.location.href = GotoPageURL;
				if(window.close())
				{
					window.close();
				}
				else
				{
					self.close();
				}
			}
		}
		else
		{
			alert("!URL ¿À·ùÀÔ´Ï´Ù.\n\n»õ·Î°íÄ§ ÈÄ ´Ù½Ã ÀÌ¿ëÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}
	}

	//Goto Windows URL Location
	function WindowsLocationURL(GotoPageURL)
	{

		if (GotoPageURL != "")
		{
			if(window.dialogArguments)
			{
				location.href = GotoPageURL;
			}
			else
			{
				document.location.href = GotoPageURL;
			}
		}
		else
		{
			alert("!URL ¿À·ùÀÔ´Ï´Ù.\n\n»õ·Î°íÄ§ ÈÄ ´Ù½Ã ÀÌ¿ëÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}
	}


	//Document Write
	function documentwrite(GotoSrcString)
	{
		document.write(GotoSrcString);
	}

	//ÇÃ·¡½¬ ÄÚµå

	function MakeFlashString(FlashFileURL,WIdthSize,HeightSize,AccessString,FlashNameString,AlignString)
	{
		if(AccessString == "1")
		{
			return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\""+WIdthSize+"\" height=\""+HeightSize+"\"><param name=\"movie\" value=\""+FlashFileURL+"\" /><param name=\"quality\" value=\"high\" /><PARAM NAME=\"allowScriptAccess\" VALUE=\"sameDomain\" /><PARAM NAME=\"wmode\" VALUE=\"transparent\" /><embed src=\""+FlashFileURL+"\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\""+WIdthSize+"\" height=\""+HeightSize+"\" name=\""+FlashNameString+"\"></embed></object>";
		}
		else
		{
			return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\""+WIdthSize+"\" height=\""+HeightSize+"\"><param name=\"movie\" value=\""+FlashFileURL+"\" /><param name=\"quality\" value=\"high\" /><PARAM NAME=\"allowScriptAccess\" VALUE=\"always\" /><PARAM NAME=\"wmode\" VALUE=\"transparent\" /><embed src=\""+FlashFileURL+"\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\""+WIdthSize+"\" height=\""+HeightSize+"\" name=\""+FlashNameString+"\"></embed></object>";
		}
	}

	//µ¿¿µ»ó ÄÚµå

	function MakeMovieString(MovieFileURL,WIdthSize,HeightSize,MovieNameString,MovieAlign)
	{
		return "<EMBED SRC=\""+MovieFileURL+"\" ALIGN=\""+MovieAlign+"\" WIDTH=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" NAME=\""+MovieNameString+"\" ShowControls=0>";
	}

	//¼ýÀÚ Ã¼Å©
	function NumCheckFun(obj)
	{
		var InNumValue = /^(\d+)$/;

		if (obj.value != "" && !obj.value.match(InNumValue))
		{
		    alert("!¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
            obj.value = "";
		}
    }

	function clearField(field)
	{
		if (field.value == field.defaultValue)
	    {
			field.value = "";
	    }
	}

	function checkField(field)
	{
		if (field.value == "")
	    {
			field.value = field.defaultValue;
	    }
	}

	//µî·ÏÆÄÀÏ È®ÀåÀÚ Ã¼Å©
	function FileExtCheck(FileName)
	{

		var FileExtArray = new Array("jpg", "jpeg", "gif", "bmp", "png");
		var CheckValue, FileExtName, i;

		CheckValue = false;
		FileExtName	= FileName.substring(FileName.lastIndexOf(".")+1,FileName.length);
		FileExtName = FileExtName.toLowerCase();
		for(i = 0; i < FileExtArray.length; i++)
		{
			if(FileExtArray[i] == FileExtName)
			{
				CheckValue = true;
				i = FileExtArray.length;
			}
		}
		return CheckValue;
	}

	// ÇÑ±Û ±ÛÀÚ Á¦ÇÑ
	function TextLenByteChk(obj,TextMaxLen)
	{
		var ls_str=obj.value;
		var li_str_len=ls_str.length;
		var li_max= TextMaxLen * 2;
		var i= 0;
		var li_byte=0;
		var li_len=0;
		var ls_one_char= "";
		var ls_str2= "";
		for(i=0; i< li_str_len; i++)
		{
			ls_one_char = ls_str.charAt(i);
			if (escape(ls_one_char).length > 4) li_byte += 2;
			else li_byte++;
				if (li_byte <= li_max) li_len = i + 1;
		}

		if(li_byte > li_max)
		{
			alert("!ÁË¼ÛÇÕ´Ï´Ù.\nÇÑ±Û " +  TextMaxLen + "±ÛÀÚ¸¦ ÃÊ°ú ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.\nÃÊ°úµÈ ³»¿ëÀº ÀÚµ¿À¸·Î »èÁ¦ µË´Ï´Ù.");
			ls_str2 = ls_str.substr(0, li_len);
			obj.value = ls_str2;
		}
		obj.focus();
	}



	// ´Þ·Â°ü·Ã ÇÔ¼ö

	var target;
	var stime;
	var calendar;

	document.writeln('<div id="minical" onmouseover="JavaScript:Calendar_Over();" onmouseout="JavaScript:Calendar_Out();" style="background: buttonface; margin:2; border: 1 solid buttonshadow; width:160; display:none; position:absolute; z-index:1"></div>');

	function Calendar_Over()
	{
		window.clearTimeout(stime);
	}

	function Calendar_Out()
	{
		stime=window.setTimeout("document.getElementById('minical').style.display='none';", 200);
	}

	function Calendar_Click(e)
	{
		var cal_Day = e.title;

		if (cal_Day.length > 6)
		{
			target.value = cal_Day;
			target.focus();
		}
		document.getElementById("minical").style.display='none';
	}

	function GetObjectTop(obj)
	{
		if (obj.offsetParent == document.body)
			return obj.offsetTop;
		else
			return obj.offsetTop + GetObjectTop(obj.offsetParent);
	}

	function GetObjectLeft(obj)
	{
		if (obj.offsetParent == document.body)
			return obj.offsetLeft;
		else
			return obj.offsetLeft + GetObjectLeft(obj.offsetParent);
	}

	function Calendar_S(obj,e)
	{
		var now = obj.value.split("-");

		target = obj;

		if(window.event){
          theTextBox = event.srcElement;
        }
        else
		{
          theTextBox = e.target;
        }

		var selectedPosX = 0;
        var selectedPosY = 0;
        var theElement = theTextBox;
        if (!theElement) return;
        var theElemHeight = theElement.offsetHeight;
        var theElemWidth = theElement.offsetWidth;
        while(theElement != null){
          selectedPosX += theElement.offsetLeft;
          selectedPosY += theElement.offsetTop;
          theElement = theElement.offsetParent;
        }

		xPosElement = document.getElementById("minical");
        xPosElement.style.left = selectedPosX;
        xPosElement.style.top = selectedPosY + theElemHeight
        xPosElement.style.display = "";

		if (now.length == 3)
		{
			Show_cal(now[0],now[1],now[2]);
		}
		else
		{
			now = new Date();
			Show_cal(now.getFullYear(), now.getMonth()+1, now.getDate());
		}
	}


	function doOver(e)
	{
		var el, cal_Day;
		e = e ? e : event;

		if (navigator.userAgent.indexOf("MSIE") != -1)
		{
			el = e.srcElement;
		}
		else
		{
			el = e.target;
		}

		cal_Day = el.title;

		if (cal_Day.length > 7)
		{
			el.style.borderTopColor = el.style.borderLeftColor = "buttonhighlight";
			el.style.borderRightColor = el.style.borderBottomColor = "buttonshadow";
		}
	}

	function doOut(e)
	{
		var el, cal_Day;
		e = e ? e : event;

		if (navigator.userAgent.indexOf("MSIE") != -1)
		{
			el = e.srcElement;
		}
		else
		{
			el = e.target;
		}

		cal_Day = el.title;

		if (cal_Day.length > 7)
		{
			el.style.borderColor = "white";
		}
	}

	function day2(d) {																// 2ÀÚ¸® ¼ýÀÚ·á º¯°æ
		var str = new String();

		if (parseInt(d) < 10) {
			str = "0" + parseInt(d);
		} else {
			str = "" + parseInt(d);
		}
		return str;
	}

	function Show_cal(sYear, sMonth, sDay)
	{
		var Months_day = new Array(0,31,28,31,30,31,30,31,31,30,31,30,31)
		var intThisYear = new Number(), intThisMonth = new Number(), intThisDay = new Number();
		document.getElementById("minical").innerHTML = "";
		datToday = new Date();													// ÇöÀç ³¯ÀÚ ¼³Á¤

		intThisYear = parseInt(sYear);
		intThisMonth = parseInt(sMonth);
		intThisDay = parseInt(sDay);

		if (intThisYear == 0) intThisYear = datToday.getFullYear();				// °ªÀÌ ¾øÀ» °æ¿ì
		if (intThisMonth == 0) intThisMonth = parseInt(datToday.getMonth())+1;	// ¿ù °ªÀº ½ÇÁ¦°ª º¸´Ù -1 ÇÑ °ªÀÌ µÅµ¹·Á Áø´Ù.
		if (intThisDay == 0) intThisDay = datToday.getDate();

		switch(intThisMonth) {
			case 1:
					intPrevYear = intThisYear -1;
					intPrevMonth = 12;
					intNextYear = intThisYear;
					intNextMonth = 2;
					break;
			case 12:
					intPrevYear = intThisYear;
					intPrevMonth = 11;
					intNextYear = intThisYear + 1;
					intNextMonth = 1;
					break;
			default:
					intPrevYear = intThisYear;
					intPrevMonth = parseInt(intThisMonth) - 1;
					intNextYear = intThisYear;
					intNextMonth = parseInt(intThisMonth) + 1;
					break;
		}
		intPPyear = intThisYear-1
		intNNyear = intThisYear+1

		NowThisYear = datToday.getFullYear();										// ÇöÀç ³â
		NowThisMonth = datToday.getMonth()+1;										// ÇöÀç ¿ù
		NowThisDay = datToday.getDate();											// ÇöÀç ÀÏ

		datFirstDay = new Date(intThisYear, intThisMonth-1, 1);						// ÇöÀç ´ÞÀÇ 1ÀÏ·Î ³¯ÀÚ °´Ã¼ »ý¼º(¿ùÀº 0ºÎÅÍ 11±îÁöÀÇ Á¤¼ö(1¿ùºÎÅÍ 12¿ù))
		intFirstWeekday = datFirstDay.getDay();										// ÇöÀç ´Þ 1ÀÏÀÇ ¿äÀÏÀ» ±¸ÇÔ (0:ÀÏ¿äÀÏ, 1:¿ù¿äÀÏ)

		intSecondWeekday = intFirstWeekday;
		intThirdWeekday = intFirstWeekday;

		datThisDay = new Date(intThisYear, intThisMonth, intThisDay);				// ³Ñ¾î¿Â °ªÀÇ ³¯ÀÚ »ý¼º
		intThisWeekday = datThisDay.getDay();										// ³Ñ¾î¿Â ³¯ÀÚÀÇ ÁÖ ¿äÀÏ

		intPrintDay = 1;																// ´ÞÀÇ ½ÃÀÛ ÀÏÀÚ
		secondPrintDay = 1;
		thirdPrintDay = 1;

		Stop_Flag = 0

		if ((intThisYear % 4)==0) {													// 4³â¸¶´Ù 1¹øÀÌ¸é (»ç·Î³ª´©¾î ¶³¾îÁö¸é)
			if ((intThisYear % 100) == 0) {
				if ((intThisYear % 400) == 0) {
					Months_day[2] = 29;
				}
			} else {
				Months_day[2] = 29;
			}
		}
		intLastDay = Months_day[intThisMonth];										// ¸¶Áö¸· ÀÏÀÚ ±¸ÇÔ

		Cal_HTML = "<table id='Cal_Table' border=0 bgcolor='#f4f4f4' cellpadding=1 cellspacing=1 width=100% onmouseover='JavaScript:doOver(event);' onmouseout='JavaScript:doOut(event);' style='font-size : 12;font-family:±¼¸²;'>";
		Cal_HTML += "<tr align=center bgcolor='#ffffff'>";
		Cal_HTML += "<td colspan=7 align=center>";
		Cal_HTML += "<a href='JavaScript:Show_cal("+intPPyear+","+intThisMonth+","+intThisDay+");'>¢¸</a>";
		Cal_HTML += "&nbsp;&nbsp;<a href='JavaScript:Show_cal("+intPrevYear+","+intPrevMonth+","+intThisDay+");'>&lt;</a> ";
		Cal_HTML += intThisYear +"³â "+ intThisMonth +"¿ù";
		Cal_HTML += " <a href='JavaScript:Show_cal("+intNextYear+","+intNextMonth+","+intThisDay+");'>&gt;</a>";
		Cal_HTML += "&nbsp;&nbsp;<a href='JavaScript:Show_cal("+intNNyear+","+intThisMonth+","+intThisDay+");'>¢º</a>";
		Cal_HTML += "</td></tr>";
		Cal_HTML += "<tr align=center bgcolor='#87B3D6' style='color:#2065DA;' >";
		Cal_HTML += "<td style='padding-top:3px;'><font color=black>ÀÏ</td><td style='padding-top:3px;'><font color=black>¿ù</td><td style='padding-top:3px;'><font color=black>È­</td><td style='padding-top:3px;'><font color=black>¼ö</td><td style='padding-top:3px;'><font color=black>¸ñ</td><td style='padding-top:3px;'><font color=black>±Ý</td><td style='padding-top:3px;'><font color=black>Åä</td></font>";
		Cal_HTML += "</tr>";

		for (intLoopWeek=1; intLoopWeek < 7; intLoopWeek++) {						// ÁÖ´ÜÀ§ ·çÇÁ ½ÃÀÛ, ÃÖ´ë 6ÁÖ
			Cal_HTML += "<tr align=right bgcolor='#ffffff'>"
			for (intLoopDay=1; intLoopDay <= 7; intLoopDay++) {						// ¿äÀÏ´ÜÀ§ ·çÇÁ ½ÃÀÛ, ÀÏ¿äÀÏ ºÎÅÍ
				if (intThirdWeekday > 0) {											// Ã¹ÁÖ ½ÃÀÛÀÏÀÌ 1º¸´Ù Å©¸é
					Cal_HTML += "<td>";
					intThirdWeekday--;
				} else {
					if (thirdPrintDay > intLastDay) {								// ÀÔ·Â ³¯Â¦ ¿ù¸»º¸´Ù Å©´Ù¸é
						Cal_HTML += "<td>";
					} else {														// ÀÔ·Â³¯Â¥°¡ ÇöÀç¿ù¿¡ ÇØ´ç µÇ¸é
						Cal_HTML += "<td onClick=\"Calendar_Click(this)\"; title="+intThisYear+"-"+day2(intThisMonth).toString()+"-"+day2(thirdPrintDay).toString()+" style=\"cursor:default;border:1px solid white;";
						if (intThisYear == NowThisYear && intThisMonth==NowThisMonth && thirdPrintDay==intThisDay) {
							Cal_HTML += "background-color:#C6F2ED;";
						}

						switch(intLoopDay) {
							case 1:													// ÀÏ¿äÀÏÀÌ¸é »¡°£ »öÀ¸·Î
								Cal_HTML += "color:red;"
								break;
							case 7:
								Cal_HTML += "color:blue;"
								break;
							default:
								Cal_HTML += "color:black;"
								break;
						}

						Cal_HTML += "\">"+thirdPrintDay;

					}
					thirdPrintDay++;

					if (thirdPrintDay > intLastDay) {								// ¸¸¾à ³¯Â¥ °ªÀÌ ¿ù¸» °ªº¸´Ù Å©¸é ·çÇÁ¹® Å»Ãâ
						Stop_Flag = 1;
					}
				}
				Cal_HTML += "</td>";
			}
			Cal_HTML += "</tr>";
			if (Stop_Flag==1) break;
		}
		Cal_HTML += "</table>";
		document.getElementById("minical").innerHTML = Cal_HTML;
	}



	//trim
	String.prototype.trim = function()
	{
		return this.replace(/(^\s*)|(\s*$)/g, "");
	}

	function CommaReplace(Str)
	{
		 return Str.replace(/^\$|,/g, '');
    }

	function ChkNum(Str)
	{
		var NumValue =/(^\d+$)|(^\d+\.\d+$)/ ;

		if (NumValue.test(Str))
		{
			return true;
		}
		else
		{
			return false;
		}
	}

	//3ÀÚ¸® ÄÞ¸¶ Âï±â
	function CommaPrint(obj)
	{
		var NumValue = obj.value;
		 NumValue = CommaReplace(NumValue.trim());

		if(!ChkNum(NumValue))
		{
			obj.value = "";
		}
		else
		{
			obj.value = commaSplit(NumValue);
		}
	}
	/*
		.trim()
	*/
	String.prototype.trim = function() {
		return this.replace(/(^ *)|( *$)/g, "");
	}

	/*
		.ltrim()
	*/
	String.prototype.ltrim = function() {
		return this.replace(/(^ *)/g, "");
	}

	/*
		.rtrim()
	*/
	String.prototype.rtrim = function() {
		return this.replace(/( *$)/g, "");
	}

	function CommaReMove(obj)
	{
		obj.value = obj.value.replace(/^\$|,/g, '');
    }


	function commaSplit(srcNumber)
	{
		var txtNumber = '' + srcNumber;

		var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
		var arrNumber = txtNumber.split('.');
		arrNumber[0] += '.';
		do{
			arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
		}
		while (rxSplit.test(arrNumber[0]));
		if (arrNumber.length > 1) {
			return arrNumber.join('');
		}
		else {
			return arrNumber[0].split('.')[0];
	    }
	}


	function jsCheckJumin(ResCode)
	{
		if (!/^\d{6}-[1234]\d{6}$/.test(ResCode))
		{
			return false;
		}
		else
		{
			var ResBirthY, ResBirthM, ResBirthD, ResBirthDate;

			ResBirthY = (ResCode.charAt(7) <= "2") ? "19" : "20";
			ResBirthY += ResCode.substr(0, 2);
			ResBirthM = ResCode.substr(2, 2) - 1;
			ResBirthD = ResCode.substr(4, 2);
			ResBirthDate = new Date(ResBirthY, ResBirthM, ResBirthD);

			if ( ResBirthDate.getYear() % 100 != ResCode.substr(0, 2) || ResBirthDate.getMonth() != ResBirthM || ResBirthDate.getDate() != ResBirthD)
			{
				return false;
			}
			else
			{

				buf = new Array(13);
				for (i = 0; i < 6; i++) buf[i] = parseInt(ResCode.charAt(i));
				for (i = 6; i < 13; i++) buf[i] = parseInt(ResCode.charAt(i + 1));

				multipliers = [2,3,4,5,6,7,8,9,2,3,4,5];
				for (i = 0, sum = 0; i < 12; i++) sum += (buf[i] *= multipliers[i]);

				if ((11 - (sum % 11)) % 10 != buf[12])
				{
					return false;
				}
				else
				{
					return true;
				}
			}
		}
	}

	// ¹®ÀÚ¿­ ±æÀÌ °Ë»ç
	function isLength(varCk) {
		var varLen = 0;
		var agr = navigator.userAgent;

		for (i=0; i<varCk.length; i++) {
			ch = varCk.charAt(i);
			if ((ch == "\n") || ((ch >= "¤¿") && (ch <= "È÷")) || ((ch >="¤¡") && (ch <="¤¾")))
				varLen += 2;
			else
				varLen += 1;
		}
		return (varLen);
	}

	// ÀÔ·Â ¹®ÀÚ¿­ °Ë»ç (¼ýÀÚ/Æ¯¼ö¹®ÀÚ)
	function isInteger(varCk, charSet) {
		var chk=true;
		for (i=0; i<=varCk.length-1; i++) {
			ch = varCk.substring(i,i+1);
			if (ch>="0" && ch<="9") {
				chk = true;
			} else {
				chk=false;
				for (j=0; j<=charSet.length-1; j++) {
					comp = charSet.substring(j,j+1);
					if (ch==comp) {
						chk = true;
						break;
					}
				}
				if (!chk) 	break;	// ¼ýÀÚ+Æ¯¼ö¹®ÀÚ¿ÜÀÇ ¹®ÀÚ°¡ ÀÖ´Â °æ¿ì¸¸ error Á¾·á 2002.04.08
			}
		}
		return chk;
	}


	function DivRadioSelectFun(objValu1, objValu2, objValu3, objValu4)
	{
		var i, objValuView, objValuClose, objFocus, SplitValue;

		if(objValu2 == "0")
		{
			if(objValu3.indexOf(",")!= -1)
			{
				SplitValue = objValu3.split(",");

				for(i=0; i<SplitValue.length;i++)
				{
					objValuClose = eval("document.getElementById('"+objValu1+SplitValue[i]+"')");
					objValuClose.style.display = "none";
				}
			}
			else
			{
				objValuClose = eval("document.getElementById('"+objValu1+objValu3+"')");
				objValuClose.style.display = "none";
			}
		}
		else
		{
			objValuView = eval("document.getElementById('"+objValu1+objValu2+"')");
			objFocus = eval(objValu4);

			if(objValuView)
			{
				objValuView.style.display = "";

				if(objValu3.indexOf(",")!= -1)
				{
					SplitValue = objValu3.split(",");

					for(i=0; i<SplitValue.length;i++)
					{
						objValuClose = eval("document.getElementById('"+objValu1+SplitValue[i]+"')");
						objValuClose.style.display = "none";
					}
				}
				else
				{
					objValuClose = eval("document.getElementById('"+objValu1+objValu3+"')");
					objValuClose.style.display = "none";
				}

				objFocus.focus();
			}

		}
    }


	function CommonEtcBoxFun(CheckValue, FieldValue)
	{

		var CheckFieldValue = eval(FieldValue);

		if(CheckValue == "1")
		{
			CheckFieldValue.readOnly = false;
			CheckFieldValue.focus();
		}
		else
		{
			CheckFieldValue.value = ""
			CheckFieldValue.readOnly = true;
		}
	}

	//ÀÚµ¿ Æ÷Ä¿½º
	function CommonNextFieldFocus(StartCheckValue, EndCheckValue, FieldValue)
	{
	   if(StartCheckValue != "" && EndCheckValue != "" && FieldValue != "")
	   {
			var SCheckFieldValue = eval(StartCheckValue);
			var ECheckFieldValue = eval(EndCheckValue);

			if(SCheckFieldValue.value.length == parseInt(FieldValue))
			{
				EndCheckValue.focus();
			}
	   }
	}

	//Ã¼Å©¹Ú½º ¶óµð¿À¹öÆ°Ã³·³ - ¼±ÅÃÇØÁ¦ true
	function RadioToCheckBox(FormValue, DataValue)
	{
		var FormNameValue = eval(FormValue);
		var i;
		DataValue = parseInt(DataValue);

		for(i=0; i<FormNameValue.length; i++)
		{
			if(FormNameValue[i].checked == true)
			{
				if(i != DataValue)
				{
					FormNameValue[i].checked = false;
				}
			}
		}
	}

	//Ã¼Å©¹Ú½º ¶óµð¿À¹öÆ°Ã³·³2 - ¼±ÅÃÇØÁ¦ false
	function RadioToCheckBox2(FormValue, DataValue)
	{
		var FormNameValue = eval(FormValue);
		var i;
		DataValue = parseInt(DataValue);

		for(i=0; i<FormNameValue.length; i++)
		{
			if(i == DataValue)
			{
				FormNameValue[i].checked = true;
			}
			else
			{
				FormNameValue[i].checked = false;
			}
		}
	}

	//µî·ÏºÒ°¡ÆÄÀÏ È®ÀåÀÚ Ã¼Å©
	function NonFileExtCheck(FileName)
	{

		var FileExtArray = new Array("asp", "asa", "aspx", "js", "html", "htm", "css", "exe", "com");
		var CheckValue, FileExtName, i;

		CheckValue = false;
		FileExtName	= FileName.substring(FileName.lastIndexOf(".")+1,FileName.length);
		FileExtName = FileExtName.toLowerCase();
		for(i = 0; i < FileExtArray.length; i++)
		{
			if(FileExtArray[i] == FileExtName)
			{
				CheckValue = true;
				i = FileExtArray.length;
			}
		}
		return CheckValue;
	}
	//¿äÀÏ
	function MakeWeekDay(DataValue)
	{
		//DataValue = "2008-07-15"
		var ReturnWeekDay;

		if(DataValue.length == 10)
		{
			var DateYear = DataValue.substr(0,4);
			var DateMonth = DataValue.substr(5,2);
			var DateDay = DataValue.substr(8,2);

			DateYear = parseInt(DateYear);
			DateMonth = parseInt(DateMonth)-1;
			DateDay = parseInt(DateDay);

			var week = new Array("ÀÏ","¿ù","È­","¼ö","¸ñ","±Ý","Åä");
			var selectDay = new Date(DateYear,DateMonth,DateDay);
			ReturnWeekDay = week[selectDay.getDay()];

		}
		else
		{
			ReturnWeekDay = "";
		}

		return ReturnWeekDay;
	}

	function CommonImageBigView(CurrentOpenPageUrl, Width, Height)
	{
		ModalDefaultPopup(CurrentOpenPageUrl, Width, Height, 0, 0, 1);
	}


	function CheckFileSubmitGo(FileUploadURL)
	{
		document.Cmd_MainForm.encoding = "multipart/form-data";
		document.Cmd_MainForm.action = FileUploadURL;
		document.Cmd_MainForm.submit();
	}

	function PopCheckFileSubmitGo(FileUploadURL)
	{
		document.Cmd_MainForm.encoding = "multipart/form-data";
		document.Cmd_MainForm.target = "ModalFrm";
		document.Cmd_MainForm.action = FileUploadURL;
		document.Cmd_MainForm.submit();
	}

	function LayerControlFun(ObjName, ActionFlag)
	{
		var DivLayer = eval("document.getElementById('"+ObjName+"')");
		if(DivLayer)
		{
			if(ActionFlag)
			{
				DivLayer.style.display = ActionFlag;
			}
			else
			{
				DivLayer.style.display = (DivLayer.style.display != "none") ? "none" : "block";
			}
		}
		else
		{
			alert("·¹ÀÌ¾î¸íÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.");
			return;
		}
	}

	/*****************************************************************************************************************************
		ÇÃ·¡½Ã ½ºÅ©¸³Æ®
	**********************************************************************************************************/
	function ActiveX(commentid, objectid){
		var obj = GetId(commentid);
		if(navigator.appName == "Microsoft Internet Explorer"){
			document.write(obj.text);
			obj.id = "";
		}
		if(objectid != undefined)
			window[objectid] = document.getElementById(objectid);
	}


	/**************************************************************************************************************
		png Ã³¸®
	**********************************************************************************************************/
	function setPng24(object) {
		object.width=obj.height=1;
		object.className=obj.className.replace(/\bpng24\b/i,'');
		object.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ object.src +"',sizingMethod='image');"
		object.src='';
		return '';
	}


	/*********************************************************************************************************
		document.getElementById ¸¦ GetId ÇÔ¼ö·Î »ç¿ëÇÒ ¼ö ÀÖ°Ô ¼³Á¤
		param
		Element : object
	**********************************************************************************************************/
	function GetId(element) {
		if (arguments.length > 1) {
			for (var i = 0, elements = [], length = arguments.length; i < length; i++)
				elements.push(GetId(element[i]));
			return elements;
		}

		if (typeof(element) == "string")
			element = document.getElementById(element);
		return element;
	};

	function hidemainnaviall()
	{
		try{parent.hidenaviall();}
		catch(e){}
	}

	function runObj(Urlstring,MovieID, Hide)
	{
		var strObj = "";

		if (navigator.userAgent.toLowerCase().indexOf("firefox") > 0)
		{

			// object »ç¿ë½Ã FF ¿¡¼­ Ç¥½ÃµÇÁö ¾Ê¾Æ EMBED ÅÂ±×·Î ´ëÃ¼
			strObj += "<EMBED ID=\""+ MovieID +"\" SRC=\""+Urlstring+"\" LOOP=\"0\" ENABLECONTEXTMENU=\"FALSE\" VOLUME=\"60\" AUTOSTART=\"FALSE\" WIDTH=\"335\" HEIGHT=\"45\">";
//			strObj += "<EMBED SRC=\""+Urlstring+"\" LOOP=0 ENABLECONTEXTMENU=\"FALSE\" VOLUME=\"0\" AUTOSTART=\"FALSE\" STYLE=\"FILTER: XRAY()\" WIDTH=\"320\" HEIGHT=\"280\">";
		}
		else
		{

			strObj += "<object ID=\""+MovieID+"\" style=\"display:"+Hide+";\" classid=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\"  codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" standby=\"Loading Microsoft Windows Media Player components...\" TYPE=\"application/x-oleobject\" VIEWASTEXT width=\"335\" height=\"45\">\n";
			strObj += "<param name=\"URL\" value=\""+Urlstring+"\">\n";  //ÆÄÀÏµ¿¿µ»óÁÖ¼Ò
			strObj += "<param name=\"InvokeURLs\" value=\"false\">\n";
			strObj += "<param name=\"AllowChangeDisplaySize\" value=\"true\">\n";
			strObj += "<param name=\"AnimationAtStart\" value=\"1\">\n";
			strObj += "<param name=\"AutoRewind\" value=\"false\">\n";
			strObj += "<param name=\"CurrentPosition\" value=\"0\">\n";
			strObj += "<param name=\"SetCurrentEntry\" value=\"1\">\n";
			strObj += "<param name=\"ClickToPlay\" value=\"false\">\n";
			strObj += "<param name=\"AllowScan\" value=\"true\">\n";
			strObj += "<param name=\"AutoSize\" value=\"true\">\n";
			strObj += "<param name=\"AutoResize\" value=\"1\">\n";
			strObj += "<param name=\"AutoStart\" value=\"false\">\n";
			strObj += "<param name=\"Balance\" value=\"0\">\n";
			strObj += "<param name=\"BufferingTime\" value=\"-1\">\n";
			strObj += "<param name=\"CursorType\" value=\"0\">\n";
			strObj += "<param name=\"CurrentMarker\" value=\"0\">\n";
			strObj += "<param name=\"DisplayBackColor\" value=\"0\">\n";
			strObj += "<param name=\"DisplayForeColor\" value=\"16777215\">\n";
			strObj += "<param name=\"DisplayMode\" value=\"2\">\n";
			strObj += "<param name=\"DisplaySize\" value=\"4\">\n";
			strObj += "<param name=\"uiMode\" value=\"full\">\n";
			strObj += "<param name=\"EnableContextMenu\" value=\"0\">\n";
			strObj += "<param name=\"EnableFullScreenControls\" value=\"true\">\n";
			strObj += "<param name=\"fullScreen\" value=\"false\">\n";
			strObj += "<param name=\"PreviewMode\" value=\"0\">\n";
			strObj += "<param name=\"Rate\" value=\"1\">\n";
			strObj += "<param name=\"SelectionStart\" value=\"-1\">\n";
			strObj += "<param name=\"SelectionEnd\" value=\"-1\">\n";
			strObj += "<param name=\"SendOpenStateChangeEvents\" value=\"true\">\n";
			strObj += "<param name=\"SendWarningEvents\" value=\"true\">\n";
			strObj += "<param name=\"SendErrorEvents\" value=\"true\">\n";
			strObj += "<param name=\"SendKeyboardEvents\" value=\"0\">\n";
			strObj += "<param name=\"SendPlayStateChangeEvents\" value=\"true\">\n";
			strObj += "<param name=\"ShowAudioControls\" value=\"false\">\n";
			strObj += "<param name=\"ShowCaptioning\" value=\"false\">\n";
			strObj += "<param name=\"ShowControls\" value=\"false\">\n";
			strObj += "<param name=\"ShowDisplay\" value=\"false\">\n";
			strObj += "<param name=\"ShowGotoBar\" value=\"false\">\n";
			strObj += "<param name=\"ShowPositionControls\" value=\"false\">\n";
			strObj += "<param name=\"ShowStatusBar\" value=\"false\">\n";
			strObj += "<param name=\"ShowTracker\" value=\"false\">\n";
			strObj += "<param name=\"TransparentAtStart\" value=\"false\">\n";
			strObj += "<param name=\"VideoBorderWidth\" value=\"0\">\n";
			strObj += "<param name=\"VideoBorderColor\" value=\"0\">\n";
			strObj += "<param name=\"VideoBorder3D\" value=\"0\">\n";
			strObj += "<param name=\"Volume\" value=\"60\">\n";
			strObj += "<param name=\"WindowlessVideo\" value=\"false\">\n";
			strObj += "<param name=\"EnablePositionControls\" value=\"true\">\n";
			strObj += "<param name=\"EnableTracker\" value=\"true\">\n";
			strObj += "<param name=\"Language\" value=\"-1\">\n";
			strObj += "<param name=\"Mute\" value=\"false\">\n";
			strObj += "<param name=\"PlayCount\" value=\"0\">\n";
			strObj += "<param name=\"SendWarningEvents\" value=\"true\">\n";
			strObj += "<param name=\"SendErrorEvents\" value=\"true\">\n";
			strObj += "<param name=\"SendMouseClickEvents\" value=\"true\">\n";
			strObj += "<param name=\"EnableContextMenu\" value=\"true\">\n";
			strObj += "</object>\n";
		}

		document.write(strObj);
	}

/**********************************************************************************************************
	 Function Name	: trim(str)
	 Description			: ¹®ÀÚ¿­ÀÇ °ø¹éÀ» Á¦°ÅÇÑ´Ù
	 Example				: trim(str)
     Output				: °ø¹éÀÌ Á¦°ÅµÈ ¹®ÀÚ¿­
	**********************************************************************************************************/
	function trim(str){return str.replace(/(^\s*)|(\s*$)/g, "");}


/**********************************************************************************************************
	 Function Name	: all_ResizeImage(width)
	 Description			: board_view¶ó´Â ¿µ¿ª¾È¿¡ ÀÖ´Â ÀÌ¹ÌÁöÀÇ °¡·Î»çÀÌÁî°¡ »ç¿ëÀÚ°¡ ¿øÇÏ´Â width º¸´Ù Å©¸é »ç¿ëÀÚ°¡ ¿øÇÏ´Â Å©±â·Î Ãà¼ÒÇÑ´Ù
							  ¿¡µðÅÍ·Î µî·ÏµÈ ÀÌ¹ÌÁö Ãà¼Ò½Ã »ç¿ë
	 Example				: all_ResizeImage(width)
     Output				: »çÀÌÁî°¡ Ãà¼ÒµÈ ÀÌ¹ÌÁö
	**********************************************************************************************************/

	// ÀüÃ¼ ÀÌ¹ÌÁö ¸®»çÀÌÂ¡
	function all_ResizeImage(width)
	{
		var ImgObj = document.getElementById("board_view").getElementsByTagName("img");
		for (i = 0; i < ImgObj.length ; i++ )
		{
			var iObj = ImgObj[i];
			var oldWidth = iObj.width;
			var oldHeight = iObj.height;

			if (oldWidth > width)
			{
				var newWidth = width;
				var newHeight = Math.round(oldHeight * newWidth / oldWidth);

				iObj.width = newWidth;
				iObj.height = newHeight;
				iObj.style.cursor = "pointer";

				iObj.onclick = function()
				{
//					DefaultPopup(iObj.src,"PreView", oldWidth, oldHeight,"yes");
//					alert(iObj.src);
					if (oldHeight > 900)
					{
						oldHeight = 900;
					}
					showPic(iObj.src, oldWidth, oldHeight);
				}
			}
		}
	}

/**********************************************************************************************************
	 Function Name	: getBrowserName()
	 Description			: ºê¶ó¿ìÁ® Å¸ÀÔÀ» ¹ÝÈ¯ÇÑ´Ù
	 Example				: resizeImgWidth()
     Output				: IE : ÀÍ½ºÇÃ·Î·¯ , FF : ÆÄÀÌ¾îÆø½º
	**********************************************************************************************************/
	function getBrowserName()
	{
		var returnBrowser
		if (navigator.userAgent.toUpperCase().indexOf("MSIE") > 0)
		{
			returnBrowser ="IE"
		}
		else if (navigator.userAgent.toUpperCase().indexOf("FIREFOX") > 0)
		{
			returnBrowser ="FF"
		}
		return returnBrowser;
	}

/**********************************************************************************************************
	 Function Name	: resizeImgWidth(imgObj,width)
	 Description			: ÀÌ¹ÌÁö¸¦ °¡·ÎÆø¿¡ ¸ÂÃç Ãà¼Ò / È®Àå
	 Example				: resizeImgWidth(Object,100)
     Output				:
	**********************************************************************************************************/

	function resizeImgWidth(imgObj, width)
	{
		var oldWidth = imgObj.width;
		var oldHeight = imgObj.height;

		if (oldWidth > width)
		{
			var newWidth = width;
			var newHeight = Math.round(oldHeight * newWidth / oldWidth);
			imgObj.wdith = newWidth;
			imgObj.height = newHeight;
		}
	}

	/**********************************************************************************************************
	 Function Name	: showPicture(img)
	 Description			: ÀÌ¹ÌÁö¸¦ ¿øº»Å©±â·Î »õÃ¢¿¡¼­ Ãâ·ÂÇÑ´Ù.
	 Example				: showPicture(ÀÌ¹ÌÁö ÁÖ¼Ò)
     Output				:
	**********************************************************************************************************/

	function showPicture(img)
	{
		var oImg = new Image();
		oImg.src = img.src;
		winResult = window.open("","ÀÌ¹ÌÁö ¹Ì¸®º¸±â","scrollbars=no,status=no,resizable=yes,width=" + oImg.width + ",height=" + oImg.height);
		winResult.document.write("<body style='margin:0 border:0'>");
		winResult.document.write("<div><img src='" + oImg.src + "' onclick='window.close();' style='cursor:pointer;border=0'></div>");
		return;
	}

	/**********************************************************************************************************
	 Function Name	: showPicture(img)
	 Description			: ÀÌ¹ÌÁö¸¦ ¿øº»Å©±â·Î »õÃ¢¿¡¼­ Ãâ·ÂÇÑ´Ù.
	 Example				: showPicture(ÀÌ¹ÌÁö ÁÖ¼Ò)
     Output				:
	**********************************************************************************************************/

	function showPic(img, width, height)
	{
		var winResult = window.open("","Pop","scrollbars=yes,status=no,resizable=yes,width=" + width + ",height=" + height);
		winResult.document.write("<body style='margin:0px; border:0px;overflow-y:auto;overflow-x:hidden;'>");
		winResult.document.write("<div><img src='" + img + "' onclick='window.close();' style='cursor:pointer;border=0'></div>");
		return;
	}



	/**********************************************************************************************************
	 Function Name	: initMoving(target, position, topLimit, btmLimit)
	 Description			: ÀÌ¹ÌÁö ½ºÅ©·Ñ µû¶ó À§Ä¡ÀÌµ¿
	 Example				: initMoving(ÀÌµ¿ÇÒ °´Ã¼, À§Ä¡, »ó´ÜÀÌµ¿ Á¦ÇÑÀ§Ä¡, ÇÏ´ÜÀÌµ¿ Á¦ÇÑÀ§Ä¡)
     Output				:
	**********************************************************************************************************/
	function initMoving(target, position, topLimit, btmLimit) {
		if (!target)
			return false;

		var obj = target;
		obj.initTop = position;
		obj.topLimit = topLimit;
		obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;

		obj.style.position = "absolute";
		obj.top = obj.initTop;
		obj.left = obj.initLeft;

		if (typeof(window.pageYOffset) == "number") {
			obj.getTop = function() {
				return window.pageYOffset;
			}
		} else if (typeof(document.documentElement.scrollTop) == "number") {
			obj.getTop = function() {
				return document.documentElement.scrollTop;
			}
		} else {
			obj.getTop = function() {
				return 0;
			}
		}

		if (self.innerHeight) {
			obj.getHeight = function() {
				return self.innerHeight;
			}
		} else if(document.documentElement.clientHeight) {
			obj.getHeight = function() {
				return document.documentElement.clientHeight;
			}
		} else {
			obj.getHeight = function() {
				return 500;
			}
		}

		obj.move = setInterval(function() {
			if (obj.initTop > 0) {
				pos = obj.getTop() + obj.initTop;
			} else {
				pos = obj.getTop() + obj.getHeight() + obj.initTop;
				//pos = obj.getTop() + obj.getHeight() / 2 - 15;
			}

			if (pos > obj.bottomLimit)
				pos = obj.bottomLimit;
			if (pos < obj.topLimit)
				pos = obj.topLimit;

			interval = obj.top - pos;
			obj.top = obj.top - interval / 3;
			obj.style.top = obj.top + "px";
		}, 30)
	}

	//alert(t) 1 : Window Width Return , 2 Window Height Return
	function alertSize(t) {
	  var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	  }
	  if (t == 1){return myWidth;}
	  if (t == 2){return myHeight;}
	}

	function divFrameView()
	 {
		// ÇØ»óµµ¿¡ µû¶ó ÇÁ·¹ÀÓ/·¹ÀÌ¾î »çÀÌÁî Á¶Àý
		var mHeight = (screen.availHeight * 85 / 100) - 100;

		var FrameWidth = "750px"; // ÇÁ·¹ÀÓ °¡·Î»çÀÌÁî
		var FrameHeight = mHeight+"px";  // ÇÁ·¹ÀÓ ¼¼·Î»çÀÌÁî
		var ct = document.getElementById("Hidden_MB_IFrame");
		var Back_Div = document.getElementById("Back_MB_IFrame");

		ct.style.width = FrameWidth;
		ct.style.height = FrameHeight;

		ct.style.display = "";

		Back_Div.style.background = "#000000";
		Back_Div.style.display = "";

		if (alertSize(2) > document.body.clientHeight)
		{
			Back_Div.style.width = document.body.clientWidth + "px";
			Back_Div.style.height = alertSize(2) + "px";
		}
		else
		{
			Back_Div.style.width = document.body.clientWidth + "px";
			Back_Div.style.height = document.body.clientHeight + "px";
		}


		if (document.all)
		{
			Back_Div.style.filter = "alpha(opacity=80)";
		}
		else
		{
			Back_Div.style.opacity = "0.8";
		}


	  var divWidth = ct.offsetWidth;
	  var divHeight = ct.offsetHeight;

	  if (document.body.scrollTop == 0)
	  {
	   var top = document.documentElement.scrollTop;
	   var Left = document.documentElement.scrollLeft;
	  }
	  else
	  {
	   var top = document.body.scrollTop;
	   var Left = document.body.scrollLeft;
	  }

	  ct.style.marginTop = (top - (divHeight / 2)) + "px";
	  ct.style.marginLeft = (Left - (divWidth / 2)) + "px";

	  ct.style.visibility = "";
	 }

	/**********************************************************************************************************
	 Function Name	: removeEvent(sObj, sEvent, oFunction)
	 Description	: EventListener¸¦ ¸Þ¸ð¸®¿¡¼­ Á¦°Å
	 Example		: removeEvent(getObject('id'), "click", Á¦°ÅÇÔ¼ö¸í)
     Output			:
	**********************************************************************************************************/
	function removeEvent(sObj, sEvent, oFunction)
	{
		if(sObj.detachEvent)
		{
			// MSDOM Áö¿ø ºê¶ó¿ìÀú
			sObj.detachEvent("on" + sEvent, oFunction);
			return true;
		}
		else
		{
			if (sObj.removeEventListener)
			{
				// W3C DOM Áö¿ø ºê¶ó¿ìÀú
				sObj.removeEventListener(sEvent, oFunction, false); // ÀÚ½Å ¾øÀ½..
				return true;
			}
			else
			{
				// NN4 ³ª IE5mac µî ºñ È£È¯ ºê¶ó¿ìÀú
				return false;
			}
		}
	}


	/**********************************************************************************************************
	 Function Name	: getObject(elementID)
	 Description			: id°ªÀ¸·Î ºÎÅÍ obj »ý¼º
	 Example				: removeEvent(getObject('id'), "click", Á¦°ÅÇÔ¼ö¸í)
     Output				:
	**********************************************************************************************************/
	function getObject(elementID)
	{
		if(document.getElementById && document.getElementById(elementID))
		{
			return document.getElementById(elementID);
		}
		else
		if (document.all && document.all(elementID))
		{
			return document.all(elementID);
		}
		else
		if (document.layers && document.layers[elementID])
		{
			return getNN4Object(document, elementID);
		}
		else
		{
			return false;
		}
	}

	/**********************************************************************************************************
	 Function Name	: RndStr()
	 Description	: ·£´ý ¹®ÀÚ¿­ »ý¼º
	 Example		: var rndstr = new RndStr();
					  rndstr.setType(0); // 0 : ´ë¹®ÀÚ + ¼Ò¹®ÀÚ + ¼ýÀÚ, '1' : ¼ýÀÚ 'a' : ¼Ò¹®ÀÚ 'A' : ´ë¹®ÀÚ 'A1' : ´ë¹®ÀÚ+¼ýÀÚ a1 : ¼Ò¹®ÀÚ + ¼ýÀÚ
					  rndstr.setStr(32); // Ãâ·ÂÇÏ°í ½ÍÀº ÀÚ¸®¼ö
					  document.write(rndstr.getStr() + "<br />");
     Output			:
	**********************************************************************************************************/
	function RndStr()
	{
		this.str = '';
		this.pattern = /^[a-zA-Z0-9]+$/;

		this.setStr = function(n) {
			if(!/^[0-9]+$/.test(n)) n = 0x10;
			this.str = '';
			for(var i=0; i<n-1; i++) {
				this.rndchar();
			}
		}

		this.setType = function(s) {
			switch(s) {
				case '1' : this.pattern = /^[0-9]+$/; break;
				case 'A' : this.pattern = /^[A-Z]+$/; break;
				case 'a' : this.pattern = /^[a-z]+$/; break;
				case 'A1' : this.pattern = /^[A-Z0-9]+$/; break;
				case 'a1' : this.pattern = /^[a-z0-9]+$/; break;
				default : this.pattern = /^[a-zA-Z0-9]+$/;
			}
		}

		 this.getStr = function() {
			return this.str;
		}

		 this.rndchar = function() {
			var rnd = Math.round(Math.random() * 1000);

			if(!this.pattern.test(String.fromCharCode(rnd))) {
				this.rndchar();
			} else {
				this.str += String.fromCharCode(rnd);
			}
		}
	}

	function parentDivDisplayNone(divID)
	{
		if (parent.document.getElementById(divID))
		{
			parent.document.getElementById(divID).style.display = "none";
		}
		else
		{
			alert("ÇØ´ç ·¹ÀÌ¾î°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù");
		}
	}