document.write('
');
document.write('
');
(function (method) {
if (typeof window.addEventListener !== "undefined") {
window.addEventListener("load", method, false);
} else if (typeof window.attachEvent !== "undefined") {
window.attachEvent("onload", method);
}
})(function () {
var func = function () {
console.log("func");
var loginBtn = parent.document.getElementById("btnPopUplogin");
if(0 == 0){
loginBtn.click();
return;
}
document.getElementById('applyAuthorFrame').innerHTML = "";
var element = document.getElementById('applyAuthorpopup')
if (element) {
element.style.display = "block";
element.insertAdjacentHTML('afterend', "");
$("body,html").css("overflow", "hidden");
}
}
var func2=function(){
var element = document.getElementById('applyAuthorpopup')
if (element) {
element.style.display = "none";
var bg = document.getElementsByClassName("loginbg");
if(bg)
bg[0].parentNode.removeChild(bg[0]);
$("body,html").css("overflow", "auto");
}
}
var applyAuthorWin = document.getElementById('applyAuthorWin');
var btnClose = document.getElementById('close_appAuthorBox');
console.log("applyAuthorWin" + applyAuthorWin);
if(!!applyAuthorWin)
{
if (typeof window.addEventListener !== "undefined") {
applyAuthorWin.addEventListener("click", func, false);
btnClose.addEventListener("click", func2, false);
} else if (typeof window.attachEvent !== "undefined") {
applyAuthorWin.attachEvent("click", func);
btnClose.attachEvent("click", func2);
}
}
})