var newwin; function launchwin(url,wname,wfeatures) { newwin = window.open(url,wname,wfeatures); if(javascript_version > 1.0) { //IE4 delay setTimeout('newwin.focus();',250); } }