function login_mkedu() {
	
	var obj = document.form;    

	


try{
	if(obj.user_id.value!= ""){
;
	}
}catch(e){
var obj = document.form1;    
	}




	if( obj.user_id.value != '' && obj.password.value != '' ) {
		obj.successUrl.value = document.location;
		obj.method = 'post';
		obj.action = 'https://member.mk.co.kr/member_login_process.php';
		obj.submit();
	}
	else if( obj.user_id.value == '' ) {
		alert( '¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä' );
		obj.user_id.focus();
	}
	else if( obj.password.value == '' ) {
		alert( 'ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä' );
		obj.password.focus();
	}    	
	return;
}

function login_mkedu2() {
	document.location = 'https://member.mk.co.kr/member_login_process.php?successUrl='+document.location;
}

function regist_mkedu() {
	document.location = 'http://member.mk.co.kr/join/join_intro.php?successUrl='+document.location;
}

function findid_mkedu() {
	document.location = 'http://member.mk.co.kr/find/idpw_find.php?successUrl='+document.location;
}

function logout_mkedu(uri) {
	var obj = document.form;

	if( uri != null) {
		obj.nextUrl.value = uri;
	} else {
	    obj.nextUrl.value = document.location;
	}
	//alert(uri);
	obj.action = 'http://member.mk.co.kr/member_logoff.php';
	obj.submit();

	return;
}

function modify_mkedu() {
	document.location = 'https://member.mk.co.kr//modify/modify_info.php?successUrl='+document.location;
}

function getCookie( name ) {  
	var arg = name + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while( i < clen ) {    
		var j = i + alen;    
		if( document.cookie.substring( i, j ) == arg ) return getCookieVal( j );    
		i = document.cookie.indexOf( " ", i ) + 1;    
		if( i == 0 ) break;   
	}  
	return null;
}

function getCookieVal( offset ) {  
	var endstr = document.cookie.indexOf( ";", offset );  
	if( endstr == -1 ) endstr = document.cookie.length;  
	return unescape( document.cookie.substring( offset, endstr ) );
}

function goMemberJoin() {
							url = 'http://member.mk.co.kr/join/join_intro.php?successUrl=".urlencode( $successUrl )."';
							document.location.href = url;
						}
						
						function goIDPWFind() {
							url = 'http://member.mk.co.kr/find/idpw_find.php?successUrl=".urlencode( $successUrl )."';
							document.location.href = url;
						}					

