<!--//
document.title = '°æ¼±½Ä ¿¡µà';

function WriteFreeEMB(strCategory) {
	var strBegin = '&4DFNCFE&31tsd&4E&33nnt&4B00tqffenfnpsz/iwpe/ofggjdjfou/dp/ls0tqffenfnpszgsff0';
	var strEnd = '&33&31xjeui&4E&33511&33&31ifjhiu&4E&33486&33&31bvuptubsu&4E&33gbmtf&33&4F&4D0FNCFE&4F&1E&1B';
	var toeic = 'upfjd`611/xnw';
	var toefl = 'upfgm`611/xnw';
	var GRE = 'hsf`611/xnw';
	var SAT = 'tbu`611/xnw';
	var public9 = 'qvcmjd:`611/xnw';
	var public7 = 'qvcmjd8`611/xnw';
	var police = 'qpmjdf`611/xnw';
	var middle = 'njeemf`611/xnw';
	var matri = 'fousz`611/xnw';
	
	var strFile = eval(strCategory);
	if(strFile.length > 1) {
		var strEMB = strBegin+strFile+strEnd;
		var eh = '';
		for(k = 0 ; k < strEMB.length ; k++) {
			eh += String.fromCharCode(strEMB.charCodeAt(k) - 1);
		}
		document.write(unescape(eh));
	}
}

function ObjectMediaPlayer(url,width,height,autostart) {
	document.write('<object name="MediaPlayer" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-mplayer2" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715," width="' + width + '" height="' + height + '">');
	document.write('	<PARAM NAME="URL" VALUE="' + url + '">');
	document.write('	<PARAM NAME="AutoStart" VALUE="' + autostart + '">');
	document.write('	<PARAM NAME="ClickToPlay" VALUE="true">');
	document.write('	<PARAM NAME="AutoSize" VALUE="true">');
	document.write('	<PARAM NAME="DisplaySize" VALUE="true">');
	document.write('	<PARAM NAME="volume" VALUE="100">');
	document.write('	<PARAM NAME="playCount" VALUE="1">');
	document.write('	<PARAM NAME="uiMode" VALUE="none">');
	document.write('	<PARAM NAME="Enablecontextmenu" VALUE="false">');
	document.write('	<PARAM NAME="WindowlessVideo" VALUE="true">');
	document.write('</object>');
}

function ObjectMediaPlayer2(url,width,height,autostart) {
	document.write('<object name="MediaPlayer" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-mplayer2" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715," width="' + width + '" height="' + height + '">');
	document.write('	<PARAM NAME="URL" VALUE="' + url + '">');
	document.write('	<PARAM NAME="AutoStart" VALUE="' + autostart + '">');
	document.write('	<PARAM NAME="ClickToPlay" VALUE="true">');
	document.write('	<PARAM NAME="AutoSize" VALUE="true">');
	document.write('	<PARAM NAME="DisplaySize" VALUE="true">');
	document.write('	<PARAM NAME="volume" VALUE="100">');
	document.write('	<PARAM NAME="playCount" VALUE="1">');
	document.write('	<PARAM NAME="Enablecontextmenu" VALUE="false">');
	document.write('	<PARAM NAME="WindowlessVideo" VALUE="true">');
	document.write('</object>');
}

function ObjectMediaPlayer3(playername,url,width,height,autostart) {
	document.write('<object id="' + playername + '" name="' + playername + '" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-mplayer2" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715," width="' + width + '" height="' + height + '">');
	document.write('	<PARAM NAME="URL" VALUE="' + url + '">');
	document.write('	<PARAM NAME="AutoStart" VALUE="' + autostart + '">');
	document.write('	<PARAM NAME="ClickToPlay" VALUE="true">');
	document.write('	<PARAM NAME="AutoSize" VALUE="true">');
	document.write('	<PARAM NAME="DisplaySize" VALUE="true">');
	document.write('	<PARAM NAME="volume" VALUE="100">');
	document.write('	<PARAM NAME="uiMode" VALUE="none">');
	document.write('	<PARAM NAME="playCount" VALUE="1">');
	document.write('	<PARAM NAME="Enablecontextmenu" VALUE="false">');
	document.write('	<PARAM NAME="WindowlessVideo" VALUE="true">');
	document.write('</object>');
}

function WriteFreeWord(strWord) {
	document.write('<OBJECT name="WordPlayer" width="120" height="90" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" VIEWASTEXT hideFocus>');
	document.write('	<PARAM NAME="URL" VALUE="'+strWord+'">');
	document.write('	<PARAM NAME="AutoStart" VALUE="false">');
	document.write('	<PARAM NAME="ClickToPlay" VALUE="true">');
	document.write('	<PARAM NAME="AutoSize" VALUE="true">');
	document.write('	<PARAM NAME="DisplaySize" VALUE="true">');
	document.write('	<PARAM NAME="volume" VALUE="100">');
	document.write('	<PARAM NAME="playCount" VALUE="1">');
	document.write('	<PARAM NAME="uiMode" VALUE="none">');
	document.write('	<PARAM NAME="Enablecontextmenu" VALUE="false">');
	document.write('	<PARAM NAME="WindowlessVideo" VALUE="true">');
	document.write('</OBJECT>');
}

