var votem = "Mình cảm thấy bài viết này chưa tốt
";
votep = "Mình thích bài viết này
";
voted = "Voted - Cảm ơn bạn đã bình chọn cho bài viết ^^"";
voting = ' ĐAng thực hiện...
vui lòng đợi chút ...';
function c3rank(a, b, c) {
up = 60;
cong = 0;
ten = '';
style = 0;
gt = a;
sex = 'boy/';
if (c.indexOf('|') != -1) {
cat = c.split.('|');
if (!isNaN(parseInt(cat[0]))) cong = parseInt(cat[0]);
if (cat[1] != '') ten = '';
if (!isNaN(parseInt(cat[2])) && cat[2] == '1') {
if (gt['indexOf']('Nam') == -1) gt = '';
else gt = ''
}
if (!isNaN(parseInt(cat[3]))) style = parseInt(cat[3])
}
lv = Math.ceil(b / up) + cong;
exp = Math.round(100 / up * (b % up));
if (gt.indexOf('Nam') == -1) sex = 'girl/';
if (lv > 20) {
lv = 20;
exp = 99
}
if (n) document.write('
');
else document.write('')
};
function limitview(b) {
if (b && zdy) {
var a = parseInt(my_getcookie('dem'));
if (isNaN(a)) setCookie('dem', 1, 1);
else {
if (parseInt(a) < 6) setCookie('dem', a + 1, 1);
else this.location = '/22-23-24-25-26-27-28'
}
} else {
if (my_getcookie('dem') != 29) setCookie('dem', 0, 1)
}
}
function chvote(p, v) {
if (v == "Message not voted" || !zdy) v = "P vote vietk 0% (0 vote)";
var a = parseInt(v.split(" ")[3], 10) / 100;
var b = parseInt(v.split(" ")[4].substr(1), 10);
if (p == 'p') a = (a * b + 1) / (b + 1);
else a = a * b / (b + 1);
v = "Message reputation : " + Math.round(a * 100) + "% (" + (b + 1) + " vote)";
return votetrans(v)
}
function votetrans(v) {
if (v == "Message not voted" || !zdy) return 'BxE0i viu1EBFt u01B0au0111
u01B0u1EE3cno vote';
var a = parseInt(v.split(" ")[3], 10) / 100;
var b = parseInt(v.split(" ")[4].substr(1), 10);
return '' + ((a != 0) ? '' + Math.round(a * b) +
'+' : '') + ((a != 0 && a != 1) ? ' | ' : '') +
((a != 1) ? '' + Math.round(b - a * b) + '-' : '') + ' u0110xE1nh gixE1: ' + Math.round(a * 100) + '%'
}
$(".c3zvau").html(function () {
return votetrans($(this).text())
});