//----------------------------------- ÇÃ·¡½Ã¼Ò½º  -----------------------------------
function flashobject(file,width,height,bgcolor,name) {
	document.write('<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="'+width+'" height="'+height+'" id="'+name+'">');
	document.write('<param name="movie" value="'+file+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="bgcolor" value="'+bgcolor+'" />');	
	document.write('<embed src="'+file+'" quality="high" wmode="transparent" bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+name+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'	);
	document.write('</object>');
}

function bluring()
{ 
    if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
} 
document.onfocusin=bluring;

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_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_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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function pagemove(cPage)
{
	document.frmmove.gotopage.value = cPage;
	document.frmmove.submit();
}
function pagemovefaq(cPage)
{
	document.frmmovefaq.gotopage.value = cPage;
	document.frmmovefaq.submit();
}
function pagemoveqna(cPage)
{
	document.frmmoveqna.gotopage.value = cPage;
	document.frmmoveqna.submit();
}

function pagemovelec(cPage)
{
	document.frmmovelec.gotopage.value = cPage;
	document.frmmovelec.submit();
}


function admpagemove(cPage)
{ 
	document.frmmove.page.value = cPage;
	document.frmmove.submit();
}
//ÅëÇÕ°Ë»ö
function  mSearchsubmit() {
	if (document.topsearchfrm.search_txt.value=="")
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä")
		return;
	}
	document.topsearchfrm.submit();
}

function  mainSearchsubmit() {
	if (document.mainsearchfrm.search_txt.value=="")
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä")
		return;
	}
	document.mainsearchfrm.submit();
}


// ÁÂÃøÇÃ·¡½Ã ÆË¾÷
function winOpenmyspace(UserID){
	 
	mc = window.open ("/myspace/index.asp?UserID="+UserID,"myclass","toolbar=no,location=no, status=no,menubar=no,resizable=no,scrolling=yes,width=930,height=710,top=0,left=0")
	mc.target="myspace"
    mc.focus()
}

function winOpenint(UserID){
 
	mc = window.open ("/myspace/lecture02.asp?UserID="+UserID,"myclass","toolbar=no,location=no, status=no,menubar=no,resizable=no,scrolling=yes,width=930,height=710,top=0,left=0")
	mc.target="myspace"
    mc.focus()
}

function winOpenlecture(UserID){
	 
	mc = window.open ("/myspace/lecture02.asp?UserID="+UserID,"myclass","toolbar=no,location=no, status=no,menubar=no,resizable=no,scrolling=yes,width=930,height=710,top=0,left=0")
	mc.target="myspace"
    mc.focus()
}
function winOpenhelp(UserID){
	 
	mc = window.open ("/myspace/help02.asp?UserID="+UserID,"myclass","toolbar=no,location=no, status=no,menubar=no,resizable=no,scrolling=yes,width=930,height=710,top=0,left=0")
	mc.target="myspace"
    mc.focus()
}
// ¿ä±îÁö ÇÃ·¡½Ã ÆË¾÷
//·Î±×ÀÎ ½Ã ÆË¾÷
function winOpeneks(UserID){
	 
	mc = window.open ("/myspace/eks01.asp?UserID="+UserID,"myclass","toolbar=no,location=no, status=no,menubar=no,resizable=no,scrolling=yes,width=930,height=710,top=0,left=0")
	mc.target="myspace"
    mc.focus()
}

function winOpenmemo(UserID){
	 
	mc = window.open ("/myspace/eks01.asp?UserID="+UserID,"myclass","toolbar=no,location=no, status=no,menubar=no,resizable=no,scrolling=yes,width=930,height=710,top=0,left=0")
	mc.target="myspace"
    mc.focus()
}

