		<!--
		//**********************************************************************************//
		  // title
		//**********************************************************************************//
		document.title="WarRock Management Page";

		//**********************************************************************************//
		  // 링크 주소 감추기
		//**********************************************************************************//

//		function hidestatus()
//		{
//			window.status='';
//
//			timerID= setTimeout("hidestatus()", 30);
//
//			return true;
//		}
//		if (document.layers)
//		document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
//
//		document.onmouseover=hidestatus
//		document.onmouseout=hidestatus

		//**********************************************************************************//
		//입력폼에서 Null문자를 제거
		//	varStr	: document.form.Inputbox.value
		//**********************************************************************************//
		function Trim(varStr)
		{
			var reg = /\s+/g;
			return varStr.replace(reg,'');
		}
		
//		//**********************************************************************************//
//		//숫자만 입력 (키 입력 이벤트 발생시) -  원본
//		//**********************************************************************************//
//		function fncCheckOnlyNumber1()
//		{
//			//백스페이스, 탭, Del키, 숫자, 키패드숫자, 화살표키, Home, End키 만 허용
//			if (
//				event.keyCode == 8 || 
//				event.keyCode == 9 || 
//				event.keyCode == 46 || 
//				((event.keyCode >= 96) && (event.keyCode <= 105)) || 
//				((event.keyCode >= 48) && (event.keyCode <= 57)) || 
//				((event.keyCode >= 37) && (event.keyCode <= 40)) || 
//				((event.keyCode >= 35) && (event.keyCode <= 36)))
//			{
//				document.form.Number2.value = event.keyCode;
//			}else
//			{
//				event.returnValue = false;
//			}
//		}

		//**********************************************************************************//
		//숫자만 입력 (키 입력 이벤트 발생시) - 현재 쓰고 있는 함수
		//**********************************************************************************//
		function fncCheckOnlyNumber(x)
		{
			//백스페이스, 탭, Del키, 숫자, 키패드숫자, 화살표키, Home, End키 만 허용
			if (!(((event.keyCode >= 48) && (event.keyCode <= 57)))) 
	
			event.returnValue = false;

				if(((event.keyCode >= 65) && (event.keyCode <= 90)) || ((event.keyCode >= 97) && (event.keyCode <= 122))) {
					alert('Only Numbers');
					x.value = "";
					x.focus();
					return ;
				}
		}
		
		//**********************************************************************************//
		//영문, 숫자만 입력 (키 입력 이벤트 발생시)
		// style="ime-mode:disabled;"로 대체 가능
		//**********************************************************************************//
		function fncCheckOnlyNumChar()
		{
			if (!(((event.keyCode >= 48) && (event.keyCode <= 57)) || ((event.keyCode >= 65) && (event.keyCode <= 90)) || ((event.keyCode >= 97) && (event.keyCode <= 122))))
      			event.returnValue=false;
		}

		//**********************************************************************************//
		//한글만 입력 (키 입력 이벤트 발생시)
		//**********************************************************************************//
		function onlyHangul(x)
		{

			for(i=0 ; i<x.NAME.value.length ; i++) {

				// 유니코드로 반환

				var valUni = x.NAME.value.charCodeAt(i);				

				// 한글은 128이상

				if(valUni > 31 && valUni < 128) {
					alert('한글만 입력가능!');
					x.NAME.value = "";
					x.NAME.focus();
					return;
				}
			}
		}
		
		//**********************************************************************************//
		//Email 문자체크
		//**********************************************************************************//
		function fncCheckEmail(varObject)
		{
			var varStr="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@.-_";
			
			for (var i = 0; i < varObject.value.length; i++)
			{
				if (-1 == varStr.indexOf(varObject.value.charAt(i)))
				{
					alert("Un Validation Email");
					varObject.focus();
					return false;
				}
			}
			
			var varInputText = varObject.value;
			var varTemp1, varTemp2;
			
			varTemp1 = varInputText.indexOf('@', 0) + 1;
			varTemp2 = varInputText.indexOf('.', 0) + 1;
			
			if (varTemp1 == "")
			{
				alert("Un Validation Email");
				varObject.focus();
				return false;
			}
			
			if (varTemp2 == "")
			{
				alert("Un Validation Email");
				varObject.focus();
				return false;
			}
			
			var varTemp3;
			varTemp3 = varInputText.split("@");
			
			if ((!varTemp3[0] || !varTemp3[1]) || (varTemp3[0] == "" || varTemp3[1] == ""))
			{
				alert("Un Validation Email");
				varObject.focus();
				return false;
			}
			
			var varTemp4;
			varTemp4 = varTemp3[1].split(".");
			
			if ((!varTemp4[0] || !varTemp4[1]) || (varTemp4[0] == "" || varTemp4[1] == ""))
			{
				alert("Un Validation Email");
				varObject.focus();
				return false;
			}
			
			return true;
		}
		
		//**********************************************************************************//
		//입력문자 체크 (Submit()후)
		//	varObject		: document.form.Inputbox
		//	varDivision	: 체크문자 구분
		//					1 : 숫자만입력
		//					2 : 알파벳문자만 입력
		//					3 : 숫자, 알파벳문자만 입력
		//**********************************************************************************//
		function fncCheckSubmitCharNum(varObject, varDivision)
		{
			if (Trim(varObject.value) == "")
			{
				alert("Do not Input");
				varObject.value = "";
				varObject.focus();
				return false;
			}
			
			if (varDivision == "1")		//숫자만 입력
			{
				var varNum="-0123456789";
			}else if (varDivision == "2")	//알파벳문자만 입력
			{
				var varNum="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
			}else if (varDivision == "3")	//숫자, 알파벳문자만 입력
			{
				var varNum="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";
			}
			
			for (var i = 0; i < varObject.value.length; i++)
			{
				if (-1 == varNum.indexOf(varObject.value.charAt(i)))
				{
					if (varDivision == "1")		//숫자만 입력
					{
						alert("Only Numbers");
					}else if (varDivision == "2")	//알파벳문자만 입력
					{
						alert("Only Alphabet");
					}else if (varDivision == "3")	//숫자, 알파벳문자만 입력
					{
						alert("Mixed Number or Alphabet");
					}
					
					varObject.value = "";
					varObject.focus();
					return false;
				}
			}
			
			return true;
		}

		function fncFind()
		{
			if (!(fncCheckUserInputbox(document.frmFind.NAME, 'Name'))) return;
			if (!(fncCheckUserInputbox(document.frmFind.JUMINNO1, 'ID'))) return;
			if (!(fncCheckSubmitCharNum(document.frmFind.JUMINNO1, '1'))) return;
			if (!(fncCheckUserInputbox(document.frmFind.JUMINNO2, 'ID'))) return;
			if (!(fncCheckSubmitCharNum(document.frmFind.JUMINNO2, '1'))) return;
			
			document.frmFind.action = "FinderOk.asp";
			document.frmFind.submit();
		}