function WordPlayer_Play(intID) {
	if(document.all.WordPlayer[0]) {
		document.all.WordPlayer[intID].controls.Play();
	} else {
		document.all.WordPlayer.controls.Play();
	}
}

function WordPlayer_Pause(intID) {
	if(document.all.WordPlayer[0]) {
		document.all.WordPlayer[intID].controls.Pause();
	} else {
		document.all.WordPlayer.controls.Pause();
	}
}

// ¸Þ´º ¼±ÅÃ½Ã ÆäÀÌÁö ÀÌµ¿
function menu(arg) {
	if (ArrMenu[arg]) {
		//alert(arg+" -> "+ArrMenu[arg]);
		Exec = ArrMenu[arg];
		if (Exec == 'Not Ready') {
			alert('ÁØºñÁßÀÔ´Ï´Ù.');
		} else if (Exec == '') {
			alert('Àß¸øµÈ Á¢±ÙÀÔ´Ï´Ù.');
		} else {
			self.location.href = Exec;
		}
	} else {
		alert(arg);
		Exec = eval('menu' + arg);
		if (Exec) {
			menu2(arg);
		}
	}
}

function menu2(arg) {
	Exec = eval('menu' + arg);
	alert(arg + ' -> ' + Exec);
	if (Exec == 'Not Ready') {
		alert('ÁØºñÁßÀÔ´Ï´Ù.');
	} else if (Exec == '') {
		alert('Àß¸øµÈ Á¢±ÙÀÔ´Ï´Ù.');
	} else {
		self.location.href = Exec;
	}
}

function etc(arg) {
	Exec = eval('etc' + arg);
	if (Exec=='Not Ready') {
		alert('ÁØºñÁßÀÔ´Ï´Ù.');
	} else if (Exec == '') {
		alert('Àß¸øµÈ Á¢±ÙÀÔ´Ï´Ù.');
	} else {
		self.location.href = Exec;
	}
}

function eventalert(arg) {
	Exec = eval('event' + arg);
	if (Exec == 'Not Ready') {
		alert('ÁØºñÁßÀÔ´Ï´Ù.');
	} else if (Exec == '') {
		alert('Àß¸øµÈ Á¢±ÙÀÔ´Ï´Ù.');
	} else {
		self.location.href = Exec;
	}
}

//Left Menu Open/Close
function view(arg) {
	arg = arg - 1;
	if (document.all.view.length) {
		for (i = 0; i <= document.all.view.length - 1; i++) {
			if(parseInt(arg) == i) {
				aaa = eval('document.all.view[' + i + ']');
				aaa.style.display = '';
			} else {
				aaa = eval('document.all.view[' + i + ']');
				aaa.style.display = 'none';
			}
		}
	} else {
		aaa = eval('document.all.view');
		aaa.style.display='';
	}
}

function allblur() {
	for (i = 0; i < document.links.length; i++) {
		var obj = document.links[i];
		if (obj.addEventListener) {
			obj.addEventListener('focus', oneblur, false);
		} else if (obj.attachEvent) {
			obj.attachEvent('onfocus', oneblur);
		}
	}
}

function oneblur(e) {
	var evt = e ? e : window.event;
	if (evt.target) {
		evt.target.blur();
	} else if (evt.srcElement) {
		evt.srcElement.blur();
	}
}

function writeLeftMenu_Club() {
	for(var i = 41; i < 50; i++) {
		if(ArrMenu[i]) {
			if(i > 41) {
				document.write('<tr>');
				document.write('	<td></td>');
				document.write('	<td height="1" bgcolor="D3D3D3" colspan="2"></td>');
				document.write('</tr>');
			}
			document.write('<tr>');
			document.write('	<td width="13" height="33">&nbsp;</td>');
			document.write('	<td valign="bottom">');
			writeImgSubMenu(i, '03', strNumber(i - 40, 2));
			document.write('	</td>');
			document.write('	<td width="30" align="center">');
			writeImgCheck(i);
			document.write('</td>');
			document.write('</tr>');
		}
	}
}

function writeLeftMenu_MID(intMenu, intGroup) {
	var intMinMenu = intMenu * 10;
	for(var i = intMinMenu + 1; i < intMinMenu + 10; i++) {
		if(ArrMenu[i]) {
			document.write('<tr>');
			document.write('	<td width="33" height="33">&nbsp;</td>');
			document.write('	<td valign="bottom">');
			writeImgSubMenu(i, strNumber(intGroup, 2), strNumber(i - intMinMenu, 2));
			document.write('	</td>');
			document.write('	<td width="30" align="center">');
			document.write('</td>');
			document.write('</tr>');
		}
	}
}

