<!--#include virtual="/NR/System/WBC/Internals/Main/WBCApp.inc"-->
<!--
' ********************************************************************
' Copyright (C) 2001 Microsoft Corporation. All rights reserved.
'
'	IMPORTANT.  Please read the legal.txt file, located in the
'	"<CMS Install Directory>\Server\httpexec\WBC\Internals"
'	directory, governing the use of this internal file."
'
' Author:	Microsoft Corporation.
' Purpose:	Process the refreshing of a frameset
'
' Query String Parameters:
'	IDS_QPARAM_GOTOMODE - The mode that we want the WBC to go to.
'
' ********************************************************************
-->

<% Dim strGoToMode

   strGoToMode = Request.QueryString(IDS_QPARAM_GOTOMODE)

   If (strGoToMode = IDS_GOTOMODE_AUTHORING) Then
%>

   <script language="JavaScript" type="text/javascript">
	<!--
		// whole purpose of the page is a client-side refresh of the frameset
		window.top.location = "<%= GetWBCAuthoringUrl(AutoSession.This) %>";
	// -->
	</script>
<%
   Else
%>

	<script language="JavaScript" type="text/javascript">
	<!--
		// whole purpose of the page is a client-side refresh of the frameset
		window.top.location = "<%= GetWBCBasicEditURL( AutoSession.This ) %>";
	// -->
	</script>
<%
	End If
%>