﻿//로그인(로그아웃) 버튼 크릭했을때..
function LogOnIconClick()
{
    if($('g_lnkLogonIcon').getAttribute('logon')=='true') //로그인된 경우
    {
        window.location.href = "/CS/CusMyPage/logout.aspx?ReturnUrl=" + window.location.pathname + window.location.search;
    }
    else //로그인 안된경우
    {
        window.location.href = "/CS/CusMyPage/logon.aspx?ReturnUrl=" + window.location.pathname + window.location.search;
    }
}

//회원가입(정보변경) 버튼 크릭했을때..
function MemberInfoIconClick()
{
    if($('g_lnkLogonIcon').getAttribute('logon')=='true') //로그인된 경우
    {
        window.location.href = "/CS/CusMyPage/infochange.aspx?ReturnUrl=" + window.location.pathname + window.location.search;
    }
    else //로그인 안된경우
    {
        window.location.href = "/CS/CusMyPage/join.aspx?ReturnUrl=" + window.location.pathname + window.location.search;
    }
}