/*
==============================================================
	ÆË¾÷
==============================================================
*/
function GoUrl(na, win) {
   //adCheck(name);
    if (eval(na) == "") {
		alert("");
		return;	
	} else {
      if (win == null) {
          document.location.href = eval(na);
	    } else {
	    window.open(eval(na), win);
		}
	}
}


function popup(Fn,Name, X, Y, Scroll) {
	 l = (screen.width) ?	(screen.width-X)	/ 2	: 0;
	 t = (screen.height) ?	(screen.height-Y)  / 2	: 0;
	
	 NewWindow=window.open(Fn,Name,'width='+X+',height='+Y+',top='+t+',left='+l+',scrollbars='+Scroll+',toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no');
}

function Gowin(url, target, intwidth, intheight) {
    window.open(url, target, "width=" + 800 + ",height=" + 600 + ",resizable=yes, scrollbars=yes, location=yes, status=yes, titlebar=yes, toolbar=yes, menubar=yes");
}

function GoinputUrl(na, win) {
 //   adCheck(na);
    if (win == null) {
        document.location.href = eval(na);
    } else {
     window.open(eval(na), win);
    }
}

function LecturePopWin(he, wi, go_url){
    var optstr;
	optstr="height="+he+",width="+wi+",location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,screeny=0,left=0,top=0";
	LecturePop = window.open(go_url, "POPWIN", optstr);

}

function doResize() 
	{ 
		container.height = myframe.document.body.scrollHeight; 
		container.width = myframe.document.body.scrollWidth; 
	} 


function bluring()
	{ 
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
			document.body.focus();
	} 
	
document.onfocusin=bluring; 


/*
==============================================================
	Quick ¹è³Ê¸¦ À§ÇÑ ¼³Á¤
==============================================================
*/
	  var min = 39;
	  var min2 = min - 80;
	  var max = 0;
  	
function left_move_init() 
	{
	    itm = document.getElementById('main_quicklink');
	    itm.set_pos = function(y){itm.style.top=y;};
	    itm.y = min;
	    itm.set_pos(itm.y);
	
	    max = document.body.scrollHeight - itm.scrollHeight - min;
	    setTimeout('left_move_func()', 10);
	}


function left_move_func() 
	{
	    tmp = document.body.scrollTop + min;
	    itm.y += Math.floor((tmp-itm.y)/10);
	
	    if( itm.y>max ) itm.y = max;
	    if( itm.y<min ) itm.y = min;
	    itm.set_pos(itm.y);
	    setTimeout('left_move_func()', 10);
  	}
  	
  	
/*
  	
  	
/*
==============================================================
	ÀÌ¹ÌÁö preload¸¦ À§ÇÑ ÇÔ¼ö
==============================================================
*/  	
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];
   		}
}


/*
==============================================================
	globalMenu¼Ó¼º
==============================================================
*/

function show_win(){
	document.all.globalmenu.style.height = '230'; 
} 
function hide_win(){ 
			document.all.globalmenu.style.height = '20'; 
}

/*
==============================================================
	ÆË¾÷ ´Ý±â¹öÆ°
==============================================================
*/

function pop_close(){
//document.write("<div align='right' style='height:40px;padding-top:10px;'><a href='javascript:self.close();'><img src='"+pub+"/img/btn/btn_close.gif' width='45' height='20' alt='' border='0' hspace='10'></a></div>")
document.write("<div align='center' style='height:40px;padding-top:10px;'><a href='javascript:self.close();'><img src='/images/HTML/btn/btn_closed.gif' alt='' border='0' hspace='10'></a></div>")

}

function chkNumeric(objText) {
		var chrTmp;
		var strTmp = objText.value;
		var chkAlpha = false;
		var resString = '';

		for (var i=0; i<=strTmp.length; i++) {
			chrTmp = strTmp.charCodeAt(i);
			if ((chrTmp <=47 && chrTmp > 31) || chrTmp >= 58) {
				chkAlpha = true;
			} else {
				resString = resString + String.fromCharCode(chrTmp);
			}
		}
		if (chkAlpha == true) {
			alert("¼ýÀÚ¸¸ ÀÔ·Â °¡´ÉÇÕ´Ï´Ù.");
			objText.value = resString;
			objText.focus();
			return false;
		}

	return true;
}

function throwtrm(cnt,root,nam){
   var f = document.insform;
	var len = eval("f."+root).value.length;
	if(len == cnt){
		eval("f."+nam).focus();
	}
}