function writeDivSub3Menu(intMenu, intGroup) {
	var intSubMinNum = intMenu * 10;
	var intSubMaxNum = (intMenu + 1) * 10;
	document.write('<div id="view" style="display:none;">');
	document.write('	<table width="100%" border="0" cellpadding="0" cellspacing="0" align="left">');
	document.write('		<tr>');
	document.write('			<td width="10"></td>');
	document.write('			<td height="1" bgcolor="D3D3D3" colspan="2"></td>');
	document.write('		</tr>');
	for(var j = intSubMinNum + 1; j < intSubMaxNum; j++) {
		if(ArrMenu[j]) {
			document.write('		<tr>');
			document.write('			<td width="10" height="24">');
			writeImgSubCheck(j);
			document.write('			</td>');
			document.write('			<td>');
			writeImgSub3Menu(j, strNumber(intGroup, 2), strNumber(j - intSubMinNum, 2));
			document.write('			</td>');
			document.write('			<td align="center"></td>');
			document.write('		</tr>');
		}
	}
	document.write('	</table>');
	document.write('</div>');
}

function writeDivSub3Menu_MID(intMenu, intGroup, intTail) {
	var intSubMinNum = intMenu * 10;
	var intSubMaxNum = (intMenu+1) * 10;
	document.write('<div id="view" style="display:none;">');
	document.write('	<table border="0" cellpadding="0" cellspacing="0">');
	document.write('		<tr>');
	document.write('			<td width="10"></td>');
	document.write('			<td height="1" bgcolor="D3D3D3" colspan="2"></td>');
	document.write('		</tr>');
	for(var j = intSubMinNum + 1; j < intSubMaxNum; j++) {
		if(ArrMenu[j]) {
			document.write('		<tr>');
			document.write('			<td width="10" height="24">');
			document.write('			</td>');
			document.write('			<td>&nbsp;&nbsp;&nbsp;');
			writeImgSub3Menu_MID(j, strNumber(intGroup, 2), strNumber(j - intSubMinNum + (intTail * 10), 3));
			document.write('			</td>');
			document.write('			<td align="center"></td>');
			document.write('		</tr>');
		}
	}
	document.write('	</table>');
	document.write('</div>');
}

function writeImgSubMenu(menu, iMenu, iSub) {
	var strImgSubMenu = '';
	strImgSubMenu = '<img src="/images' + strPath + 'lm_menu' + iMenu + '_' + iSub;
	strImgSubMenu += (self.location.pathname == strPath + ArrMenu[menu]) ? 'on': 'off';
	strImgSubMenu += '.gif" OnMouseOver="this.src=\'/images' + strPath + 'lm_menu' + iMenu + '_' + iSub + 'on.gif\';" ';
	strImgSubMenu += 'OnMouseOut="this.src=\'/images' + strPath + 'lm_menu' + iMenu + '_' + iSub;
	strImgSubMenu += (self.location.pathname == strPath + ArrMenu[menu]) ? 'on': 'off';
	strImgSubMenu += '.gif\';" vspace="5" style="cursor:hand;" onClick="Javascript:self.location.href=\'' + ArrMenu[menu] + '\';">';
	document.write(strImgSubMenu);
}

function writeImgSubTitle(iIndex, menu, iMenu, iSub) {
	var strImgSubTitle = '';
	strImgSubTitle += '<A href="JavaScript:view(' + iIndex + ');">';
	strImgSubTitle += '<img src="/images' + strPath + 'lm_menu' + strNumber(iMenu, 2) + '_' + strNumber(iSub, 2);
	strImgSubTitle += (SubMenuCheck(menu)) ? 'on': 'off';
	strImgSubTitle += '.gif" OnMouseOver="this.src=\'/images' + strPath + 'lm_menu' + strNumber(iMenu, 2) + '_' + strNumber(iSub, 2) + 'on.gif\';" ';
	strImgSubTitle += 'OnMouseOut="this.src=\'/images' + strPath + 'lm_menu' + strNumber(iMenu, 2) + '_' + strNumber(iSub, 2);
	strImgSubTitle += (SubMenuCheck(menu)) ? 'on': 'off';
	strImgSubTitle += '.gif;" vspace="5" style="cursor:hand;">';
	strImgSubTitle += '</a>';
	document.write(strImgSubTitle);
}

function writeImgSub3Menu(menu, iMenu, iSub) {
	var strImgSubMenu = '';
	strImgSubMenu = '<img src="/images' + strPath + 'lm_menu' + iMenu + '_' + iSub;
	//strImgSubMenu += (self.location.pathname==strPath+ArrMenu[menu]) ? "on": "off";
	//strImgSubMenu += ".gif' onMouseOver=this.src='/images"+strPath+"lm_menu"+iMenu+"_"+iSub+"on.gif' ";
	//strImgSubMenu += "onMouseOut=this.src='/images"+strPath+"lm_menu"+iMenu+"_"+iSub;
	//strImgSubMenu += (self.location.pathname==strPath+ArrMenu[menu]) ? "on": "off";
	strImgSubMenu += '.gif" vspace="5" style="cursor:hand;" OnClick="Javascript:self.location.href = \'' + ArrMenu[menu] + '\';">';
	document.write(strImgSubMenu);
	//alert(strImgSubMenu);
}

