<!--
// ³ÝÇâ±â µ¿¿µ»ó ¶ç¿ì±â
function OpenNethyangki(no){
  var URL = 'http://www.nethyangki.net/PlotContents/Viewer/BookLsn/default.asp?L_Code='+no+'&LecTime=6&CourseCode=BookLsn&SeqNo='+no+'&LecTime=6&Gisu=1&PlotDomain=www.nethyangki.net';
  var vWidth = 778;
  var vHeight = 634;
  if (vWidth != '' && vHeight != '' && vWidth > 10 && vHeight > 29) {
    w = vWidth  - 10;
    h = vHeight - 29;
  }
  window.open(URL, 'Viewer', 'scrollbars=no, resizable = no, menubar = no, top=0, left=0, fullscreen = no, width='+w+', height='+h);
}

// ³ÝÇâ±â µ¿¿µ»ó (UCC)
function openViewer_preview(vURL,vUID){
  OpenNethyangki(vURL)
}

// ÀüÃ¼Ã¢ ¶ç¿ì±â
function OpenFull(url) {
	window.open(url,'kiosk','fullscreen=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no')
}

// go_top
function GoTop() {
	window.scrollTo(0,0);
}

// ¿ø·¡ ÀÌ¹ÌÁö·Î µÇµ¹¸®±â (·Ñ¿À¹öÀÌ¹ÌÁö)
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_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_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.0
	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 bluring(){
if(event.srcElement.tagName=="A"&&event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;

// »õÃ¢¶ç¿ì±â
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// »õÃ¢¶ç¿ì±â

function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

// ÆË¾÷Ã¢¿¡¼­ ºÎ¸ðÃ¢¸µÅ©

function gourl(url) { 
opener.top.location=url; 
self.close(); 
} 

//·¹ÀÌ¾î ¼û±â±â

function MM_showHideLayers() { //v6.0
  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; }
}

//¼¿·ºÆ® ¹Ú½º ¸µÅ©½ÃÅ°±â

function MM_jumpMenu(targ,selObj,restore){ //v3.0

//targ Å¸°ÙÀÌ µÇ´Â ÇÁ·¹ÀÓ
//selObj ¼¿·ºÆ® °´Ã¼
//restore ¼¿·ºÆ® ÈÄ ´Ù½Ã "°Ë»ö¿£Áø"·Î º¹±Í¿©ºÎ

if(selObj.options[selObj.selectedIndex].value != "default"){
	  if(selObj.options[selObj.selectedIndex].target == "_blank"){
			window.open(selObj.options[selObj.selectedIndex].value,"new","");
	  }else{
	 	  //¿©±â¼­ »õÃ¢À» ¸ø ¶ç¿ö¼­.. À§¿¡ ÄÚµå Ãß°¡Çß¾î¿ä.
		  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  }
	  if (restore) selObj.selectedIndex=0;
	}
}
//faq
var menux="juldaeogosu";
function visual2(sub){

	if (menux != sub){
		show_Menu2();
		eval(sub).style.display="block";
		menux=sub;
	}
	else{
		menux="juldaegosu";
		show_Menu2();
	}
}
function show_Menu2(){
	
	for(i=1;i<30;i++) {
		if(document.getElementById("menu"+i)) {
			document.getElementById("menu"+i).style.display="none";		
		}		
		bb="document.getElementById(sub).style";
	}	
}


function GoTop() {
	window.scrollTo(0,0);
}



//»õÃ¢¶ç¿ì±â
function openWindow2(anchor, options) {

 var args = '';

 if (typeof(options) == 'undefined') { var options = new Object(); }
 if (typeof(options.name) == 'undefined') { options.name = 'win' + Math.round(Math.random()*100000); }

 if (typeof(options.height) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
  args += "height=" + options.height + ",";
 }

 if (typeof(options.width) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
  args += "width=" + options.width + ",";
 }

 if (typeof(options.fullscreen) != 'undefined') {
  args += "width=" + screen.availWidth + ",";
  args += "height=" + screen.availHeight + ",";
 }

 if (typeof(options.center) == 'undefined') {
  options.x = 0;
  options.y = 0;
  args += "screenx=" + options.x + ",";
  args += "screeny=" + options.y + ",";
  args += "left=" + options.x + ",";
  args += "top=" + options.y + ",";
 }

 if (typeof(options.center) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
  options.y=Math.floor((screen.availHeight-(options.height && screen.height))/2)-(screen.height-screen.availHeight);
  options.x=Math.floor((screen.availWidth-(options.width && screen.width))/2)-(screen.width-screen.availWidth);
  args += "screenx=" + options.x + ",";
  args += "screeny=" + options.y + ",";
  args += "left=" + options.x + ",";
  args += "top=" + options.y + ",";
 }

 if (typeof(options.scrollbars) != 'undefined') { args += "scrollbars=1,"; }
 if (typeof(options.menubar) != 'undefined') { args += "menubar=1,"; }
 if (typeof(options.locationbar) != 'undefined') { args += "location=1,"; }
 if (typeof(options.resizable) != 'undefined') { args += "resizable=1,"; }

 var win = window.open(anchor, options.name, args);
 return false;

}


//µ¿¿µ»ó¶ç¿ì±â
function MediaObject(URL, width, height) { 
document.write('<object ID="VodPlayer" name="VodPlayer" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"  standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" align="middle" width="'+width+'" height="'+height+'">'); 
	document.write('  <param name="CurrentPosition" value="1">'); 
	document.write('  <param name="SetCurrentEntry" value="1">'); 
	document.write('  <param name="ClickToPlay" value="1">'); 
	document.write('  <param name="AutoSize" value="0">'); 
	document.write('  <param name="AutoStart" value="1">'); 
	document.write('  <param name="ShowControls" value="0">'); 
	document.write('  <param name="ShowAudioControls" value="0">'); 
	document.write('  <param name="ShowDisplay" value="0">'); 
	document.write('  <param name="ShowStatusBar" value="0">'); 
	document.write('  <param name="EnableContextMenu" value="0">'); 
	document.write('  <param name="ShowPositionControls" value="0">'); 
	document.write('  <param name="DisplayBackColor" value="0">'); 
	document.write('  <param name="ShowTracker" value="1">'); 
	document.write('  <param name="ShowCaptioning" value="0">'); 
	document.write('  <param name="AutoRewind" value="0">'); 
	document.write('  <param name="EnableTracker" value="1">'); 
	document.write('  <param name="Volume" value="-1">'); 
	document.write('  <param name="stretchToFit" value="0">'); 
	document.write('  <param name="Filename" value="'+URL+'">'); 
	document.write('</object>'); 
} 

function VodPlayer_Stop() {document.VodPlayer.stop();}
function VodPlayer_Pause() {document.VodPlayer.pause();}
function VodPlayer_Play() {document.VodPlayer.play();}

function fnCountUP(obj){
	if (obj.value > 0)
	{
		obj.value++;
	}else{
		alert('°¹¼ö´Â 1°³ ÀÌ»óÀÌ¾î¾ß ÇÕ´Ï´Ù.');
	}
}

function fnCountDown(obj){
	if (obj.value > 1)
	{
		obj.value--;
	}else{
		alert('°¹¼ö´Â 1°³ ÀÌ»óÀÌ¾î¾ß ÇÕ´Ï´Ù.');
	}
}

function fnIndex(){
	window.location.href = "/front/index/index.asp";
}

function fnGoPage(frm, pagename, pagenum, sort){
	frm.action = pagename;
	frm.CurrentPage.value = pagenum;
	frm.submit();
}

function fnLogout(){
	window.location.href = "../members/logout.asp";
}

function fnAutoKeyTap(len,obj1, obj2){
	var ck = new Array(8,37,38,39,40,46);
	var tk = event.keyCode;
	if(!fnArraySearch(ck, tk))
	{
		if(obj1.value.length == len || event.keyCode == 13)
			obj2.focus();
	}
}

function fnAutoLength(len, obj){
	if (obj.value.length != len && obj.value.length != 0)
	{
		alert(len + "ÀÚ¸®¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		obj.focus();
	}
}

/*¹è¿­°Ë»ö °Ë»ö°ªÀÌ ÀÖÀ¸¸é True ¾øÀ¸¸é Fasle*/
function fnArraySearch(arr, val){
	for (var i in arr) {
		if(arr[i] == val)
			return true;
	}
	return false;
}

/*VodMenu°Ë»ö*/
function fnVodSearchMenu(){
	var frm = document.forms[0];
	frm.action = "../vod/vod_list.asp";
	frm.submit();
}

/*ZipCodePopup*/
function fnZipPopup(target1, target2, target3){
	openWindow2("../members/pop_postsearch.asp?target1="+target1+"&target2="+target2+"&target3="+target3,{scrollbars:true,width:440,height:400,center:true});
}

/*È¸¿ø·Î±×ÀÎ*/
function fnLogin(frm)
{
	var objCon;
	
	//¾ÆÀÌµðÃ¼Å©
	if (fnIsID(frm) == false)
	{
		return;
	}

	//ºñ¹Ð¹øÈ£Ã¼Å©
	objCon = frm.MemberPwd;
	if(isObject(objCon)){
		if (objCon.value == "")
		{
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À");
			objCon.focus();
			return;
		}
		/*
		if (objCon.value == "" || objCon.value.length < 6)
		{
			alert("ºñ¹Ð¹øÈ£¸¦ 6ÀÚ¸® ÀÌ»ó ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À");
			objCon.focus();
			return;
		}*/
	}

	frm.action = "../members/login_execute.asp";
	frm.submit();
}

function fnLoginEnter(frm){
	if(event.keyCode == 13){
		fnLogin(frm);
	}
}

function fnIsID(frm){
	//var frm = document.frmMember;
	var objCon, pattern, match;
	
	//¾ÆÀÌµðÃ¼Å©
	objCon = frm.MemberID;
	if(isObject(objCon)){
		pattern = /^[a-zA-Z0-9]{5,10}$/;
		match = pattern.exec(objCon.value);
		if (objCon.value == "")
		{
			alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.');
			objCon.focus();
			return false;
		}
		/*
		if (objCon.value == "")
		{
			alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.');
			objCon.focus();
			return false;
		}else if(objCon.value.length < 6 || objCon.value.length > 12){
			alert("¾ÆÀÌµð´Â 6ÀÚÀÌ»ó 12ÀÚÀÌÇÏ·Î ÀÔ·ÂÇØ¾ßÇÕ´Ï´Ù.");
			objCon.focus();
			return false;
		}else if(match == null){
			alert("¾ÆÀÌµð´Â ¿µ¹®ÀÚ¿Í ¼ýÀÚ·Î¸¸ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
			objCon.focus();
			return false;
		}
		*/
	}
	return true;
}

function companyCheck(ssn){
	var calStr1 = "13713713", biVal = 0,tmpCal;
	var calLast = ssn.substring(9,10);

	for (i=0; i < 8; i++) {
		biVal = biVal + (parseFloat(ssn.substring(i,i+1)) * parseFloat(calStr1.substring(i,i+1))) % 10;
	}
	tmpCal = parseFloat(ssn.substring(8,9)) * 5 + "0";
	chkVal = parseFloat(tmpCal.substring(0,1)) + parseFloat(tmpCal.substring(1,2));
	chkDigit = (10 - (biVal + chkVal) % 10) % 10;

	if (calLast != chkDigit) {
		return false;
	}
}

/*isIEObject(a)
Internet Explorer holds references to objects that are not actually javascript objects.
So if we use the objects in javascript it will give error.
But the typeof operator identifies them as javascript objects( problem!!!).
Here we can use the isIEObject() function to identify those objects.
*/
function isIEObject(a) 
{
	return isObject(a) && typeof a.constructor != 'function';
}


/*isArray(a)
This function returns true if a is an array, meaning that it was produced by the Array constructor or by the [ ] array literal notation.
*/
function isArray(a) 
{
	return isObject(a) && a.constructor == Array;
}

/*isBoolean(a)
This function returns true if a is one of the Boolean values, true or false. 
*/
function isBoolean(a) 
{
	return typeof a == 'boolean';
}

/*isEmpty(a)
This function returns true if a is an object or array or function containing no enumerable members.
*/
function isEmpty(o) 
{
	if (isObject(o)) 
	{
		for (var i in o) 
		{
			return false;
		}
	}
	return true;
}


/*isFunction(a)
This function returns true if a is a function.
Beware that some native functions in IE were made to look like objects instead of functions.
This function does not detect that.Netscape is better behaved in this regard.
*/
function isFunction(a) 
{
	return typeof a == 'function';
}

/*isNull(a)
This function returns true if a is the null value.
*/
function isNull(a) 
{
	return typeof a == 'object' && !a;
}

/*isNumber(a)
This function returns true if a is a finite number.
It returns false if a is NaN or Infinite.
It also returns false if a is a string that could be converted to a number.
*/
function isNumber(a) 
{
	return typeof a == 'number' && isFinite(a);
}

/*isObject(a)
This function returns true if a is an object, array, or function.
It returns false if a is a string, number, Boolean, null, or undefined.
*/
function isObject(a) 
{
	return (typeof a == 'object' && !!a) || isFunction(a);
}

/*isString(a)
This function returns true if a is a string.
*/
function isString(a) 
{
	return typeof a == 'string';
}

/*isUndefined(a)
This function returns true if a is the undefined value.
You can get the undefined value from an uninitialized variable or from an object's missing member.
*/
function isUndefined(a) 
{
	return typeof a == 'undefined';
}
-->