fontChg = function(typ)
{
 var fntsize = document.getElementById('fntsize');
 if(typ == "increase"){
	 var fsize = parseInt(fntsize.value)+1;
	 fsize_1 = fsize+"px";
	 if(fsize >=15){
		fsize_1 = "15px";
	  }
 }else if(typ == "reset"){
	 fsize_1 = "11px";
 }
 
 allDiv = document.getElementsByTagName('div');
 allDivLen = allDiv.length;
 for( i = 0; i < allDivLen; i++ )
 {
  allDiv[i].style.fontSize = fsize_1;
 }
 allA = document.getElementsByTagName('A');
 allALen = allA.length;
 for( i = 0; i < allALen; i++ )
 {
  allA[i].style.fontSize = fsize_1;
 }
 allSPAN = document.getElementsByTagName('SPAN');
 allSPANLen = allSPAN.length;
 for( i = 0; i < allSPANLen; i++ )
 {
  allSPAN[i].style.fontSize = fsize_1;
 }
 
 allTH = document.getElementsByTagName('TH');
 allTHLen = allTH.length;
 for( i = 0; i < allTHLen; i++ )
 {
  allTH[i].style.fontSize = fsize_1;
 }
 allTD = document.getElementsByTagName('TD');
 allTDLen = allTD.length;
 for( i = 0; i < allTDLen; i++ )
 {
  allTD[i].style.fontSize = fsize_1;
 }
 
 fntsize.value = fsize_1;
}
document.write("<INPUT type='hidden' name='fntsize' value='11' id='fntsize'>");


/*
==============================================================
	ÅÇ·¹ÀÌ¾î¹öÆ°
==============================================================
*/

function layer_tab(num)
{
		if(num == "01"){
		
			document.all.tab01.style.display = "";
			document.all.tab02.style.display = "none";
			/* document.all.tab03.style.display = "none"; */
			document.all.btn_tab01.src = "../../images/guide/date01_end_on.gif";
			document.all.btn_tab02.src = "../../images/guide/date02_off.gif";
			/* document.all.btn_tab03.src = "../../images/guide/date03_off.gif"; */
			
		}
		if(num == "02"){
			document.all.tab01.style.display = "none";
			document.all.tab02.style.display = "";
			/* document.all.tab03.style.display = "none"; */
			document.all.btn_tab01.src = "../../images/guide/date01_end_off.gif";
			document.all.btn_tab02.src = "../../images/guide/date02_on.gif";
			/* document.all.btn_tab03.src = "../../images/guide/date03_off.gif"; */
		}
		/* if(num == "03"){
		  document.all.tab01.style.display = "none";
		  document.all.tab02.style.display = "none";
			document.all.tab03.style.display = ""; 
		  document.all.btn_tab01.src = "../../images/guide/date01_end_off.gif";
		  document.all.btn_tab02.src = "../../images/guide/date02_off.gif";
		 	/* document.all.btn_tab03.src = "../../images/guide/date03_on.gif";
	} */
	
}

function layer_tab2(num)
{
		if(num == "1"){
		
			document.all.tab1.style.display = "";
			document.all.tab2.style.display = "none";
			/*  document.all.tab3.style.display = "none"; */
			document.all.btn_tab1.src = "../../images/guide/date01_end_on.gif";
			document.all.btn_tab2.src = "../../images/guide/date02_off.gif";
			/*  document.all.btn_tab3.src = "../../images/guide/date03_off.gif"; */
			
		}
		if(num == "2"){
			document.all.tab1.style.display = "none";
			document.all.tab2.style.display = "";
			/*  document.all.tab3.style.display = "none"; */
			document.all.btn_tab1.src = "../../images/guide/date01_end_off.gif";
			document.all.btn_tab2.src = "../../images/guide/date02_on.gif";
			/*  document.all.btn_tab3.src = "../../images/guide/date03_off.gif"; */
		}
		if(num == "3"){
		document.all.tab1.style.display = "none";
		document.all.tab2.style.display = "none";
		/*  document.all.tab3.style.display = ""; */
		document.all.btn_tab1.src = "../../images/guide/date01_end_off.gif";
		document.all.btn_tab2.src = "../../images/guide/date02_off.gif";
		/*  document.all.btn_tab3.src = "../../images/guide/date03_on.gif"; */
	}
	
}