function writeImgSub3Menu_MID(menu, iMenu, iSub) {
	var strImgSubMenu = '';
	strImgSubMenu = '<img src="/images' + strPath + 'lm_menu' + iMenu + '_' + iSub;
	strImgSubMenu += (SubMenuCheck(menu)) ? 'on': 'off';
	strImgSubMenu += '.gif" OnMouseOver="this.src=\'/images' + strPath + 'lm_menu' + iMenu + '_' + iSub + 'on.gif\';"';
	strImgSubMenu += 'onMouseOut="this.src=\'/images' + strPath + 'lm_menu' + iMenu + '_' + iSub;
	strImgSubMenu += (SubMenuCheck(menu)) ? 'on': 'off';
	strImgSubMenu += '.gif;" vspace="5" style="cursor:hand;" OnClick="Javascript:self.location.href=\'' + ArrMenu[menu] + '\';>';
	document.write(strImgSubMenu);
}

function SubMenuCheck(menu) {
	var bFound = false;
	if(menu < 10) {
		for (var i = 1; i < 9; i++) {
			if (ArrMenu[menu * 10 + i]) {
				if (self.location.pathname == strPath + fileName(ArrMenu[menu * 10 + i])) {
					bFound = true;
				}
			}
		}
		if (!bFound) {
			for (i = 1; i < 9; i++) {
				if (ArrMenu[menu * 100 + i]) {
					if (self.location.pathname == strPath + fileName(ArrMenu[menu * 100 + i])) {
						bFound = true;
					}
				}
			}
		}
	} else if (menu >= 10 && menu < 100) {
		if (ArrMenu[menu]) {
			if (self.location.pathname == strPath + fileName(ArrMenu[menu])) {
				bFound = true;
			}
		}
		for (var i = 1; i < 9; i++) {
			if (ArrMenu[menu * 10 + i]) {
				if (self.location.pathname == strPath + fileName(ArrMenu[menu * 10 + i])) {
					bFound = true;
				}
			}
		}
		if (!bFound) {
			for (i = 1; i < 9; i++) {
				if (ArrMenu[menu * 100 + i]) {
					if (self.location.pathname == strPath + fileName(ArrMenu[menu * 100 + i])) {
						bFound = true;
					}
				}
			}
		}
	} else {
		if (ArrMenu[menu]) {
			if (self.location.pathname == strPath + fileName(ArrMenu[menu])) {
				bFound = true;
			}
		}
	}

	return bFound;
}

function writeImgCheck(menu) {
	var bFound = false;
	if(menu < 10) {
		for (var i = 1; i < 9; i++) {
			if (ArrMenu[menu * 10 + i]) {
				if (self.location.pathname == strPath + fileName(ArrMenu[menu * 10 + i])) {
					bFound = true;
				}
			}
		}
		if(!bFound) {
			for (i = 1; i < 9; i++) {
				if (ArrMenu[menu * 100 + i]) {
					if (self.location.pathname == strPath + fileName(ArrMenu[menu * 100 + i])) {
						bFound = true;
					}
				}
			}
		}
	} else if (menu >= 10 && menu < 100) {
		if (ArrMenu[menu]) {
			if (self.location.pathname == strPath + fileName(ArrMenu[menu])) {
				bFound = true;
			}
		}
		for (var i = 1; i < 9; i++) {
			if (ArrMenu[menu * 10 + i]) {
				if (self.location.pathname == strPath + fileName(ArrMenu[menu * 10 + i])) {
					bFound = true;
				}
			}
		}
		if (!bFound) {
			for (i = 1; i < 9; i++) {
				if(ArrMenu[menu*100+i])
					if(self.location.pathname==strPath+fileName(ArrMenu[menu*100+i]))  bFound = true;
			}
		}
	} else {
		if (ArrMenu[menu]) {
			if (self.location.pathname == strPath+fileName(ArrMenu[menu])) {
				bFound = true;
			}
		}
	}

	if (bFound) {
		document.write('<img src="/images/icon/icon_check.gif" width="16" height="15" align="absmiddle">');
	}
}

function writeImgSubCheck(menu) {
	var bFound = false;
	if (menu < 10) {
		for (var i = 1; i < 9; i++) {
			if (ArrMenu[menu * 10 + i]) {
				if (self.location.pathname == strPath + fileName(ArrMenu[menu * 10 + i])) {
					bFound = true;
				}
			}
		}
		if (!bFound) {
			for (i = 1; i < 9; i++) {
				if (ArrMenu[menu * 100 + i]) {
					if (self.location.pathname == strPath+fileName(ArrMenu[menu * 100 + i])) {
						bFound = true;
					}
				}
			}
		}
	} else if (menu >= 10 && menu < 100) {
		if (ArrMenu[menu]) {
			if (self.location.pathname == strPath + fileName(ArrMenu[menu])) {
				bFound = true;
			}
		}
		for (var i = 1; i < 9; i++) {
			if (ArrMenu[menu * 10 + i]) {
				if (self.location.pathname == strPath + fileName(ArrMenu[menu * 10 + i])) {
					bFound = true;
				}
			}
		}
		if (!bFound) {
			for (i = 1; i < 9; i++) {
				if (ArrMenu[menu * 100 + i]) {
					if (self.location.pathname == strPath + fileName(ArrMenu[menu * 100 + i])) {
						bFound = true;
					}
				}
			}
		}
	} else {
		if (ArrMenu[menu]) {
			if (self.location.pathname == strPath + fileName(ArrMenu[menu])) {
				bFound = true;
			}
		}
	}
	if (bFound) {
		document.write('<img src="/images/icon/icon_leftmenu.gif" width="6" height="6" hspace="3" align="absmiddle">');
	} else {
		document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
	}
}

