I need to open a window, and resize and reposition it in the onload() event. When I do this, the window opens in one location, and then jumps to the new location.

how can I prevent the "jump" from being so visible?

the code is :

function loadv() // called from the onload event.
{

if (document.all.VSel.value=="2") {

var t = document.all.tblData;

var iw;
if (navigator.appName == "Netscape") {
iw = window.parent.window.opener.window.innerWidth;
}
else {
iw=window.parent.window.opener.window.document.bod y.clientWidth;
}

window.resizeTo(t.offsetLeft + t.offsetWidth+50, t.offsetHeight + t.offsetTop + 50);

var w;
if (navigator.appName == "Netscape") {
w = window.innerWidth;
}
else {
w=document.body.clientWidth;
}

var l=(window.parent.window.opener.window.screenLeft + iw)-w;
window.moveBy(l, window.screenTop);
}
window.focus();
}