function SetCookie(이름, 값) {
var exp = new Date();
exp.setTime(exp.getTime() 3 * 24 * 60 * 60 * 1000); //3일 후 만료
document.cookie = name "=" escape(value) ";expires=" exp.toGMTString();
return true;
};
function getCookie(name) {
var arr = document.cookie.match(new RegExp("(^| )" name "=([^;]*)(;|$)"));
if (arr != null) return arr[2]; return null;
};
var currentServiceAliasName = getCookie("appName");
var displayName = "";
if (currentServiceAliasName != null && currentServiceAliasName != " " && currentServiceAliasName != "undefine")
displayName = decodeURIComponent(currentServiceAliasName) " . " counterName;
else
displayName = counterName;
decodeURIComponent 이를 사용하여 변환하세요