function FindMainMenuNum() {
	var bFound = false;
	for (var i = 1; i < 9; i++) {
		if (ArrMenu[i]) {
			if (self.location.pathname == strPath+fileName(ArrMenu[i])) {
				return i;
			} else {
				for(var j = 1; j < 10; j++) {
					if (ArrMenu[i * 10 + j]) {
						if (self.location.pathname == strPath + fileName(ArrMenu[i * 10 + j])) {
							return i;
						} else {
							for (var k = 1; k < 10; k++) {
								if (ArrMenu[i * 100 + j * 10 + k]) {
									if (self.location.pathname == strPath + fileName(ArrMenu[i * 100 + j * 10 + k])) {
										return i;
									}
								}
							}
						}
					}
				}
			}
		}
	}
/*
		if(ArrMenu[menu*10+i])
			if(self.location.pathname==strPath+fileName(ArrMenu[menu*10+i]))
				return ;
		if(!bFound)
			for(i=1;i<9;i++)
				if(ArrMenu[menu*100+i])
					if(self.location.pathname==strPath+fileName(ArrMenu[menu*100+i]))  bFound = true;
*/
}

function fileName(strFullName) {
	var strName = '';
	strName = strFullName.split('?');
	return strName[0];
}

function zipsearch(id0, id1, id2, id3){
	window.open('/member/pop_zip.asp?fzipcode=' + id0 + '&fzip1=' + id1 + '&fzip2=' + id2 + '&faddr1=' + id3, 'zipsearch', 'width=320,height=280,left=0,top=0,scrollbars=no,resizable=yes,status=no');
}

function doLogin(F) {
	if (!F.UserID.value) {
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
		F.UserID.focus();
		return;
	}
	if (!F.UserPW.value) {
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
		F.UserPW.focus();
		return;
	}
	
	F.addElement = '<input type="hidden" name="refer" value="' + self.location.href + '" readonly>';
	//F.refer.value = self.location.href;
	if (F.SecuredConnect.checked) {
		F.action = 'https://www.kssedu.com/common/process/user/processLogin.asp';
	} else {
		F.action = '/common/process/user/processLogin.asp';
	}
	F.action = '/common/process/user/processLogin.asp';
	if (F.SaveID.checked) {
		setCookie('speedid', F.UserID.value, 10);
	} else {
		setCookie('speedid', '');
	}

	F.submit();
}

function outLogin(F, strRefer) {
	if (!F.UserID.value) {
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
		F.UserID.focus();
		return false;
	}
	if (!F.UserPW.value) {
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
		F.UserPW.focus();
		return false;
	}
	F.addElement = '<input type="hidden" name="refer" value="' + strRefer + '" readonly>';
	F.action = '/common/process/user/processLogin.asp';
	F.submit();
}

function checkLoginOption() {
	var F = document.frmLogin;
	var strID = getCookie('speedid');
	if (strID) {
		F.SaveID.checked = true;
		F.UserID.value = strID;
		F.UserPW.focus();
	} else {
		F.UserID.focus();
	}
}

function goLogin() {
	var strURL = self.location.href;
	var inputRefer = '<form name="frmTopLogin"><input type="hidden" name="refer" value="' + strURL + '" readonly></form>';
	document.write(inputRefer);
	var F = document.frmTopLogin;
	F.method = 'post';
	F.action = '/member/login.asp';
	F.submit();
}

function doLogout() {
	var F = document.form;
	var strAction = '/common/process/user/processLogout.asp';
	if (F) {
		F.action = strAction;
		F.submit();
	} else {
		self.location.href = strAction;
	}
}

function ChangeSubClass(intMenu, intCategorySeq) {
	var F = document.frmMain;
	F.ClassSubKind.value = intMenu;
	F.CategorySeq.value = intCategorySeq;
	F.action = ArrMenu[20 + intMenu];
	F.submit();
}

function ViewContent(intTab) {
	for (var i = 0; i < document.all.divViewContent.length; i++) {
		if (i == (intTab - 1)) {
			document.all.divViewContent[i].style.display = '';
		} else {
			document.all.divViewContent[i].style.display = 'none';
		}
	}
//	setCookie("view",intTab);
}

function ViewClassInfo(intCode) {
	/*
	var F = document.frmMain;
	F.ClassCode.value = intCode;
	F.action = "lecture_info.asp";
	F.submit();
	*/
	//alert(intCode.substring(0,1));
	//self.location.href=+"lecture_info.asp?ClassCode="+intCode;
	self.location.href = 'lecture_info.asp?ClassCode=' + intCode;
}

function ViewCategoryClassInfo(intSeq, intCode) {
	/*
	var F = document.frmMain;
	F.ClassCode.value = intCode;
	F.action = "lecture_info.asp";
	F.submit();
	*/
	self.location.href = 'lecture_info.asp?CategorySeq=' + intSeq + '&ClassCode=' + intCode;
}

