<!--
// javascript needed for Lynne's 2 Window mod:
// this mod will give the user the option of using 2 windows to browse a forum.
// the parent window will display the index, and the child window will display each post/thread/etc.
// requested by the user from the index.  When the user clicks on "return to index", the focus
// just returns to the parent window.  This speeds up browsing a forum, because you are not reading the
// index in over and over.

//----------------------------------------
// set up correct return for 2 windows in the child window.
// if the post is being displayed from the parent window, then return to index is just a change focus.
//  if the post is being displayed directly from a link elsewhere, then return to index will bring up
//  main index.
//----------------------------------------
function windows2_rtn(defrtn)

{  if (arguments.length < 1) {
	alert("must specify all parameters for ghost_rtn!");
	exit;
}
else {

	if(!window.opener || window.opener.closed) {
		top.location.href = defrtn;
	}

	else {
		opener.focus()
	}
}

}

//-->