function winOpenconfig(UserID){
	 
	mc = window.open ("/myspace/my_admin.asp?UserID="+UserID,"myclass","toolbar=no,location=no, status=no,menubar=no,resizable=no,scrolling=yes,width=930,height=710,top=0,left=0")
	mc.target="myspace"
    mc.focus()
}
// ¼³¸í ±Û º¸¿©ÁÖ±â
function mshow2(no){
	pop.style.pixelLeft = document.body.scrollLeft + event.x - 50;
	pop.style.pixelTop = document.body.scrollTop + event.y + 10;

	subject = eval("title_"+no).innerHTML;
	popSubject.innerHTML = subject;
	pop.style.display = "block";
  }

  function hidepop(){
	pop.style.display = "none";
  }

  function mpop(){
	pop.style.pixelLeft = document.body.scrollLeft + event.x - 50;
	pop.style.pixelTop = document.body.scrollTop + event.y + 10;
  }
 
 //ÆË¾÷
function getCookie(name) { 
var nameOfCookie = name + "="; 
var x = 0 
while ( x <= document.cookie.length ) { 
var y = (x+nameOfCookie.length); 
if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
if ( (endOfCookie=document.cookie.indexOf( ";",y )) == -1 ) 
endOfCookie = document.cookie.length; 
return unescape( document.cookie.substring(y, endOfCookie ) ); 
}

x = document.cookie.indexOf( " ", x ) + 1; 
if ( x == 0 ) 
break; 
} 
return ""; 
}
		
function openCookieWin(popkey, url, w, h, t, l) {
	if (getCookie(popkey) != "done") {
		noticeWindow = window.open(url,"","width="+w+", height="+h+", top="+t+",left="+l);
		noticeWindow.opener = self; 
	} 
} 

//°­ÀÇ ¸®½ºÆ® Á¤·Ä¿É¼Ç
 
function ordertype(str){ 
	var frm = document.listoption;   
	  frm.lec_gusung.value = str  
	 frm.C4.value='';
	frm.submit()
}
function  typesel(str){ 
	var frm = document.listoption;   
	  frm.typesel.value = str  
	  frm.C4.value='';
	frm.submit()
}

//ÀüÃ¼°­ÀÇº¸±â 
function categoryShow(){
	var a=document.getElementById('d1').style.display; 
	document.getElementById('d1').style.display=(a=='none')?'block':'none';
	 
	 
} 

//°Ë»ö ¶õ ÀÌ¹ÌÁö
var c=false;
// Æ÷Ä¿½º°¡ ÀÎ 
function ch (txt) {
		if(txt ==  'txt')  document.topsearchfrm.search_txt.style.backgroundImage="";
		else document.topsearchfrm.search_txt.style.backgroundImage="";
		c=true;
} 
// Æ÷Ä¿½º°¡  ¹þ¾î³µÀ»¶§ 
function chout (txt) {
		 if(!document.topsearchfrm.search_txt.value) document.topsearchfrm.search_txt.style.backgroundImage="url(http://www.eduspace.co.kr/images/search_txt.gif)";   
		c=true;
}
function check_keycode(e) {
		if (e.type == "keypress") var whichCode = e.keyCode;
		if (whichCode == 13)
				 chkinput();
}


function goeks(){
    if ( getCookie( "eks" ) != "done" ){
		alert("°­ÀÇ °Ë»öÀº ÅëÇÕ°Ë»öÀ» ÀÌ¿ëÇÏ¼¼¿ä");
		setCookieeks( "eks", "done","365") ;
	}
	location.href="/eks";
}
function setCookieeks( name, value, expiredays) 
{ 
	var todayDate = new Date(); 
	todayDate.setDate( todayDate.getDate() + expiredays ); 
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
} 

function ttaGo() 
{ 
document.dic.action = "http://word.tta.or.kr/terms/terms.jsp"; 
window.open('', "dic", "width=700,height=500,toolbar=no,resizble=no,scrollbars=no"); 
document.dic.target = "dic"; document.dic.submit(); 
} 

function goto_byselect(url){
	window.open(url,'re','' )

}