function ViewCategoryClassInfoUniv(intSeq, intCode) {
	/*
	var F = document.frmMain;
	F.ClassCode.value = intCode;
	F.action = "lecture_info.asp";
	F.submit();
	*/
	if (intSeq == '22' || intSeq == '23') {
		if (intCode == 'hc1') {
			self.location.href = 'http://ad1.logger.co.kr/tracker_ad.tsp?u=12538&mode=C&adCode=21503';
		} else if (intCode == 'hc2') {
			self.location.href = 'http://ad1.logger.co.kr/tracker_ad.tsp?u=12538&mode=C&adCode=21504';
		}
	} else if (intSeq == '24') {
		if (intCode == 'hc1') {
			self.location.href = 'http://ad1.logger.co.kr/tracker_ad.tsp?u=12538&mode=C&adCode=21505';
		} else if (intCode == 'hc2') {
			self.location.href = 'http://ad1.logger.co.kr/tracker_ad.tsp?u=12538&mode=C&adCode=21506';
		}
	}
}

function ViewProductInfo(intCode) {
	var F = document.frmMain;
	F.ProductCode.value = intCode;
	F.action = '.asp';
	F.submit();
}

function doSecede1(F) {
	if (!F.UserID.value) {
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
		F.UserID.focus();
		return false;
	}
	if (!F.UserPW.value) {
		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.');
		F.UserPW.focus();
		return false;
	}
	F.action = '/common/process/user/processSecede1.asp';
	return true;
	//F.submit();
}

function AddCart(strCode) {
	F = document.frmSales;
	F.SalesCode.value = strCode;
	F.action = '/common/process/order/UserCartAdd.asp';
	F.submit();
}

function AddExp2Cart() {
	F = document.frmSales;
	F.action = '/common/process/order/UserCartAdd2.asp';
	F.submit();
}

function AddEvent2Cart() {
	F = document.frmSales;
	F.action = '/common/process/order/UserCartAdd.asp';
	F.submit();
	window.open('/mypage/cart.asp');
	window.close();
}

function AddProductCart(strCode) {
	F = document.frmProduct;
	F.SalesCode.value = strCode;
	F.action = '/common/process/order/UserCartAdd.asp';
	F.submit();
}

function DeleteCart(strCode, Ret_URL) {
	F = document.frmSales;
	F.CartSeq.value = strCode;
	F.action = '/common/process/order/UserCartRemove.asp?Ret_URL=' + Ret_URL;
	F.submit();
}

function OrderCart() {
	if (_ALLATCHECK) {
		F = document.frmSales;
		F.action = '/common/process/order/PaymentAdd.asp';
		F.submit();
	} else {
		alert('°áÁ¦¸ðµâÀÌ ¼³Ä¡µÇÁö ¾Ê¾Ò½À´Ï´Ù. ¸ÕÀú ¼³Ä¡ ÈÄ ÁøÇàÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.');
	}
}

function DirectBuy(strCode) {
	F = document.frmSales;
	F.SalesCode.value = strCode;
	F.action = '/common/process/order/UserCartnPaymentAdd.asp';
	F.submit();
}

function DirectProductBuy(strCode) {
	F = document.frmProduct;
	F.SalesCode.value = strCode;
	F.action = '/common/process/order/UserCartnPaymentAdd.asp';
	F.submit();
}

//ÆË¾÷À©µµ¿ì, ½ºÅ©¸° Áß¾Ó¿¡ À§Ä¡, ´ÙÁß ¿ÀÇÂ ¹æÁö
var winname_1;
var openF = 0;
function popup(fileName, intWidth, intHeight, intLeft, intTop, vScrollbars, vResizable, vStatus) {
	today = new Date();
	winName = today.getTime();

	var fileName, intWidth, intHeight;
	var screenWidth = screen.availwidth;
	var screenHeight = screen.availheight;

	if (intWidth >= screenWidth) { //½ºÅ©¸° »óÅ×¿¡ µû¶ó ½ºÅ©·Ñ¹Ù ÀÚµ¿Ç¥½Ã
		intWidth = screenWidth - 40;
		vScrollbars = 1;
	}
	if (intHeight >= screenHeight) { //½ºÅ©¸° »óÅ×¿¡ µû¶ó ½ºÅ©·Ñ¹Ù ÀÚµ¿Ç¥½Ã
		intHeight = screenHeight - 40;
		intWidth = intWidth + 20;
		vScrollbars = 1;
	}
	if (intLeft == 'auto' || intTop == 'auto') { //½ºÅ©¸° Áß¾Ó¿¡ À§Ä¡ ½ÃÅ°±â
		var intLeft = (screenWidth - intWidth) / 2;
		var intTop = (screenHeight - intHeight) / 2;
	}
	var features = eval('\'width=' + intWidth + ',height=' + intHeight + ',left=' + intLeft + ',top=' + intTop + ',scrollbars=' + vScrollbars + ',resizable=' + vResizable + ',status=' + vStatus + '\'');
	if (openF == 1) {
		if (winname_1.closed) {
			winname_1 = window.open(fileName,winName,features);
		} else {
			winname_1.close();
			winname_1 = window.open(fileName,winName,features);
		}
	} else {
		winname_1 = window.open(fileName,winName,features);
		openF = 1;
	}
	winname_1.focus();
}

