erheight: 480,
innerwidth: 640,
name: openwndarguments[1],
location: _location,
document: { location: _location }
};
copymissingproperties(window, generatedwindow);
generatedwindow.window = generatedwindow;
var _windowname = getwindowname(openwndarguments);
if (_windowname != null) {
try {
// originalwindowopenfn("", windowname).close();
windowswithnames[_windowname].close();
} catch (err) {}
}
var fngeturl = function fnget {
var url = void 0;
if (!(generatedwindow.location instanceof object)) {
url = generatedwindow.location;
} else if (!(generatedwindow.document.location instanceof object)) {
url = generatedwindow.document.location;
} else if (_location.href != null) {
url = _location.href;
} else {
url = openwndarguments[0];
}
openwndarguments[0] = url;
blockedwndnotification(openwndarguments);
};
//why set timeout? if anyone finds a reason for it, please write it here
//in iframes it makes problems so i'm avoiding it there
if (top == self) {
settimeout(fngeturl, 100);
} else {
fnget;
}
}
return generatedwindow;
}
function pbwindowopen() {
try {
return newwindowopenfn.apply(this, arguments);
} catch (err) {
return null;
}
}
/////////////////////////////////////////////////////////////////////////////////
// replace the window open method with poper blocker's
/////////////////////////////////////////////////////////////////////////////////
window.open = pbwindowopen;
/////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
// monitor dynamic html element creation to prevent generating