<%@ Language=VBScript %>
<% Option Explicit %>
<!-- #include virtual="/NRConfig/Shared/Shared.inc" -->
<!-- #include virtual="/NRConfig/Shared/UIConstants.inc" -->
<!-- #include file="CNCASPPageManager_NTDomainAddAcceptor.inc" -->

<%
'*****************************************************************************
'	Copyright (C) 2001 Microsoft Corporation. All rights reserved.
'
'	File:	/NRConfig/AccessConfig/NTDomainAddAcceptor/
'			NTDomainAddAcceptor.asp
'
'	Author: Microsoft Corporation
'
'	Purpose:
'		Displays tree of visible Site Server NTDomains
'
'*****************************************************************************

' -- Create g_pASPPageManager to handle ASP Processing
Dim g_pASPPageManager

Set g_pASPPageManager = New CNCASPPageManager_NTDomainAddAcceptor
Call g_pASPPageManager.InitManager()

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Add Windows NT Domain</title>
	<link rel="StyleSheet" href="/NRConfig/Shared/Shared.css" type="text/css" >
	<script language="JavaScript" src="/NRConfig/Shared/Shared.js" type="text/javascript"></script>
	<script language="JavaScript" src="/NRConfig/AccessConfig/SupportedObjectsManipulate.js"></script>
</head>

<body bgcolor="#ffffff">

<script Language=JavaScript>
<!--

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

		alert("<%= g_pASPPageManager.Error %>");

	<% Else %>

		// clone the NTDomains Table from the Access dialog
		var g_pNTDomainsTable = window.top.SCA_cloneLatestSupportedNTDomainsTable();

		// Make sure this item is set to Selected state in the NTDomains Table
		g_pNTDomainsTable.SetObjectSelectedState( "<%= g_pASPPageManager.NewNTDomainName %>", "<%= g_pASPPageManager.NewNTDomainName %>", true );

		// update the Access dialog UI given this NTDomains Table
		window.top.SCA_updateLatestSupportedNTDomains( g_pNTDomainsTable );

		// clear the "Add" field
		window.top.SCA_clearNTDomainToAddField();


	<% End If %>

	SCA_setMouseIconToDefault( window.top );

// -->
</script>

</body>

</html>