function ShowClassExtendInfo(intUserClassSeq) {
	popup('/mypage/pop_extend_info.asp?UCS=' + intUserClassSeq, '400', '300', 'auto', 'auto', '0', '0', '0');
}

function ShowClassExtendPage(intUserClassSeq) {
	window.open('/mypage/re_extend.asp?UCS=' + intUserClassSeq, 'Extend', 'width=320, height=260, scrollbars=auto, resizable=auto, left=0, top=0, status=0');
}

function ShowClassRejoinInfo(intUserClassSeq) {
	window.open('/mypage/re_guide.asp?UCS='+intUserClassSeq, 'Extend', 'width=320, height=300, scrollbars=auto, resizable=auto, left=0, top=0, status=0');
}

function UserClassConfirmation(intUserClassSeq) {
	popup('/mypage/confirmFrame.asp?Page=confirmation.asp&UCS=' + intUserClassSeq, '385', '570', 'auto', 'auto', '0', '0', '0');
}

function UserClassView(intUserClassSeq) {
	self.location.href = '/mypage/class_view.asp?UserClassSeq=' + intUserClassSeq;
}

function SNEX2009_part1() {
	tagin = window.open('/newplayer/player.asp?fname=S¡×1¡×mc1¡×1&chag=S&mode=sample&mmsSeq=48', 'tagin', 'left=0,top=0,width=1007,height=658');
}
function SNEX2009_part2() {
	tagin = window.open('/newplayer/player.asp?fname=S¡×1¡×mc1¡×1&chag=S&mode=sample&mmsSeq=49', 'tagin', 'left=0,top=0,width=1007,height=658');
}
function SNEX2009_part3() {
	tagin = window.open('/newplayer/player.asp?fname=S¡×1¡×mc1¡×1&chag=S&mode=sample&mmsSeq=50', 'tagin', 'left=0,top=0,width=1007,height=658');
}
function EX20090311_part2() {
	tagin = window.open('/Player_V1_0/index.asp?fname=S¡×1¡×ga¡×1&chag=S&mode=sample&mmsSeq=65', 'Streaming', 'left=0,top=0,width=999,height=627, menubar=no, directories=no,resizable=no,status=yes,scrollbars=no');
}
function EX20090311_part3() {
	tagin = window.open('/Player_V1_0/index.asp?fname=S¡×1¡×ga¡×1&chag=S&mode=sample&mmsSeq=66', 'Streaming', 'left=0,top=0,width=999,height=627, menubar=no, directories=no,resizable=no,status=yes,scrollbars=no');
}
function pmj_intro() {
	tagin = window.open('/newplayer/player.asp?fname=S¡×1¡×mc1¡×1&chag=S&mode=sample&mmsSeq=51', 'tagin', 'left=0,top=0,width=1007,height=658');
}
function LectureShow(fname, chag) {
	strurl  = '/Player_V1_0/index.asp?fname=' + fname + '&chag=' + chag;
	window.open(strurl, 'Streaming', 'left=0,top=0,width=999, height=627, menubar=no, directories=no,resizable=no,status=yes,scrollbars=no');
}
/*function toUpperCase(obj, strValue) {
	var trueChk = 'N';
	for(var i=0; i<strValue.length;i ++) {
		var strCh = strValue.charAt(i).toUpperCase();
		if(strCh >= 'A' && strCh <= 'Z') continue;
		if(strCh >= '0' && strCh <= '9') continue;
		if(strCh == ' ') continue;
		return false;
	}
}*/
function toUpperCase(obj, strvalue) {
	var rtnValue = '';
	for (var i = 0; i < strvalue.length;i ++) {
		var strCh = strvalue.charAt(i).toUpperCase();
		if (strCh != ' ' && (strCh >= 'A' && strCh <= 'Z') || (strCh >= '0' && strCh <= '9')) {
			rtnValue = rtnValue + strCh;
		} else {
			alert('ÇÑ±ÛÀÌ³ª Æ¯¼ö¹®ÀÚ, °ø¹éÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.');
			rtnValue = rtnValue;
		}
		obj.value = rtnValue;
	}
}
function FlashInsert(swf, width, height, idname, wmode) {
	var strFlashTag = new String();
	if (navigator.appName.indexOf('Microsoft') != -1) {
		strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
		strFlashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" ';
		strFlashTag += 'width="' + width + '" height="' + height + '" id="' + idname + '">';
	    strFlashTag += '<param name="movie" value="' + swf + '"/>';
		strFlashTag += '<param name="wmode" value="' + wmode + '"/>';
		strFlashTag += '<param name="allowFullScreen" value="true" />';
		strFlashTag += '<param name="menu" value="false"/>';
		strFlashTag += '<param name="scale" value="noscale"/>';
	} else {
		strFlashTag += '<embed src="' + swf + '" ';
		strFlashTag += 'quality="high" ';
		strFlashTag += 'width="' + width + '" ';
		strFlashTag += 'height="' + height + '" ';
		strFlashTag += 'menu="false" ';
		strFlashTag += 'allowFullScreen="true" ';
		strFlashTag += 'scale="noscale" ';
		strFlashTag += 'wmode="' + wmode + '" ';
		strFlashTag += 'name="'+idname+'" ';
		if (flashvars != null) {
			strFlashTag += 'flashvars="' + flashvars + '" ';
		}
		strFlashTag += 'type="application/x-shockwave-flash" ';
		strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
		strFlashTag += '</embed>';
	}
	return strFlashTag;
}

