<!--#include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PropertiesDialog/Common/CNCASPPageManager_SetProperties.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."
' ********************************************************************

' ********************************************************************
' File:		/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PropertiesDialog/Channel/
'			ChannelPropertiesSave.asp
' Author:	Microsoft Corporation.
' Purpose:	Save Properties for a Channel
'
' Query String Parameters:
'	[API-Generated-Query-Params]: This set of parameters is generated by
'								invoking the API method Posting.QueryString
'								in the previous ASP page. It contains all the
'								necessary information to be interpreted by the
'								API to set the AutoSession.This object in this
'								ASP page.
' ********************************************************************

' ---- Initialize the ASPPageManager
Dim g_pASPPageManager
Set g_pASPPageManager = New CNCASPPageManager_SetProperties
Call g_pASPPageManager.InitManager()

%>
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
	<html>
		<head>
			<meta http-equiv="pragma" content="no-cache">
			<meta http-equiv="expires" content="-1">
			<meta name="Author" content="Microsoft Corporation.">
			<meta name="Description" content="Save Properties page for a Channel">
			<meta name="robots" content="NOINDEX,NOFOLLOW">
			<meta http-equiv="Content-Type" content="text/html; charset=<%= g_pASPPageManager.Charset %>">
			<title><%= IDS_UI_BROWSER_TITLE %></title>
			<% Call EmbedWBCHeadSection %>
		</head>
	<body <%= IDS_BODYSETTING %>>

<% If (g_pASPPageManager.Error <> "") Then %>

		<form name="WBC_formWarningProps" enctype="multipart/form-data" method="post" target="_self">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<!-- Show the Top Title -->
				<tr class="WBC_styclsBackground1">
					<td width="50"><img src="<%=IDS_PATH_IMAGE_LOGO %>" border=0></td>
					<td width="100%" valign="middle"  class="WBC_styclsHeaderText">
						Channel Properties
					</td>
					<td><img src="<%=IDS_TRANSPARENT_GIF%>"
								width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_LEVEL1_HEIGHT %>" border="0"></td>
				</tr>

				<!-- Set the margin width for the rest of the page -->
				<tr>
					<td rowspan="999"><img src="<%= IDS_TRANSPARENT_GIF %>"
								width="<%= C_INT_MAIN_MARGIN %>" height="1" border="0"></td>
					<td><img src="<%=IDS_TRANSPARENT_GIF%>"
								width="100%" height="1" border="0"></td>
					<td rowspan="999"><img src="<%= IDS_TRANSPARENT_GIF %>"
								width="<%= C_INT_MAIN_MARGIN %>" height="1" border="0"></td>
				</tr>

				<!-- Display the error message -->
				<tr>
					<td><img src="<%=IDS_TRANSPARENT_GIF%>"
						width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
				</tr>
				<tr>
					<td>
						<table class="WBC_styclsBackground1" border="0" cellspacing="<%= C_INT_THICK_BORDER %>" cellpadding="0">
							<td valign="top">
								<table class="WBC_styclsBackground2" border="0" cellspacing="0" cellpadding="10">
									<tr class="WBC_styclsBackground2">
										<td class="WBC_styclsHeavyTextColor1" valign="top" colspan="2">
											<%= IDS_UI_ERROR_SAVING %><%= g_pASPPageManager.ObjectType %>.
										</td>
									</tr>
									<tr class="WBC_styclsBackground2">
										<td class="WBC_styclsHeavyTextColor1" valign="top" width="25%">
											<nobr>Error description:</nobr>
										</td>
										<td class="WBC_styclsTextColor1" valign="top">
											<%= g_pASPPageManager.Error %>
										</td>
									</td>
									<tr class="WBC_styclsBackground2"  valign="bottom">
										<td class="WBC_styclsHeavyTextColor1" colspan="2">
											Please select one of the following actions:
										</td>
									</tr>
									<tr class="WBC_styclsBackground2" valign="top">
										<td class="WBC_styclsTextColor1" colspan="2">
											<ol>
												<li>
													<a target="_self" href="#"
														onclick='WBC_submitForm("WBC_formWarningProps", "<%= g_pASPPageManager.RetryUrl %>");return false;'>
														Attempt to save the Channel Properties again</a>
												</li>
												<li>
													<a target="_top" href="javascript:window.close()">
														Cancel saving of the Channel Properties</a>
												</li>
											</ol>
											<% Call g_pASPPageManager.GenerateFormElements() %>
										</td>
									</tr>
								</table>
							</td>
						</table>
					</td>
				</tr>
			</table>
		</form>
<% Else %>

		<script language="JavaScript" type="text/javascript">
		<!--
			if (!WBC_isOpenerWindowClosed())
			{
				var pFuncWin = WBC_getFuncWin( "WBC_refreshWindow", top.opener );
				if (pFuncWin != null)
				{
					pFuncWin.WBC_refreshWindow();
				}
				top.close();
			}
			else
			{
				alert(IDS_WINDOW_OPENER_NOT_FOUND);
			}
		// -->
		</script>
<% End If %>
	</body>
</html>