/* ¿À¸¥ÂÊ ¸¶¿ì½º ¸·±â, µå·¡±× ¸·±â */
//»õ·Î°íÄ§, µÚ·Î°¡±â ¸·±â
document.onkeydown = function(e){
	key = (e) ? e.keyCode : event.keyCode;
	if(key==116){
		if(e){
			e.preventDefault();
		}else{
			event.keyCode = 0;
			event.returnValue = false;
		}
	}
} 

//¿À¸¥ÂÊ¸¶¿ì½º ¸·±â
document.oncontextmenu = function(e){
	if(e){
		e.preventDefault();
	}else{
		event.keyCode = 0;
		event.returnValue = false;
	}
}

//µå·¡±× ¸·±â
document.ondragstart = function(e){
	if(e){
		e.preventDefault();
	}else{
		event.keyCode = 0;
		event.returnValue = false;
	}
}

document.onselectstart = function(e){
	if(e){
		e.preventDefault();
	}else{
		event.keyCode = 0;
		event.returnValue = false;
	}
}
/**/



/* HOME */
function home(){location.href='/index.html';}	//HOME



/* ¼¾ÅÍ¼Ò°³ */
function center00(){location.href='/Center/Center01.html';}			//¼¾ÅÍ¼Ò°³ - ¸ÞÀÎ
function center01(){location.href='/Center/Center01.html';}			//¼¾ÅÍ¼Ò°³ - ÀÎ»ç¸»
function center02(){location.href='/Center/Center02.html';}			//¼¾ÅÍ¼Ò°³ - È¸»ç¼Ò°³
function center03(){location.href='/Center/Center03.html';}			//¼¾ÅÍ¼Ò°³ - È¸»ç¿¬Çõ
function center04(){location.href='/Center/Center04.html';}			//¼¾ÅÍ¼Ò°³ - ±³À°ÀÇ Æ¯Â¡
function center05(){location.href='/Center/Center05.html';}			//¼¾ÅÍ¼Ò°³ - È¸¿ø»ç¸®½ºÆ®
function center06(){location.href='/Center/Center06.html';}			//¼¾ÅÍ¼Ò°³ - Ã£¾Æ¿À½Ã´Â ±æ



/*°úÁ¤¾È³» */
function course00(){location.href='/Course/Course03.html';}				//¸ÞÀÎ
function course01(){location.href='/Course/Course03.html';}				//°úÁ¤¾È³»
function course02(){location.href='/Course/Course02.html';}				//°­»ç¼Ò°³



/* ¼ö°­½ÅÃ» */
function enterclass00(){location.href='/EnterClass/EnterClass01.html';}				// ¸ÞÀÎ
function enterclass01(){location.href='/EnterClass/EnterClass01.html';}				// ¼ö°­½ÅÃ»



/* ±³Àç±¸ÀÔ */
function book00(){location.href='/Book/Book01.html';}			// ¸ÞÀÎ
function book01(){location.href='/Book/Book01.html';}			// ±³Àç±¸ÀÔ
function book02(){location.href='/Book/Book02.html';}			// ±³ÀçÁ¤¿ÀÇ¥



/* °í°´Áö¿ø */
function customer00(){location.href='/Customer/Customer01.html';}								 	// ¸ÞÀÎ
function customer01(){location.href='/Customer/Customer00.html?BoardID=B_Notice';}				 	// °øÁö»çÇ×
function customer02(){location.href='/Customer/Customer01.html?BoardID=B_News';}					// ±³À°´º½º
function customer03(){location.href='/Customer/Customer02.html';}									// ÇÐ½Àµµ¿ì¹Ì
function customer04(){location.href='/Customer/Customer03.html?BoardID=B_OnlineQ';}				// 1:1 ¿Â¶óÀÎ»ó´ã
function customer05(){location.href='/Customer/Customer04.html?BoardID=B_CQNA';}					// °³ÀÎÈ¸¿ø»ó´ã½Ç
function customer06(){location.href='/Customer/Customer06.html?BoardID=B_RemoteService';}		 	// ¿ø°Ý»ó´ã¿¹¾à
function customer07(){location.href='/Customer/Customer07.html?BoardID=B_Data';}					// ¿ø°Ý»ó´ã¿¹¾à



/* ±â¾÷±³À°¾È³» */
function company00(){location.href='/Company/Company01.html';}					// ¸ÞÀÎ
function company01(){location.href='/Company/Company01.html';}					// ÀÏ¹Ý°úÁ¤
function company02(){location.href='/Company/Company02.html';}					// ±â¾÷±³À°¾È³»
function company03(){location.href='/Company/Company03.html';}					// °í¿ëº¸ÇèÈ¯±Þ°úÁ¤
function company04(){location.href='/Company/Company04.html';}					// °³ÀÎ¼ö°­Áö¿ø±Ý°ú
function company05(){location.href='/Company/Company05.html';}					// ´É·Â
function company06(){location.href='/Company/Company06.html';}					// ±â¾÷ÇÐ½À.



/* ¸¶ÀÌÆäÀÌÁö */
function classroom00(){location.href='/ClassRoom/index.html';}					// ¸¶ÀÌÆäÀÌÁö



/* ÆË¾÷ - ¾ÆÀÌµð Áßº¹È®ÀÎ */
function pop_idcheck(frm, frmName){														
	var url = "/member/pop_idcheck.html?id=" + frm.UserID.value + "&frmName=" + frmName ;
	window.open(url,'id_check','width=436,height=436');
}