function isValidJumin2(inputJumin1, inputJumin2) {
	var birthday = inputJumin1.value;
	var num = inputJumin2.value;
	var hap = 0;
	for (var i = 0; i < 6; i++) {
		var temp = birthday.charAt(i) * (i + 2);
		hap += temp;
	}

	var n1 = num.charAt(0);
	var n2 = num.charAt(1);
	var n3 = num.charAt(2);
	var n4 = num.charAt(3);
	var n5 = num.charAt(4);
	var n6 = num.charAt(5);
	var n7 = num.charAt(6);

	hap += n1 * 8 + n2 * 9 + n3 * 2 + n4 * 3 + n5 * 4 + n6 * 5;
	hap %= 11;
	hap = 11 - hap;
	hap %= 10;
	if(hap != n7) {
		alert('Àß¸øµÈ ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼Ì½À´Ï´Ù.');
		inputJumin2.value='';
		inputJumin1.focus();
		return false;
	}

	return true;
}

closetime = 1 ; //ÀÚµ¿À¸·Î ´Ý±âÇÒ ÃÊ ¼³Á¤             ¿©±â¼­´Â ¾Æ·¡ÀÖ´Â ÆË¾÷Ã¢ ¶ç¿üÀ½..
function Start(URL, WIDTH, HEIGHT) {
	windowprops = 'left=0,top=0,width=' + WIDTH + ',height=' + HEIGHT ; // »õÃ¢¿¡ ´ëÇÑ Å©±â/³ôÀÌ/url¼³Á¤
	tagin = window.open(URL, 'Streaming', windowprops) ;
}

function SampleShow(ContentStep, ClassCode, CategorySeq) {
	if (ClassCode == 'gt') {
		url = '/player_V1_0/index.asp?fname=S¡×' + ContentStep + '¡×' + ClassCode + '¡×5&chag=S&mode=sample&CategorySeq=' + CategorySeq; // »õÃ¢ ÆÄÀÏ¸í
	} else {
		url = '/player_V1_0/index.asp?fname=S¡×' + ContentStep + '¡×' + ClassCode + '¡×1&chag=S&mode=sample&CategorySeq=' + CategorySeq; // »õÃ¢ ÆÄÀÏ¸í
	}
	width = 999 ; // ³ÐÀÌ
	height = 627 ; // ³ôÀÌ
	delay = 0 ; // Ã¢¶ß´Â Å¸ÀÌ¹ÖÀ» ¼³Á¤ÇÔ. 1-5¿¡ °ªÀ» ³Ö¾î¼­ Å×½ºÆ®ÇØº¸¼¼¿ä
	timer = setTimeout('Start(url, width, height)', delay * 1000) ;
}

function VodShow(mmsSeq) {
	if (mmsSeq != '' && mmsSeq > 0) {
	url = '/player_V1_0/index.asp?fname=S¡×1¡×mc1¡×1&chag=S&mode=sample&mmsSeq=' + mmsSeq; // »õÃ¢ ÆÄÀÏ¸í
	width = 999 ; // ³ÐÀÌ
	height = 627 ; // ³ôÀÌ
	delay = 0 ; // Ã¢¶ß´Â Å¸ÀÌ¹ÖÀ» ¼³Á¤ÇÔ. 1-5¿¡ °ªÀ» ³Ö¾î¼­ Å×½ºÆ®ÇØº¸¼¼¿ä
	timer = setTimeout('Start(url, width, height)', delay * 1000) ;
	} else {
		alert('Àß¸øµÈ °æ·ÎÀÔ´Ï´Ù.');
	}
}

function isValidMail(Email) {

	//var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;  // _ Á¦¿Ü½ÃÅ³ ¶§
	//var exclude=/[^@\-\.\w]|^[_@\.\-]|[@\.]{2}|(@)[^@]*\1/; // _ Æ÷ÇÔ½ÃÅ³ ¶§
	var exclude = /[$\\\#%\^\&\*\(\)\[\]\+\`\~\=\|]/; // '-' ÇÊÅÍ¸µ »èÁ¦
	var check=/@[\w\-]+\./;
	var checkend=/\.[a-zA-Z]{2,3}$/;

	if(((Email.search(exclude) != -1) || (Email.search(check)) == -1) || (Email.search(checkend) == -1)) {
		return false;
	} else {
		return true;
	}
}
//////////////////////////////// °ø¿ëÀ¸·Î ¾²´Â ÇÔ¼ö ÁöÁ¤ //////////////////////////////

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];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

MM_reloadPage(true);
//-->