export function setCookie(c_name, value) {
document.cookie = c_name + "=" + escape(value)
};
export function getCookie(c_name) {
var arr, reg = new RegExp("(^| )" + c_name + "=([^;]*)(;|$)");
if (arr = document.cookie.match(reg))
return unescape(arr[2]);
else
return "";
};
export function delCookie(c_name) {
var exp = new Date();
exp.setTime(exp.getTime() - 1);
var cval = getCookie(c_name);
if (cval != null)
document.cookie = c_name + "=" + cval + ";expires=" + exp.toGMTString();
}