<%@ Page language="c#" Codebehind="SelectionFrame.aspx.cs" AutoEventWireup="false" Inherits="Microsoft.ContentManagement.WebAuthor.CMS.WebAuthor.Dialogs.PageCopy.SelectionFrame" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>SelectionFrame</title>
		<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<%= EmbedHeadSection() %>
		<script language="javascript">
		<!--
			// guard against multiple clicks on OK
			var g_bSubmitted = false;
			function CMS_handleSubmit()
			{
				if (g_bSubmitted)
				{
					return false;
				}
				
				g_bSubmitted = true;
				return true;
			}
			
			// For TreeFrame to set Channel selection
			function WBC_setChannelSelection( strChannelName, strChannelGuid )
			{
				document.NC_ChannelNameForm['NC_intxtChannelName'].value = strChannelName;
				document.NC_ChannelNameForm['NC_intxtChannelGuid'].value = strChannelGuid;
			}
			// -->
		</script>
	</HEAD>
	<BODY class=WBC_styclsTextColor0 bgColor="<%=IDS_BODYSETTING_BGCOLOR %>" 
                                    leftMargin="<%=IDS_BODYSETTING_LEFTMARGIN%>" 
                                    topMargin="<%= IDS_BODYSETTING_TOPMARGIN %>">
		<form id="NC_ChannelNameForm" name="NC_ChannelNameForm" runat="server" onsubmit="return CMS_handleSubmit()">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<!-- Show area displaying info about current object -->
				<tr>
					<td class="WBC_styclsBackground3">
						<table width="100%" border="0" cellspacing="2" cellpadding="5">
							<tr class="WBC_styclsBackground3">
								<td rowspan="999"><img src="<%=IDS_TRANSPARENT_GIF%>"
							width="5" height="<%=C_INT_SUBHEAD_HEIGHT%>" border="0"></td>
								<td>
									<table width="100%" border="0" cellspacing="1" cellpadding="0">
										<tr>
											<td align="left" nowrap class="WBC_styclsHeavyTextColor1">
												<%= IDS_UI_DEST_CHANNEL %>
												:
											</td>
											<td>
												<input runat="server" size="35" class="WBC_styclsTextColor1" style="BACKGROUND-COLOR:transparent" id="NC_intxtChannelName" readonly type="text">
												<input runat="server" type="hidden" id="NC_intxtChannelGuid">
											</td>
										</tr>
									</table>
								</td>
								<td rowspan="999"><img src="<%=IDS_TRANSPARENT_GIF%>"
							width="5" height="<%=C_INT_SUBHEAD_HEIGHT%>" border="0"></td>
							</tr>
							<tr>
								<td align="right">
									<input type=image src='<%=IDS_PATH_IMAGES_COMMON_BUTTONS%><%=IDS_IMG_BTN_OKAY%>' border="0">&nbsp;
									<a href="#" onclick="window.top.close();return false"><img src='<%=IDS_PATH_IMAGES_COMMON_BUTTONS%><%=IDS_IMG_BTN_CANCEL%>' border="0"></a>&nbsp;
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
		<asp:PlaceHolder id="ErrorEmptySelection" runat="server" visible="false">
			<script language="javascript">
		<!--
			alert("<%= NoChannelSelectedMessage %>");
		-->
			</script>
		</asp:PlaceHolder>
		<asp:PlaceHolder id="ErrorCopyingPosting" runat="server" visible="false">
			<script language="javascript">
		<!--
			alert("<%= FailedCopyMessage %>");
		-->
			</script>
		</asp:PlaceHolder>
		<asp:PlaceHolder id="CopySuccessJScript" runat="server" visible="false">
			<script language="javascript">
		<!--
			window.top.opener.location = "<%= NewCopiedPostingUrl %>"
			window.top.close();
		-->
			</script>
		</asp:PlaceHolder>
	</BODY>
</HTML>
