ments[0] ' because a it was blured';
generatedwindow.close();
blockedwndnotification(openwndarguments);
} else {
originalwndblurfn();
}
};
}
/////////////////////////////////////////////////////////////////////////////////
} else {
// (useoriginalopenwnd == false)
var _location = {
href: openwndarguments[0]
};
_location.replace = function (url) {
_location.href = url;
};
generatedwindow = {
close: function close() {
return true;
},
test: function test() {
return true;
},
blur: function blur() {
return true;
},
focus: function focus() {
return true;
},
showmodelessdialog: function showmodelessdialog() {
return true;
},
showmodaldialog: function showmodaldialog() {
return true;
},
prompt: function prompt() {
return true;
},
confirm: function confirm() {
return true;
},
alert: function alert() {
return true;
},
moveto: function moveto() {
return true;
},
moveby: function moveby() {
return true;
},
resizeto: function resizeto() {
return true;
},
resizeby: function resizeby() {
return true;
},
scrollby: function scrollby() {
return true;
},
scrollto: function scrollto() {
return true;
},
getselection: function getselection() {
return true;
},
onunload: function onunload() {
return true;
},
print: function print() {
return true;
},
open: function open() {
return this;
},
opener: window,
closed: false,
innerheight: 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