// ·Î±×ÀÎ °ü·Ã
function loginCHK() {
var obj = document.theForm ;

	if (obj.id.value=="") {
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
		obj.id.focus();
    	return false ;
    } 
    else if (obj.pass.value=="") {
    	alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.');
	    obj.pass.focus();
        return false ;
    }
    obj.submit() ;
}

function logout_ok() {       
        var ans = confirm("Á¤¸»·Î ·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?");
        
        if (ans == true) {
        document.logout.submit();
        }
}

function member_chk(){
	alert('È¸¿øÀü¿ë¼­ºñ½º ÀÔ´Ï´Ù.');
	location.href="#"
}

function no_board2(no){
	if (no==1) {
		alert('ºÎ¸ð´Ô°úÀÇ ´ëÈ­ ¸Þ´º´Â À¯´Ï¸¶½ºÅÍ°¡ Á¤ÇÑ\n\nÆ¯º°È¸¿ø¸¸ »ç¿ëÀÌ °¡´ÉÇÕ´Ï´Ù.');
	}
	else {
		alert('È¸¿ø´ÔÀ» ÀÚ³à·Î µî·ÏÇÑ ºÎ¸ð´ÔÀÌ ¾ø°Å³ª\nÈ¸¿ø´ÔÀÌ µî·ÏÇÑ ÀÚ³à°¡ ¾ø½À´Ï´Ù.\n\nºÎ¸ð´Ô°úÀÇ ´ëÈ­ ¸Þ´º´Â µî·ÏµÈ ºÎ¸ð´ÔÀÌ³ª ÀÚ³à°¡ ¾øÀ¸¸é\n»ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.\n\nºÎ¸ð´ÔÀÇ °æ¿ì ÀÚ³àºÐÀÌ À¯´Ï¸¶½ºÅÍ ±³À°ÁøÈï¿øÀÇ\nÈ¸¿øÀÌ¸é Á¤º¸º¯°æ¿¡¼­ ÀÚ³à µî·ÏÀ» ÇÏ¿© ÁÖ½Ê½Ã¿ä.');
	}
}

function member_b(){
	alert('È¸¿øÀü¿ë¼­ºñ½º ÀÔ´Ï´Ù.\n\nºñÈ¸¿øÀº ÀÐ±â¸¸ °¡´ÉÇÕ´Ï´Ù.');
	location.href="/my_uk_life/list.asp";
}

function member_b_content(no){
	alert('È¸¿øÀü¿ë¼­ºñ½º ÀÔ´Ï´Ù.\n\nºñÈ¸¿øÀº ÀÐ±â¸¸ °¡´ÉÇÕ´Ï´Ù.');
	location.href="/my_uk_life/content.asp?no="+no;
}

function board_list(no){
	document.board.board_num.value = no ;
	document.board.submit();
}

function idpw_lose(){
	window.open('/login/idpw_lose.asp', 'search', "width=354,height=220, toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,copyhistory=0");
}

// ·Ñ¿À¹ö °ü·Ã
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();
}
MM_reloadPage(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.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 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 menuA(a){
	switch(a){
		case 1 : location.href="/independent/introduction.asp"; break;
		case 2 : location.href="/independent/advantages.asp"; break;
		case 3 : location.href="/independent/forms.asp"; break;
		case 4 : location.href="/independent/fees.asp"; break;
		case 5 : location.href="/independent/apply.asp"; break;
		case 6 : location.href="/independent/studying.asp"; break;
	}
}
function menuB(b){
	switch(b){
		case 1 : location.href="/educational/nursery_schools.asp"; break;
		case 2 : location.href="/educational/preparatory_schools.asp"; break;
		case 3 : location.href="/educational/secondary_schools.asp"; break;
		case 4 : location.href="/educational/gce.asp"; break;
		case 5 : location.href="/educational/term_schdule.asp"; break;
	}
}
function menuC(c){
	switch(c){
		case 1 : location.href="/university/introduction.asp"; break;
		case 2 : location.href="/university/apply.asp"; break;
	}
}
function menuD(d){
	switch(d){
		case 1 : location.href="/vocational_tutorial/courses.asp"; break;
	}
}
function menuE(e){
	switch(e){
		case 1 : location.href="/vacational/summer/list.asp?board_num=311"; break;
	}
}
function menuF(f){
	switch(f){
		case 1 : location.href="/language/introduction.asp"; break;
		case 2 : location.href="/language/home_tuition.asp"; break;
	}
}