var KD_URL = "http://www.koreadaily.com";

function ConfirmLogin(BackURL,action){
	if(getCookieA("member","id")=="" || getCookieA("member","id")==null){
		if(confirm("·Î±×ÀÎÀ» ÇÏ½Ã°Ú½À´Ï±î?")){
			Login(BackURL);
		}else{
			if(action==null) return false;
		}
	}else
		if(action==null)
			return true;
		else
			location = BackURL;
}

function Login(BackURL){
	if(BackURL==null || BackURL=="") BackURL = escape(location.href)
	location = KD_URL + "/member/login.asp?BackURL="+ BackURL; 
}

function MemberReg(){
	location = KD_URL + "/member/member_reg_step1.asp"; 
}

function Logout(BackURL){
	if(BackURL==null || BackURL=="") BackURL = escape(location.href)
	location = KD_URL + "/member/logout.asp?BackURL="+ BackURL; 
}

function MemberMod(BackURL){
	if(BackURL==null || BackURL=="") BackURL = escape(location.href)
	location = KD_URL + "/member/modify.asp?BackURL="+ BackURL; 
}

function CheckLogin(){
	if(getCookieA("member","id")=="" || getCookieA("member","id")==null) Login();
}