var newwindow = '';

function popout(thisurl,thiswin,thisproperties)
{
	if (!newwindow.closed && newwindow.location)
	{
		newwindow.location.href = thisurl;
	}
	else
	{
		newwindow=window.open(thisurl,thiswin,thisproperties);;
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}

function open_at_parent(thisurl){
    window.opener.location = thisurl;
    if (!window.opener.closed) {
        window.opener.window.focus();
    }
}