function checkcart() {
 
			if(confirm("¼±ÅÃÇÏ½Å °­ÀÇ´Â Àå¹Ù±¸´Ï¿¡ ´ã°ÜÀÖ½À´Ï´Ù. Àå¹Ù±¸´Ï·Î ÀÌµ¿ÇÏ½Ã·Á¸é È®ÀÎÀ» Å¬¸¯ÇÏ¼¼¿ä")){
			  location.href="/order/cart.asp";
			 } 
 }

 // °Ë»ö¹öÆ° PNG
 /**
 * --------------------------------------------------------------------
 * jQuery-Plugin "pngFix"
 * Version: 1.1, 11.09.2007
 * by Andreas Eberhard, andreas.eberhard@gmail.com
 *                      http://jquery.andreaseberhard.de/
 *
 * Copyright (c) 2007 Andreas Eberhard
 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
 */
//eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(s($){3.1s.1k=s(j){j=3.1a({12:\'1m.1j\'},j);8 k=(n.P=="r 10 Z"&&U(n.v)==4&&n.v.E("14 5.5")!=-1);8 l=(n.P=="r 10 Z"&&U(n.v)==4&&n.v.E("14 6.0")!=-1);o(3.17.16&&(k||l)){3(2).L("1r[@m$=.M]").z(s(){3(2).7(\'q\',3(2).q());3(2).7(\'p\',3(2).p());8 a=\'\';8 b=\'\';8 c=(3(2).7(\'K\'))?\'K="\'+3(2).7(\'K\')+\'" \':\'\';8 d=(3(2).7(\'A\'))?\'A="\'+3(2).7(\'A\')+\'" \':\'\';8 e=(3(2).7(\'C\'))?\'C="\'+3(2).7(\'C\')+\'" \':\'\';8 f=(3(2).7(\'B\'))?\'B="\'+3(2).7(\'B\')+\'" \':\'\';8 g=(3(2).7(\'R\'))?\'1d:\'+3(2).7(\'R\')+\';\':\'\';8 h=(3(2).1c().7(\'1b\'))?\'19:18;\':\'\';o(2.9.y){a+=\'y:\'+2.9.y+\';\';2.9.y=\'\'}o(2.9.t){a+=\'t:\'+2.9.t+\';\';2.9.t=\'\'}o(2.9.w){a+=\'w:\'+2.9.w+\';\';2.9.w=\'\'}8 i=(2.9.15);b+=\'<x \'+c+d+e+f;b+=\'9="13:11;1q-1p:1o-1n;O:W-V;N:1l;\'+g+h;b+=\'q:\'+3(2).q()+\'u;\'+\'p:\'+3(2).p()+\'u;\';b+=\'J:I:H.r.G\'+\'(m=\\\'\'+3(2).7(\'m\')+\'\\\', D=\\\'F\\\');\';b+=i+\'"></x>\';o(a!=\'\'){b=\'<x 9="13:11;O:W-V;\'+a+h+\'q:\'+3(2).q()+\'u;\'+\'p:\'+3(2).p()+\'u;\'+\'">\'+b+\'</x>\'}3(2).1i();3(2).1h(b)});3(2).L("*").z(s(){8 a=3(2).T(\'N-S\');o(a.E(".M")!=-1){8 b=a.X(\'1g("\')[1].X(\'")\')[0];3(2).T(\'N-S\',\'1f\');3(2).Q(0).Y.J="I:H.r.G(m=\'"+b+"\',D=\'F\')"}});3(2).L("1e[@m$=.M]").z(s(){8 a=3(2).7(\'m\');3(2).Q(0).Y.J=\'I:H.r.G\'+\'(m=\\\'\'+a+\'\\\', D=\\\'F\\\');\';3(2).7(\'m\',j.12)})}1t 3}})(3);',62,92,'||this|jQuery||||attr|var|style|||||||||||||src|navigator|if|height|width|Microsoft|function|padding|px|appVersion|margin|span|border|each|class|alt|title|sizingMethod|indexOf|scale|AlphaImageLoader|DXImageTransform|progid|filter|id|find|png|background|display|appName|get|align|image|css|parseInt|block|inline|split|runtimeStyle|Explorer|Internet|relative|blankgif|position|MSIE|cssText|msie|browser|hand|cursor|extend|href|parent|float|input|none|url|after|hide|gif|pngFix|transparent|blank|line|pre|space|white|img|fn|return'.split('|'),0,{}))