do it in this way
open_pix : function()
{
...
opner : function () {
for (i=start; i <= rounds; i++)
{
window.open(mp_op.xpathResult.snapshotItem(i).getElementsByTagName("a")[0].href,'');
}
...
if (flag)
{
var t = window.setTimeout( mp_op.open_pix, mp_op.timeoutMS );
}
}
opner();
}
so after the open_pix finish exacting the opner function keep work "closures"