/*
		function fncJuminNext()
		{
			var varJuminLen
			varJuminLen = document.frmFind.JUMINNO1.value;
			
			if (varJuminLen.length > 5)
			{
				document.frmFind.JUMINNO2.focus();
				return;
			}
			return;
		}
*/
		function fncJuminNext(varObject, varObject2)
		{
			var varJuminLen
			varJuminLen = varObject.value;
			
			if (varJuminLen.length > 5)
			{
				varObject2.focus();
				return;
			}
			return;
		}

		function Login(Url)
		{
			alert('Please Use After Login.');
			location.href ="/Login.asp?"+Url;
		}


		//**********************************************************************************//
		//회원가입 페이지 : 재학생, 일반인 구분(step1)
		//	varObject	: document.frmCheck.Type
		//	radio		: 라디오버튼 체크
		//**********************************************************************************//
		function fncCheck()
		{
			var radio = document.frmCheck.section;
			var chkRadio = false;

			for(var i=0; i < radio.length ; i++){
				if(radio[i].checked == true) {
				chkRadio = true;
				}
			}

			if(chkRadio == false){
				alert("It is not Selected.");
			return;
			}

		//location.href = "article.asp";
		document.frmCheck.action = "NameConfirm_Form.asp";
		document.frmCheck.submit();
		}

		//**********************************************************************************//
		//사용자 입력폼 입력여부 체크
		//	varObject	: document.form.inputbox
		//	varName		: 입력폼 이름
		//**********************************************************************************//
		function fncCheckUserInputbox(varObject, varName)
		{
			if (Trim(varObject.value) == "")
			{
				alert("Please insert " + varName);
				varObject.value = "";
				varObject.focus();
				return false;
			}else
			{
				return true;
			}
		}

		//**********************************************************************************//
		//사용자 입력폼 입력여부 체크
		//	varObject	: document.form.ListBox
		//	varName		: 선택폼 이름
		//**********************************************************************************//
		function fncCheckUserListBox(varObject, varName)
		{
			if (Trim(varObject.value) == "")
			{
				alert("Please insert " + varName);
				//varObject.value = "";
				varObject.focus();
				return false;
			}else
			{
				return true;
			}
		}

		//**********************************************************************************//
		//사용자 입력폼 입력여부 체크
		//	varObject	: document.form.radio
		//	varName		: 선택폼 이름
		//**********************************************************************************//

		function fncCheckUserRadioButton(varObject, varName)
		{
			var chkRadio = 0;

			for(var i = 0; i < varObject.length; i++)
			{
				if(varObject[i].checked == true) 
				{
					chkRadio++;
					return true;
				}
			}

			if(chkRadio == 0){
				alert("Please select " + varName);
				varObject[0].focus();
			return;
			}
		}

		//**********************************************************************************//
		//사용자 입력폼 입력여부 체크
		//	varObject	: document.form.checkbox
		//	varName		: 선택폼 이름
		//**********************************************************************************//
		function fncCheckUserCheckBox(varObject, varName)
		{
			var nSelCount = 0;

			for(i=0 ; i < varObject.length; i++)
			{
				if (varObject[i].checked == true)
				{
					//alert("Please select " + varName);
					//return true;
					nSelCount++
					return true;
				}
			}

			if ( nSelCount == 0 ) {
				alert("Please select " + varName);
				//varObject[i].focus();
				return false;
			}
		}		

		
		//**********************************************************************************//
		//주민번호 유효성체크
		//	varSocietyID1	: document.form.InputBox (주민번호의 앞부분)
		//	varSocietyID2	: document.form.InputBox (주민번호의 뒷부분)
		//**********************************************************************************//
		function fncCheckSocietyID(varSocietyID1, varSocietyID2)
		{
			var varSocietyID, aryNum, varNumSum;
			
			if (Trim(varSocietyID1.value) == "")
			{
				alert("Please insert ID");
				varSocietyID1.value = "";
				varSocietyID1.focus()
				return false;
			}
			if (Trim(varSocietyID2.value) == "")
			{
				alert("Please insert ID");
				varSocietyID2.value = "";
				varSocietyID2.focus();
				return false;
			}
			
			varSocietyID = varSocietyID1.value + varSocietyID2.value;
			aryNum = new Array(13);
			
			for (var i = 0; i < 13; i++)
			{
				aryNum[i] = parseInt(varSocietyID.charAt(i));
			}
			
			varNumSum = aryNum[0]*2 + aryNum[1]*3 + aryNum[2]*4 + aryNum[3]*5 + aryNum[4]*6 + aryNum[5]*7 + aryNum[6]*8 + aryNum[7]*9 + aryNum[8]*2 + aryNum[9]*3 + aryNum[10]*4 + aryNum[11]*5;
			varNumSum = varNumSum % 11;
			varNumSum = 11 - varNumSum;
			
			if (varNumSum > 9)
			{
		    		varNumSum = varNumSum % 10
			}
			
			if (varNumSum != aryNum[12])
			{
				alert ("Invalid ID");
				varSocietyID1.value == "";
				varSocietyID1.focus();
				return false;
			}else
				return true;
		}
		
		//**********************************************************************************//
		//모달 다이얼로그 (일반)
		//	varUrl	: 다이얼로그 URL
		//	varName	: 다이얼로그 이름
		//	varWidth	: 다이얼로그 넓이
		//	varHeight : 다이얼로그 높이
		//**********************************************************************************//
		function fncModalDialogOpenSize(varUrl, varWidth, varHeight, varScroll)
		{
			window.hasModal = true;

			var varOption = "dialogWidth=" + varWidth + "; dialogHeight=" + varHeight + "; center: Yes; scollbars:" + varScroll + "; help: No; resizable: No; status: No;";
			
			var returnValue = showModalDialog(varUrl, window, varOption);

			window.hasModal = false;
			return returnValue;
		}

		//**********************************************************************************//
		//모달리스 다이얼로그 (일반)
		//	varUrl	: 다이얼로그 URL
		//	varName	: 다이얼로그 이름
		//	varWidth	: 다이얼로그 넓이
		//	varHeight : 다이얼로그 높이
		//**********************************************************************************//

		function fncModalessDialogOpenSize(varUrl, varWidth, varHeight)
		{	
			// IE
			if(typeof(window.showModalDialog) != 'undefined'){
				//window.showModelessDialog(varUrl, null, "dialogWidth: "+ varWidth +"px; dialogHeight:"+ varHeight +"px; help:yes; scroll:yes; resizable:yes");
				window.showModelessDialog(varUrl, null, "dialogWidth: "+ varWidth +"px; dialogHeight:"+ varHeight +"px; help:yes; scroll:No; resizable:No");
			}
			// Mozilla
			else{
				window.open(varUrl, null, "dialog, modal, width="+ varWidth +", height="+ varHeight);
			}
			
			return false;
		}

		function fncModalessDialogOpenSize2(sUrl, iWidth, iHeight){
			// IE
			if(typeof(window.showModalDialog) != 'undefined'){
				window.showModelessDialog(sUrl, null, "dialogHeight:"+ iHeight +"px; dialogWidth: "+ iWidth +"px; help:yes; scroll:yes; resizable:yes");
			}
			// Mozilla
			else{
				window.open(sUrl, null, "dialog, modal, width="+ iWidth +", height="+ iHeight);
			}
			
			return false;
		}



		//**********************************************************************************//
		//새창 (일반)
		//	varUrl	: 새창 URL
		//	varName	: 새창 이름
		//	varWidth	: 새창 넓이
		//	varHeight : 새창 높이
		//**********************************************************************************//
		function fncWindowOpenSize(varUrl, varName, varWidth, varHeight, varScroll)
		{
			var varOption = "toolbar=no, menubar=no, location=no, resizable=no, scrollbars=" +  varScroll + ", directories=no, width=" + varWidth + ",height=" + varHeight + "";
			var winPopup = window.open(varUrl, varName, varOption);
		}

		//**********************************************************************************//
		//새창 (일반)
		//	varUrl	: 새창 URL
		//	varName	: 새창 이름
		//	varWidth	: 새창 넓이
		//	varHeight : 새창 높이
		//**********************************************************************************//
		function fncSearchPrice()
		{
			var varOption = "toolbar=no, menubar=no, location=no, resizable=no, scrollbars=yes, directories=no, width=690,height=500";
			//var winPopup = window.open("http://hjwon.keystudy.net/help/money_list.aspx", "SearchPrice", varOption);
			var winPopup = window.open("Sub_Modules/Popup/Money_List.htm", "SearchPrice", varOption);
		}
		
		//**********************************************************************************//
		//새창 (옵션설정)
		//	varUrl		: 새창 URL
		//	varName		: 새창 이름
		//	varToolbar	: yes/no (툴바)
		//	varMenubar	: yes/no (메뉴)
		//	varLocation	: yes/no (주소창)
		//	varResizable	: yes/no (사이즈변경)
		//	varScrollvars	: auto/yes/no (스크롤바)
		//	varDirectories	: yes/no (연결)
		//	varWidth		: 새창넓이
		//	varHeight		: 새창높이
		//	varCenter		: yes/no (윈도우 포지션)
		//	varPositionWidth	: 윈도우 포지션 - 넓이
		//	varPositionHeight	: 윈도우 포지션 - 높이
		//	varFullscreen	: yes/no (전체화면 윈도우)
		//**********************************************************************************//
		function fncWindowOpenOption(varUrl, varName, varToolbar, varMenubar, varLocation, varResizable, varScrollvars, varDirectories, varWidth, varHeight, varCenter, varPositionWidth, varPositionHeight, varFullscreen)
		{
			var varPositionLeft;
			var varPositionTop;
			
			if (varCenter == "yes")
			{
				//gets top and left positions based on user's resolution so hint window is centered
				varPositionLeft = (window.screen.width / 2) - (varWidth / 2);
				varPositionTop = (window.screen.height / 2) - (varHeight / 2);
			}else
			{
				varPositionLeft	= varPositionWidth;
				varPositionTop	= varPositionHeight;
			}
			
			var varOption = "toolbar=" + varToolbar + ", menubar=" + varMenubar + ", location=" + varLocation + ", resizable=" + varResizable + ", scrollbars=" + varScrollvars + ", directories=" + varDirectories + ", width=" + varWidth + ",height=" + varHeight + ", left=" + varPositionLeft + ", top=" + varPositionTop + ", fullscreen=" + varFullscreen + "";
			var winPopup = window.open(varUrl, varName, varOption);
		}
		
		//**********************************************************************************//
		//북마크
		//	varUrl	: 북마크 URL
		//	varTitle	: 북마크 제목
		//**********************************************************************************//
		function fncBookmark(varUrl, varTitle)
		{
			window.external.AddFavorite(varUrl, varTitle);
			return;
		}
		
		//**********************************************************************************//
		//익스플로러 상태바에 텍스트출력
		//	varDivision	: yes/no
		//	varText		: 출력할 텍스트
		//**********************************************************************************//
		function fncStatusbarPrint(varDivision, varText)
		{
			if (varDivision == "yes")
			{
				self.status = varText;
			}else
			{
				self.status = "";
			}
		}
		
		//**********************************************************************************//
		//페이지 이동
		//	varUrl	: 이동할 페이지 URL
		//**********************************************************************************//
		function fncRedirect(varUrl)
		{
			location.href = varUrl;
			return;
		}

