var newwin; function launchwin(winurl) { //This launches a new window and then //focuses it if window.focus() is supported. newwin = window.open(winurl,'newwindow','scrollbars=yes,width=750,height=750'); //delay a bit here because IE4 encounters errors //when trying to focus a recently opened window setTimeout('newwin.focus();',250); }