I need to open a new window and have the user finish with that window before going back to the parent. I tried the showModalDialog approach but it has too many problems. I used to have a script that would do wwhat I wanted but it dosen't seem to be working:

the parent's code:
Code:
var taiWin=0

function openchildwindow() {
	var intWidth = document.body.offsetWidth / 2 - 225;
	var intHeight = document.body.offsetHeight / 2 - 200;
	taiWin=	window.open("test.asp","TAI")
} 
function keepchildontop(){
	if(taiWin){
	taiWin.Focus();
	}
}
and in the parent's body tag
Code:
<BODY BGCOLOR="#<%= Session("BGColor") %>" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" LEFTMARGIN="0" onFocus="keepchildontop()">
but that isnt working. Any suggestions?
Thanks in advance,
Michael