//		//**********************************************************************************//
//		//페이지 이동
//		//	폼값 전송
//		// 날짜 : 2005-09-28
//		// 적용 사이트 : 학점원(강좌 찾기)
//		//**********************************************************************************//
//		function fncSearch()
//		{
//			var f = document.Lec_Search;
//
//			var Search = f.SearchString;
//
//			if (Trim(Search.value) == "") {
//				alert("찾으시려는 강의명을 입력해 주세요.");
//				Search.focus();
//				return;
//			}else{
//				f.action = "/Sub_Modules/Curri/Search_Curri_OK.asp" ;
//				f.submit();
//			}
//		}
//		
//		//**********************************************************************************//
//		//Popup Window 한번띄우기 쿠키 (처리용 함수)
//		//쿠키값 저장
//		//	varTime			: Popup Window를 감추는 기간(1:1일, 2:1년)
//		//	varPopupName	: 쿠키명 ("PopupWindow"로 쓰면된다)
//		//	varPopupValue	: 쿠키값 (중복되지 않는 Popup Window명을 쓴다)
//		//**********************************************************************************//
//		function fncSetCookie(varTime, varPopupName, varPopupValue)
//		{
//			var varMinute = 1000 * 60;
//			var varHour = eval(varMinute) * 60;
//			var varDay = eval(varHour) * 24;
//			var varYear = eval(varDay) * 365;
//			
//			var varDate = new Date();
//			
//			if (varTime == "1")							//1:하루만 숨김
//				varDate.setTime(varDate.getTime() + varDay);
//			else										//2:1년 숨김
//				varDate.setTime(varDate.getTime() + varYear);
//			
//			//alert(varPopupName + "=" + varPopupValue + "; path=/; expires=" + varDate.toGMTString());
//			document.cookie = varPopupName + "=" + varPopupValue + "; path=/; expires=" + varDate.toGMTString();
//		}
		
		//**********************************************************************************//
		//Popup Window 한번띄우기 쿠키 (처리용 함수)
		//쿠키값 삭제
		//	varPopupName	: fncSetCookie()에서 저장한 쿠키명과 동일한 쿠키명
		//	varPopupValue	: fncSetCookie()에서 저장한 쿠키값과 동일한 쿠키값
		//**********************************************************************************//
		function fncDelCookie(varPopupName, varPopupValue)
		{
			var varDate = new Date();
			
			//현재날짜로 쿠키를 셋팅하여, 쿠키를 삭제한다.
			document.cookie = varPopupName + "=" + varPopupValue + ";path=/;expires=" + varDate.toGMTString();
		}
		