/*
==============================================================
	ºÎºÐ ÀÎ¼â
==============================================================
*/

 var initBody      

 function beforePrint(){
  initBody = document.body.innerHTML;
     document.body.innerHTML = idPrint.innerHTML;
    } 

    function afterPrint(){  
  document.body.innerHTML = initBody;                   
    } 

    function printArea(){
     window.print();       
 }  
    
    window.onbeforeprint = beforePrint;
    window.onafterprint = afterPrint;

/*
==============================================================
	¼­ºê_footer
==============================================================
*/

function footer() {

document.write("<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>");
		document.write("<tr>");
		document.write("<td align='left' rowspan='2' width='13'></td>");
document.write("<td width='172' rowspan='2' align='center' valign='top'><A HREF='http://cyberkorea.ac.kr' target='_blank'><img src='../../images/etc/copyright_cuk.gif' alt='°í·Á»çÀÌ¹ö´ëÇÐ±³'></A></td>");
document.write("<td width='405' rowspan='2' valign='top' background='../../images/etc/bg_address.gif'>");
			document.write("<table cellpadding='0' cellspacing='0' border='0'>");
			document.write("<tr>");
			document.write("	<td width='18'></td>")
			document.write("	<td><A HREF='http://www.kdu.edu/public/html/university/private.html' target='_blank'><img src='../../images/etc/btn_copy01_off.gif' name='Image1' alt='°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§'></a></td>");
			document.write("	<td width='19'></td>")
			document.write("    <td><a href=\"javascript:popup(url_nomail,'email','400','250','no');\"><img src='../../images/etc/btn_copy02_off.gif' name='Image2'  alt='ÀÌ¸ÞÀÏ¹«´Ü¼öÁý°ÅºÎ'></a></td>");
			document.write("	<td width='16'></td>")
			document.write("	<td><A HREF='http://www.kdu.edu/public/html/intro/map.html' target='_blank'><IMG SRC='../../images/etc/btn_copy04_off.gif' NAME='Image4' alt='Ã£¾Æ¿À½Ã´Â ±æ'></A></td>");
			document.write("</tr>");
			document.write("</table>");
document.write("</td>");
document.write("<td align='left' rowspan='2' width='10'></td>");
document.write("<td align='left'><img src='../../images/etc/coop.gif' border='0' usemap='#Map_coop'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td align='center' style='padding-left=70px'><img src='../../images/etc/20091_btn_copy05.gif' border='0' usemap='#Map'></td>");
document.write("</tr>");
document.write("</table>");
document.write("<map name='Map'>");
			document.write("<area shape='rect' coords='1,4,16,18' alt='2004 ÇÑ±¹»ê¾÷ÀÇ ÀÎÅÍ³Ý ÆÄ¿ö' href=\"javascript:popup(url_popup_power,'power','600','560','no');\">");
			document.write("<area shape='circle' coords='28,10,8' alt='°³ÀÎÁ¤º¸º¸È£¿ì¼ö»çÀÌÆ®¼±Á¤' href=\"javascript:popup(url_popup_privacy,'privacy','595','660','no');\">");;
			document.write("<area shape='circle' coords='47,10,8' alt='ÀÎÅÍ³Ý»çÀÌÆ®¾ÈÀü¸¶Å©' href=\"javascript:popup(url_popup_isafe,'isafe','595','660','no');\">");
			document.write("<area shape='rect' coords='58,4,91,17' alt='ÇÑ±¹ÀüÀÚÀÎÁõ' href=\"javascript:popup(url_popup_veri,'veri','600','700','no');\">");
			document.write("<area shape='circle' coords='104,10,9' alt='2007 ´ëÇÑ¹Î±¹ ¼ÒºñÀÚ½Å·Ú ´ëÇ¥ºê·£µå ´ë»ó'>");
document.write("</map>");
document.write("<map name='Map_coop'>");
			document.write("<area shape='rect' coords='218,1,275,20' href='http://www.kdu.edu/public/html/intro/coop/cuniversity/geogia.html' target='_blank' alt='GSW'>");
			document.write("<area shape='rect' coords='159,1,216,20' href='http://www.kdu.edu/public/html/intro/coop/cuniversity/rci.html' target='_blank' alt='RCI'>");
			document.write("<area shape='rect' coords='75,1,158,20' href='http://www.kdu.edu/public/html/intro/coop/cindustry/donga.html' target='_blank' alt='µ¿¾ÆÀÏº¸'>");
			document.write("<area shape='rect' coords='0,1,74,20' href='http://www.kdu.edu/public/html/intro/coop/cuniversity/korea_learning.html' target='_blank' alt='°í·Á´ëÇÐ±³'>");
document.write("</map>");
}