/* ÆË¾÷ - ¿ìÆí¹øÈ£ °Ë»ö */

//ÆË¾÷ - ¿ìÆí¹øÈ£ °Ë»ö2
function pop_zipcode(frmName, frmNav){														
	var url = "/member/pop_zipcode.html?frmName=" + frmName + "&frmNav=" + frmNav ;
	window.open(url,'zipcode','scrollbars=yes,no-resize,width=436,height=250');
}

//ÆË¾÷ - ¿ìÆí¹øÈ£ °Ë»ö2
function pop_zipcode2(){														
	window.open('/member/pop_zipcode2.html','zipcode','scrollbars=yes,no-resize,width=436,height=250');
}



/* ·Î±×ÀÎ */
function login01(){location.href='/member/login.html';}						//LOGIN
function logout01(){location.href='';}										//LOGOUT



/* »çÀÌÆ®¸Ê */
function sitemap01(){location.href='';}			//Sitemap



/* ÇÃ·¡½Ã »ðÀÔ flash(°æ·Î,°¡·Î,¼¼·Î,Åõ¸í¿©ºÎ) */
function flash(src,width,height,tr){
    object = '';
    object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
    object += '<param name="movie" value="'+src+'">';
    if(tr=='1'){
         object += '<param name="wmode" Value="Transparent">';
    }
    object += '<embed src="'+src+'" quality="high" ';    
    if(tr=='1'){
        object += ' wmode="transparent" ';
    }
    object += ' bgcolor="#ffffff" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
    object += '</object>';
    document.write(object);
}



/* ¹Ìµð¾î ÇÃ·¹ÀÌ¾î ½ºÅ©¸³Æ® */
function writePlayer(mmsUrl, w, h) {
	try {
		//CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6´Â ¹Ìµð¾î ÇÃ·¹ÀÌ¾î 7.0 ÀÌ»óÀ» Áö¿øÇÑ´Ù.(url »ç¿ë)
		//CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95´Â ¹Ìµð¾î ÇÃ·¹ÀÌ¾î 6.4À» Áö¿øÇÑ´Ù. (filename »ç¿ë)
		document.write('<OBJECT ID="MediaPlayer1" style="WIDTH: ' + w + ' ; HEIGHT: ' + h + '" CLASSID=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 standby="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject" VIEWASTEXT">');
		document.write('<param name="AUTOSTART" value="true">');
		document.write('<PARAM NAME="ShowCaptioning" VALUE="false">');
		document.write('<PARAM NAME="ShowControls" VALUE="false">');
		document.write('<PARAM NAME="ShowAudioControls" VALUE="ture">');
		document.write('<PARAM NAME="ShowDisplay" VALUE="false">');
		document.write('<PARAM NAME="ShowPositionControls" VALUE="false">');
		document.write('<PARAM NAME="ShowStatusBar" VALUE="false">');
		document.write('<PARAM NAME="ShowTracker" VALUE="true">');
	    document.write('<param name="filename" value="' + mmsUrl+ '">');
	 	document.write('<param name="PlayCount" value="1">');	
	 	document.write('<param name="enableContextMenu" value="false">');			
		document.write('</OBJECT>');
	} catch(E){}
}



/* Ã¼Å©¹Ú½º Ã³¸® */

// ÀüÃ¼ ¼±ÅÃ
function selectAll(frm) { 
	for (var i=0;i<frm.elements.length;i++) {
		var target = frm.elements[i]; 
		if(target.name == 'list[]' && target.checked==false){ 
			target.click(); 
		} 
	} 
} 

// ÀüÃ¼ ÇØÁ¦
function deSelectAll(frm) {
	for (var i=0;i<frm.elements.length;i++) { 
		var target = frm.elements[i]; 
			if(target.name == 'list[]' && target.checked==true){ 
				target.click(); 
			} 
	} 
}

// ¼±ÅÃ ¹ÝÀü
function convertAll(frm) {
	for (var i=0;i<frm.elements.length;i++) { 
		var target = frm.elements[i];
		if(target.name == 'list[]'){  
			target.click(); 
		}
	} 
}

// ¼±ÅÃ »èÁ¦
function fnListDel(frm, url, p, msg) {
	var f=confirm("Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?") ;
	if(f==true) {
		frm.p.value=p ;
		//---------- Ã¼Å©¸®½ºÆ® Ã¼Å© ¿©ºÎ ½ÃÀÛ -----------
		var list = document.getElementsByName("list[]");
		var leng=list.length ;					
		var count=0 ;
		for(i=0; i<leng; i++) {
			if(list[i].checked==true) count++ ;
		}
		if(count==0) {
			alert(msg);
			return ;
		}
		//---------- Ã¼Å©¸®½ºÆ® Ã¼Å© ¿©ºÎ ³¡ -----------									
		frm.action=url ;
		frm.submit();
	}else{
		return ;	
	} 
}

// ÆË¾÷Ã¢ °ü¸®
function fnOpenPopup(url, name, width, height, scroll_yn) {
	var url = url ;
	var name = name ;
	var opt = "width=" + width + ", height=" + height + ", scrollbars=" + scroll_yn ; ;
	window.open(url, name, opt) ;
}