	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 + '=' + encodeURIComponent(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 += encodeURIComponent(sElm[x].value) + ',';
                        }
					}
                    str = str.substr(0, str.length -1 ) + '&';
                    break;
				
				case 'radio':
					if( elm.checked )
					{
						str += elm.name + '=' + encodeURIComponent(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 += ',' + encodeURIComponent(elm.value);
                         }
						 else
						 {
							str += elm.name + '=' + encodeURIComponent(elm.value);
                         }
                         str += '&';
                         endName = elm.name;
                     }
                     break;
			}
		}

		return str.substr(0, str.length - 1 );
	}

	function SendXMLDataFun(obj, ActionURL, ActionFlag) 
	{			
		var xmlhttp = newXMLHTTP();
		var i, senddata;
		if(!xmlhttp)
		{
			return false;
		}	
		
		commonFormPost(obj)
		
		senddata = commonFormPost(obj);

		xmlhttp.open("POST",ActionURL,true);
		xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
		xmlhttp.send(senddata);

		xmlhttp.onreadystatechange = function() 
		{
			if(xmlhttp.readyState == 4) 
			{
				if(xmlhttp.status == 200) 
				{
					if(ActionFlag == "1")
					{
						CallBackResult(xmlhttp);
					}
					else if(ActionFlag == "2")
					{
						PopupCallBackResult(xmlhttp);
					}
				} 
				else 
				{
					alert("! ÀÚ·á Àü¼Û Áß ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù:\n\n"+xmlhttp.status+" "+xmlhttp.statusText);
				}
			}
		}  
	}


	function SendGetXMLDataFun(ActionURL, ActionFlag) 
	{			
		var xmlhttp = newXMLHTTP();

		if(!xmlhttp)
		{
			return false;
		}	

		xmlhttp.open("GET",ActionURL,true);
		xmlhttp.send(null);

		xmlhttp.onreadystatechange = function() 
		{
			if(xmlhttp.readyState == 4) 
			{
				if(xmlhttp.status == 200) 
				{
					if(ActionFlag == "1")
					{
						MenuXMLCallBackResult(xmlhttp);
					}
					else if(ActionFlag == "2")
					{
						MenuXLSCallBackResult(xmlhttp);
					}
				} 
				else 
				{
					alert("! ÀÚ·á Àü¼Û Áß ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù:\n\n"+xmlhttp.status+" "+xmlhttp.statusText);
				}
			}
		}  
	}

	
	function CallBackResult(xmlhttp) 
	{
		var xmlDoc = xmlhttp.responseXML;
		var XmlDataFlag = xmlDoc.getElementsByTagName("XmlDataFlag")[0].firstChild.nodeValue;
		var XmlDataMsg, XmlDataGotoURL;
		
		if(XmlDataFlag == "1")//Error Message
		{
			XmlDataMsg = xmlDoc.getElementsByTagName("XmlDataMsg")[0].firstChild.nodeValue;
			XmlDataMsg = XmlDataMsg.replace(/\¦±/g,"\n");

			alert(XmlDataMsg);

		}
		else if(XmlDataFlag == "2")//Goto URL
		{
			XmlDataMsg = xmlDoc.getElementsByTagName("XmlDataMsg")[0].firstChild.nodeValue;
			XmlDataMsg = XmlDataMsg.replace(/\¦±/g,"\n");
			XmlDataGotoURL = xmlDoc.getElementsByTagName("XmlDataGotoURL")[0].firstChild.nodeValue;
			
			if(XmlDataMsg != "")
			{
				alert(XmlDataMsg);
			}
			
			PageLocationURL(XmlDataGotoURL);
		}
	}

	function PopupCallBackResult(xmlhttp) 
	{
		var xmlDoc = xmlhttp.responseXML;
		var XmlDataFlag = eval("xmlDoc.getElementsByTagName('XmlDataFlag')[0]").firstChild.nodeValue;
		var XmlDataMsg, XmlDataGotoURL;

		if(XmlDataFlag == "1")//Error Message
		{
			XmlDataMsg = eval("xmlDoc.getElementsByTagName('XmlDataMsg')[0]").firstChild.nodeValue;
			XmlDataMsg = XmlDataMsg.replace(/\¦±/g,"\n");

			alert(XmlDataMsg);
		}
		else if(XmlDataFlag == "2")//Goto URL WIndows Close
		{
			XmlDataMsg = eval("xmlDoc.getElementsByTagName('XmlDataMsg')[0]").firstChild.nodeValue;
			XmlDataMsg = XmlDataMsg.replace(/\¦±/g,"\n");
			XmlDataGotoURL = eval("xmlDoc.getElementsByTagName('XmlDataGotoURL')[0]").firstChild.nodeValue;
			
			if(XmlDataMsg != "")
			{
				alert(XmlDataMsg);
			}

			WindowLocationClose(XmlDataGotoURL);
		}
		else if(XmlDataFlag == "3")//Goto URL WIndows
		{
			XmlDataMsg = eval("xmlDoc.getElementsByTagName('XmlDataMsg')[0]").firstChild.nodeValue;
			XmlDataMsg = XmlDataMsg.replace(/\¦±/g,"\n");
			XmlDataGotoURL = eval("xmlDoc.getElementsByTagName('XmlDataGotoURL')[0]").firstChild.nodeValue;
			
			if(XmlDataMsg != "")
			{
				alert(XmlDataMsg);
			}

			ModalPageLocationURL(document.Cmd_MainForm, XmlDataGotoURL);
		}

		
	}

	var MenuxmlDoc, MenuxslDoc;

	function LoadMenuXML(GotoMenuXML)
	{ 
		if(GotoMenuXML.length == 6)
		{
			MenuxmlDoc = null;
			MenuxslDoc = null;

			document.getElementById("MainContentView01").style.display = "none";	
			document.getElementById("MainContentView02").innerHTML = "";

			var XMLActionURL = "/Common/MainContent_XML.asp?GotoMenuFlag="+GotoMenuXML;
			var XMLActionFlag = "1";
			SendGetXMLDataFun(XMLActionURL, XMLActionFlag);	

			var XLSActionURL = "/Common/MainContent.xsl";
			var XLSActionFlag = "2";
			SendGetXMLDataFun(XLSActionURL, XLSActionFlag);	
		}	
		else
		{
			document.getElementById("MainContentView01").style.display = "";	
			document.getElementById("MainContentView02").style.display = "none";	
		}
	}

	function OutMenuXML()
	{ 
		document.getElementById("MainContentView01").style.display = "";	
		document.getElementById("MainContentView02").innerHTML = "";
	}


	function MenuXMLCallBackResult(xmlhttp)
	{
        MenuxmlDoc = eval("xmlhttp.responseXML");
		MenuLoadView();
	}

	function MenuXLSCallBackResult(xmlhttp)
	{
		MenuxslDoc = eval("xmlhttp.responseXML");
		MenuLoadView();
	}

	//¸Þ´º
	function MenuLoadView()
	{
		var objOutput = document.getElementById("MainContentView02");

		if (MenuxmlDoc==null || MenuxslDoc==null)
		{ 
			return false; 
		}

        if (window.ActiveXObject)
		{
		  objOutput.innerHTML = MenuxmlDoc.transformNode(MenuxslDoc);
        }
        else
		{
          var xsltProcessor = new XSLTProcessor();
          xsltProcessor.importStylesheet(MenuxslDoc);
          var fragment =xsltProcessor.transformToFragment(MenuxmlDoc,document);
          objOutput.innerHTML = "";
          objOutput.appendChild(fragment);
        }
	}


	// ÄÁÆß ¸Þ¼¼Áö ¹Ú½º ÇÁ·Î±×·¹½º ¹Ù êó

	function ConfirmJavaScript(JSMessage,JSGotoPageURL) 
	{
			
		var ConFirmTxt = confirm(JSMessage);  

		if(ConFirmTxt)
		{
			document.location.href = JSGotoPageURL;
			show_progressbar();
		}	
		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 ViewMenuLayer(MenuValue)
	{
		for (var i=1; i<3; i++) 
		{ 
			if(i == MenuValue)
			{
				eval("document.getElementById('MenuLayer'+i)").style.display = "";		
			}
			else
			{
				eval("document.getElementById('MenuLayer'+i)").style.display = "none";		
			}
		}
		
		if(MenuValue == 1)
		{
			document.Menu01.src = '/Image/Front/C_Btn01_1.gif';
		}
		else if(MenuValue == 2)
		{
			document.Menu02.src = '/Image/Front/P_Btn01_1.gif';
		}
	}

	function CloseMenuLayer(MenuValue)
	{
		var LayerValue = eval("document.getElementById('MenuLayer'+MenuValue)");
		LayerValue.style.display = 'none';
		
		if(MenuValue == 1)
		{
			document.Menu01.src = '/Image/Front/C_Btn01.gif';
		}
		else if(MenuValue == 2)
		{
			document.Menu02.src = '/Image/Front/P_Btn01.gif';
		}
	}


	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 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; 
		 }
	}

	// ¾ÆÀÌµð ÇÑ±ÛÃ¼Å©

	function IDAlPhaChK(str)
	{
		var ch = str.charAt(0);
		if ( (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') )
			return true;
		else
			return 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();
		}
	}	

	var BoardPopupView = null; 
	function BoardPopup(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=yes,menubar=yes, resizable=yes' 
		BoardPopupView = window.open(CurrentOpenPageUrl,PopupName,PopupSetting) 
			
		if (BoardPopupView == null) 
		{
			if ((navigator.userAgent.indexOf("Windows NT 5.1")!=-1) && (navigator.userAgent.indexOf("SV1")!=-1)) {      // SP2 À¥ ºê¶ó¿ìÀú
		        alert("!ÆË¾÷ Ã¢ÀÌ Â÷´ÜµÇ¾ú½À´Ï´Ù.\n³»¿ëÀ» º¸½Ã·Á¸é ºê¶ó¿ìÀúÀÇ »ó´Ü ³ë¶õ»ö [¾Ë¸² Ç¥½ÃÁÙ]À» Å¬¸¯ÇÏ½Å ÈÄ\nÆË¾÷ Ã¢À» Çã¿ëÇÏµµ·Ï ¼±ÅÃÇÏ¿© ÆË¾÷ Ã¢À» ¿©½Ê½Ã¿À.");
		    }
		    else {
			  alert("!ÆË¾÷ Ã¢À» ¿ÀÇÂ ÇÒ ¼ö ¾ø½À´Ï´Ù.\n³»¿ëÀ» º¸½Ã·Á¸é ÆË¾÷ Â÷´Ü ÇÁ·Î±×·¥ÀÌ ¼³Ä¡µÇ¾î ÀÖ´Â °æ¿ì ÆË¾÷ Ã¢À» Çã¿ëÇÏ¿© ÆË¾÷ Ã¢À» ¿©½Ê½Ã¿À.");
		    }
		} else 
		{
		    BoardPopupView;
			window.BoardPopupView.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;
		}	
		else
		{
			alert("!URL ¿À·ùÀÔ´Ï´Ù.\n\n»õ·Î°íÄ§ ÈÄ ´Ù½Ã ÀÌ¿ëÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}	
	}			
	
	function ModalPageLocationURL(form, GotoPageURL) 
	{
		if (GotoPageURL != "") 
   		{
			if (window.showModalDialog) 
			{
				show_progressbar();
				form.target = "ModalFrm"; 
				form.action = GotoPageURL;
				form.submit();
			}
			else
			{
				show_progressbar();
				form.action = GotoPageURL;
				form.submit();
			}
		}	
		else
		{
			alert("!URL ¿À·ùÀÔ´Ï´Ù.\n\n»õ·Î°íÄ§ ÈÄ ´Ù½Ã ÀÌ¿ëÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}	
	}	

	function ConfirmSubmit(JSMessage, JSGotoPageURL, FormName, TargetName)
	{ 
		var ConFirmTxt = confirm(JSMessage);  

		if(ConFirmTxt)
		{
			if (JSGotoPageURL != "") 
			{
				show_progressbar();
				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;
				window.close();
			}
			else
			{	
				window.parent.opener.document.location.href = GotoPageURL;
				window.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,WmodeString,FlashNameString,AlignString) 
	{
		if(WmodeString == "1")
		{
			return "<OBJECT classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"  codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" WIDTH=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" id=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\"><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 bgcolor=#FFFFFF WIDTH=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" NAME=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT>";
		}
		else
		{
			return "<OBJECT classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"  codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" WIDTH=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" id=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\"><PARAM NAME=movie VALUE=\""+FlashFileURL+"\"><PARAM NAME=quality VALUE=high><PARAM NAME=\"allowScriptAccess\" VALUE=\"sameDomain\" /><EMBED src=\""+FlashFileURL+"\" quality=high bgcolor=#FFFFFF WIDTH=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" NAME=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></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;															
	
		calendar = document.getElementById("minical");
		
		if (navigator.userAgent.indexOf("MSIE") != -1)
		{
			var top = document.body.clientTop + GetObjectTop(obj);
			var left = document.body.clientLeft + GetObjectLeft(obj);

			if(top > 400)
			{
				calendar.style.pixelTop = top - 142;
			}
			else
			{
				calendar.style.pixelTop = top + obj.offsetHeight;
			}
			calendar.style.pixelLeft = left;
		}
		else
		{
			calendar.style.left = e.pageX;
			calendar.style.top  = e.pageY;
		}
		
		calendar.style.display = 'block';
		
		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 MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}