//		//**********************************************************************************//
//		//Popup Window 한번띄우기 쿠키 (처리용 함수)
//		//쿠키값 불러오기
//		//	varPopupName	: fncSetCookie()에서 저장한 쿠키명과 동일한 쿠키명
//		//	varPopupValue	: fncSetCookie()에서 저장한 쿠키값과 동일한 쿠키값
//		//**********************************************************************************//
//		function fncGetCookie(varPopupName, varPopupValue)
//		{
//			//alert(document.cookie);
//			
//			if (document.cookie != "")
//			{
//				var varCookie = document.cookie;			//쿠키를 얻는다.
//				var varSplitCookie = varCookie.split(";");	//쿠키를 분리한다.
//				var varCookieTemp;
//				var varCookieTempSplit;
//				var varCookieResult;
//				
//				//분리된 쿠키 문자열들을 검색한다.
//				for (var i=0; i < varSplitCookie.length; i++)
//				{
//					varCookieTemp = "";
//					
//					//분리된 문자열 중 처음 문자가 공백이라면 제거한다.
//					if (varSplitCookie[i].substring(0, 1) == " ")
//						varCookieTemp = varSplitCookie[i].substring(1, varSplitCookie[i].length);
//					else
//						varCookieTemp = varSplitCookie[i];
//					
//					//분리된 문자열 중 마지막 문자가 공백이라면 제거한다.
//					if (varCookieTemp.substring(varCookieTemp.length, varCookieTemp.length - 1) == " ")
//						varCookieTemp = varCookieTemp.substring(varCookieTemp.length - 1, 0);
//					
//					//쿠키명과 쿠키값을 분리한다.
//					varCookieTempSplit = varCookieTemp.split("=");
//					
//					//쿠키명과 쿠키값을 비교한다.
//					if (eval(varCookieTempSplit.length) >= 2)
//					{
//						if ((varCookieTempSplit[0] == varPopupName) && (varCookieTempSplit[1] == varPopupValue))
//						{
//							varCookieResult = true;		//쿠키있음
//							break;
//						}else
//							varCookieResult = false;	//쿠키없음
//					}
//				}
//				
//				return varCookieResult;
//				
//			}else
//				return false;
//		}
		
		//**********************************************************************************//
		//Popup Window 한번띄우기 쿠키 (사용자(디자이너or개발자)용 함수)
		//쿠키값을 체크하여 Popup Window 띄우기 (부모창 함수)
		//	varPopupName	: fncSetCookie()에서 저장한 쿠키명과 동일한 쿠키명
		//	varPopupValue	: fncSetCookie()에서 저장한 쿠키값과 동일한 쿠키값
		//	varUrl			: Open할 Popup Window의 URL
		//	varName			: Popup Window의 이름 (New Window Name)
		//	varWidth		: Popup Window의 크기 (넓이)
		//	varHeight		: Popup Window의 크기 (높이)
		//	varScrollvars		: Popup Window 스크롤여부
		//**********************************************************************************//
		function fncPopupOpen(varPopupName, varPopupValue, varUrl, varName, varWidth, varHeight, varPositionWidth, varPositionHeight, varScrollvars)
		{
			var varCookie = fncGetCookie(varPopupName, varPopupValue);
			
			//쿠키가 존재하지 않는다면, Popup Window를 띄운다.
			if (varCookie == false)
				//fncWindowOpenSize(varUrl, varName, varWidth, varHeight);
				
				//fncWindowOpenOption(varUrl, varName, 'no', 'no', 'no', 'no', 'no', 'no', varWidth, varHeight, 'no', varPositionWidth, varPositionHeight, 'no');
				fncWindowOpenOption(varUrl, varName, 'no', 'no', 'no', 'no', varScrollvars, 'no', varWidth, varHeight, 'no', varPositionWidth, varPositionHeight, 'no');
		}


		//**********************************************************************************//
		//Popup Window 가운데 띄우기 
		//	u : Open할 Popup Window의 URL
		//	t : Popup Window의 이름 (New Window Name)
		//	w : Popup Window의 크기 (넓이)
		//	h : Popup Window의 크기 (높이)
		//**********************************************************************************//
		 function fncPopupCenter(u,t,w,h){
			var opt="height=" + h + ",innerHeight=" + h + ",width=" + w + ",innerWidth=" + w;
			if(window.screen) { 
					var ah = screen.availHeight - 30;
					var aw = screen.availWidth - 10;
					var xc = (aw - w) / 2; 
					var yc = (ah - h) / 2; 
					opt += ",left=" + xc + ",screenX=" + xc; 
					opt += ",top=" + yc + ",screenY=" + yc; 
					opt += ",scrollbars=no";
			}
			win=window.open(u,t,opt);
			if(win) win.focus();
		}

		function popupCenter()
		{
			if (document.layers)
			{
				var x = screen.width/2-outerWidth/2;
				var y = screen.height/2-outerHeight/2;
			}
			else
			{
				var x = screen.width/2-document.body.offsetWidth/2;
				var y = screen.height/2-document.body.offsetHeight/2;
			}

			self.moveTo(x, y);
		}



		
		//**********************************************************************************//
		//Popup Window 한번띄우기 쿠키 (사용자(디자이너or개발자)용 함수)
		//쿠키값을 체크하여 Popup Window 띄우기 (PopUp창 함수)
		//	varObject		: Popup Window에 있는 "한번만 띄우기" 체크박스 Object (document.form이름.checkbox이름)
		//	varTime			: Popup Window를 감추는 기간(1:1일, 2:1년)
		//	varPopupName	: 쿠키명 ("PopupWindow"로 쓰면된다)
		//	varPopupValue	: 쿠키값 (중복되지 않는 Popup Window명을 쓴다)
		//**********************************************************************************//
		function fncPopupClose(varObject, varTime, varPopupName, varPopupValue)
		{
			if (varObject.checked)
			{
				//Popup Window 숨기기
				fncSetCookie(varTime, varPopupName, varPopupValue);
				self.close();
			}else
			{
				//Popup Window 보이기
				fncDelCookie(varPopupName, varPopupValue);
				self.close();
			}
			
			return;
		}
		
		//**********************************************************************************//
		//Top Menu에 사용하는 레이어 메뉴 출력함수 (퍼옴)
		//	1. 나타낼 메뉴를 테이블이 포함된 <Div>태그로 작성한다.
		//	2. 레이어(Div)를 호출할 Link에 함수작성. 아래 예제대로 작성한다.
		//	3. onMouseOver="MM_showHideLayers('Div명', '', 'show or hide', 메뉴 개수만큼 반복...........);"
		//**********************************************************************************//
		function MM_swapImgRestore()
		{
			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_findObj(n, d)
		{
			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 && document.getElementById) x=document.getElementById(n); return x;
		}
		
		function MM_showHideLayers()
		{
			var i,p,v,obj,args=MM_showHideLayers.arguments;
			for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
			if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
			obj.visibility=v; }
		}
		
		//**********************************************************************************//
		//입력된 문자의 길이를 제하는 함수
		//	textarea의 입력창에서 Varchar타입의 필드에 입력받을때, 문자의 수를 제한한다.
		//	기능키를 제외한 모든 입력문자키를 체크한다.
		//	varThis		: Object
		//	varLength	: 제한할 수
		//**********************************************************************************//
		function fncLengthLimit(varThis, varLength)
		{
			var varChar = varThis.value;
			
			if (eval(varChar.length) >= eval(varLength))
			{
				if (
					event.keyCode != 9		//Tab
					&& event.keyCode != 20	//Caps Lock
					&& event.keyCode != 16	//Shift
					&& event.keyCode != 17	//Ctrl
					&& event.keyCode != 18	//Alt
					&& event.keyCode != 91	//MS버튼(왼쪽)
					&& event.keyCode != 92	//MS버튼(오른쪽1)
					&& event.keyCode != 93	//MS버튼(오른쪽2)
					&& event.keyCode != 25	//한자
					&& event.keyCode != 21	//한영
					&& event.keyCode != 8	//BackSpace
					&& event.keyCode != 37	//화살표(왼쪽)
					&& event.keyCode != 38	//화살표(위)
					&& event.keyCode != 39	//화살표(오른쪽)
					&& event.keyCode != 40	//화살표(아래)
					&& event.keyCode != 27	//ESC
					&& event.keyCode != 112	//F1
					&& event.keyCode != 113	//F2
					&& event.keyCode != 114	//F3
					&& event.keyCode != 115	//F4
					&& event.keyCode != 116	//F5
					&& event.keyCode != 117	//F6
					&& event.keyCode != 118	//F7
					&& event.keyCode != 119	//F8
					&& event.keyCode != 120	//F9
					&& event.keyCode != 121	//F10
					&& event.keyCode != 122	//F11
					&& event.keyCode != 123	//F12
					&& event.keyCode != 145	//Scroll Lock
					&& event.keyCode != 19	//Pause/Break
					&& event.keyCode != 45	//Insert
					&& event.keyCode != 46	//Delete
					&& event.keyCode != 36	//Home
					&& event.keyCode != 35	//End
					&& event.keyCode != 33	//PageUp
					&& event.keyCode != 34	//PageDown
					&& event.keyCode != 144	//NumLock
					)
				{
					alert("inserted words can't be more than " + varLength);
					event.returnValue = false;
				}
			}
		}

		//**********************************************************************************//
		//ITBank Top_Menu부분
		//**********************************************************************************//
		function TopMenu_ConLink(num,UrlPass) {
		for (i=1;i<5;i++){

			imageC=eval("document.all.C_i_"+i);
			strSty=eval("this.C_i_"+i);

				if (num == i){
					imageC.background = "images/index_img/Top_Part_BG01.gif";
					strSty.style.color = "#666666";
				}else{
				imageC.background = "";
				imageC.background = "images/index_img/Top_Part_BG02.gif";
				strSty.style.color = "#00294B";

				}
			}
		}

		function GoMenuLinkCon(goLink) {
			top.mainContests.location.href = goLink;
		}

		//**********************************************************************************//
		// Not Null Check하는 Click event
		//숫자만 입력 (키 입력 이벤트 발생시) -  원본
		// Set Submit Style (value = 1:save, 2:save&New)
		//**********************************************************************************//

		function NullCheck(Chk_SubMit_Style){

		document.all.subMit_Style.value = Chk_SubMit_Style;

			FormName = document.all.FormName.value;				//Get form Name
			NullCount = document.all.ChkFieldCount.value;		//Get Checking null Count
			NullField = document.all.ChkFieldName.value;		//Get Checking field name
			AlertName = document.all.AlertString.value;			//Send error message(alert window string)

				for(i=0; i<NullCount; i++){
					Field = NullField.split('|')[i];
					ChkField=eval("document.all."+Field);

					AlertOk=AlertName.split('|')[i];
			
					if (ChkField.value ==""){
						alert(AlertOk);
						ChkField.focus();
						return;
					}
					ChkField='';
					Field='';
					AlertOk='';
				}

				var formName_Str = eval("document."+FormName);
				formName_Str.submit();
		}


		//////////// 실시간 콤마 /////////////////////
		//**********************************************************************************//
		// 3자리마다 콤마 찍어주는 keyup Event
		//숫자만 입력 (키 입력 이벤트 발생시)
		//**********************************************************************************//

		function cnj_comma(cnj_str) { 
			var t_align = "right"; // 텍스트 필드 정렬
			//var t_num = cnj_str.value.substring(0,1); // 첫글자 확인 변수
			var t_num = cnj_str.value; 
			var num = /^[/,/,0,1,2,3,4,5,6,7,8,9,/]/; // 숫자와 , 만 가능
			var cnjValue = ""; 
			var cnjValue2 = "";
				if (!num.test(cnj_str.value)) {
				//alert('숫자만 입력하십시오.\n\n특수문자와 한글/영문은 사용할수 없습니다.');
				alert('Special characters and English are not acceptible');
				cnj_str.value="";
				cnj_str.focus();
				return false;
		}

			if ((t_num < "0" || "9" < t_num)){
				alert("Only Numbers");
				cnj_str.value="";
				cnj_str.focus();
			return false;
			} 

		for(i=0; i<cnj_str.value.length; i++) { 
			if(cnj_str.value.charAt(cnj_str.value.length - i -1) != ",") { 
				cnjValue2 = cnj_str.value.charAt(cnj_str.value.length - i -1) + cnjValue2; 
			} 
		} 

		for(i=0; i<cnjValue2.length; i++) { 

			if(i > 0 && (i%3)==0) { 
				cnjValue = cnjValue2.charAt(cnjValue2.length - i -1) + "," + cnjValue; 
			} else { 
				cnjValue = cnjValue2.charAt(cnjValue2.length - i -1) + cnjValue; 
			} 
		} 

		cnj_str.value = cnjValue;
		cnj_str.style.textAlign = t_align;
		} 
		//////////// 실시간 콤마 /////////////////////


		// Path Open Category & doModal window open
		function PBCdoModal(url, windowStyle)
		{
			window.hasModal = true;

			var returnValue = showModalDialog(url, window, windowStyle);

			window.hasModal = false;
			return returnValue;
		}

		function closePopWin(){
			window.close();
		}


		//Only Num
		function chkKey_NUM(){
			if((event.keyCode < 48) || (event.keyCode > 57)){
			event.returnValue = false;
			}
		}

		//Null인 경우 Default 0 Set
		function Insert0(ChkKeyCode){
			var FieldName=eval("document.all."+ChkKeyCode);

			if(FieldName.value == ''){
				FieldName.value='0';
			}
		}

		// Not Null Value Default 값이 0이면 공백을 넣어라. onKeyPress event
		function Delete0Int(ChkKeyCode){
			var FieldName=eval("document.all."+ChkKeyCode);

			if(FieldName.value == '0'){
				FieldName.value='';
			}
			chkKey_NUM();	 // 소수점없이 숫자만 입력하는 함수

		}

		//Date String Format (Style = 00-00)
		function DateStrFormat2(GetFieldName){
			GetFieldNameOK = eval("document.all."+GetFieldName);
			 var chr1=GetFieldNameOK.value.substring(0,2);
			 var chr2=GetFieldNameOK.value.substring(3,5);
			 chrLen=GetFieldNameOK.value.length;
				if (chrLen==2){
					GetFieldNameOK.value = chr1 + '-';
				}
				if (chrLen==5){
					GetFieldNameOK.value = chr1 + '-' + chr2 ;
				}
				if (chrLen > 5){
					GetFieldNameOK.value = GetFieldNameOK.value.substring(0,4);
				}
		}

		//Delete Page URL Path AND Confirm....
		function DelConfirm1(URLGoOK){
		  if(!confirm("Do you want to delete?")){
		   return;
		  }

		  PBCdoModal(URLGoOK, 'dialogWidth=385px; dialogHeight=210px; scollbars=no; status=no; help=no');
		}

		//Just Delete Page URL Path AND Confirm From form
		function DelConfirm(URLGoOK,KeyNotic){

		  if(!confirm("This is important list for management.\nAre you sure to delete?\n\n"+KeyNotic)){
		   return;
		  }

		  location.href = URLGoOK;
		}

	//iFrame Resize
	function resize_frame2(frm) {
		scroll(0,0);

		if(frm){
			var pFrame = eval(frm + ".document.body");
			var iFrame = eval("document.all." + frm);
			iFrame.style.height = 100;

			alert(pFrame.scrollHeight);
			alert(pFrame.offsetHeight);
			alert(pFrame.clientHeight);

			//iFrame.style.height = pFrame.scrollHeight ;//(pFrame.offsetHeight);
			iFrame.style.height = pFrame.scrollHeight + (pFrame.offsetHeight - pFrame.clientHeight);
		}
		
	}

	function resize_frame(frm, getPic) {
		var pFrame = eval(frm + ".document.body;");
		var iFrame = eval("document.all." + frm + ";");
		
		if(!getPic){
			iFrame.style.height = pFrame.scrollHeight + (pFrame.offsetHeight - pFrame.clientHeight);
			//alert(iFrame.style.height);
		}else{
			iFrame.style.height = getPic;
		}
		scroll(0,0);
	}

	// 사용법 (1 Depth iframe일 경우)
//	function resizeFrame(){
//        self.resizeTo( document.body.scrollWidth, document.body.scrollHeight);
//    }
//    setTimeout('resizeFrame()',800);

	function resizeFrame(){
        self.resizeTo( document.body.scrollWidth, document.body.scrollHeight);
    }

	//**********************************************************************************//
	//5분마다 자동 리플레시 및 브라우저 종료 및 상태 이상시 confirmExit Method 추가
	// 2008-01-23 추가
	//**********************************************************************************//
	function confirmExit()
	{
		//event.returnValue = "오빠 벌써 가게?";
	}

	var limit="0:05"  // 30초 설정됨 ==> 분:초 ==> 분까지 설정하려면 1:30 이런식으로 하면 됩니다.
	if (document.images) {
		var parselimit=limit.split(":")
		parselimit=parselimit[0]*60+parselimit[1]*1
	}

	function Beginrefresh()
	{
		if (!document.images)
			return
		if (parselimit==1)
			//window.location.reload()
			GetInfo();
		else{ 
			parselimit-=1
			curmin=Math.floor(parselimit/60)
			cursec=parselimit%60

		if (curmin!=0)
			curtime="Refresh after " +curmin+" mins "+cursec+"  seconds" // 분과까지 지정시 메세지
		else
			curtime="Refresh after " +cursec+ " seconds"+cursec // 초만 지정시 메세지
			window.status=curtime
			setTimeout("Beginrefresh()",1000)
		}
	}


	// Dangerous HTML Tags
	function checkHTMLValidityAsUserInput( str )
	{
		var n4Len = str.length;
		var n4Pos1 = str.indexOf( '<' );
		var n4Pos2 = str.indexOf( '>' );
		var strCheckBlock = '';

		for ( ; n4Pos1 > -1; n4Pos1 = str.indexOf( '<', n4Pos2 + 1 ), n4Pos2 = str.indexOf( '>', n4Pos2 + 1 ) )
		{
			if ( n4Pos2 < n4Pos1 || ( n4Pos1 == -1 && n4Pos > -1 ) )
				return false;

			strCheckBlock = str.substring( n4Pos1 + 1, n4Pos2 );
			if ( strCheckBlock.indexOf( '<' ) != -1 )
			{
				return false;
			}
			if ( strCheckBlock.indexOf( 'script' ) != -1 )
			{
				return false;
			}
			if ( strCheckBlock.indexOf( 'object' ) != -1 )
			{
				return false;
			}
		}

		return true;
	}
	//-->
