<%@ Register tagprefix="WebAuthor" Tagname="DialogTitle" Src="..\..\..\..\..\Controls\DialogTitle.ascx" %>
<%@ Register TagPrefix="WebAuthor" Namespace="Microsoft.ContentManagement.WebAuthor" Assembly="Microsoft.ContentManagement.WebAuthor" %>
<%@ Page language="c#" Codebehind="NewPageSaveDlg.aspx.cs" AutoEventWireup="false" Inherits="Microsoft.ContentManagement.WebAuthor.NewPageSaveDlg" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <title>
            <%= IDS_UI_BROWSER_TITLE %>
        </title>
        <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" src="NewPageSaveDlg.js" type="text/javascript"></script>
        <script language="JavaScript" type="text/javascript">
        <!--
	        function WBC_CopyNameToDisplayName(strNameID, strDisplayNameID)
	        {
		        var pfrmNewPageSaveDlg;
		        pfrmNewPageSaveDlg = document.forms["NewPageSaveDlg"]
		        pfrmNewPageSaveDlg[strDisplayNameID].value = pfrmNewPageSaveDlg[strNameID].value;
		        return false;
	        }
	        function HandleKeyPress()
            {
                // If enter key is pressed then disregard
                // otherwise it causes an annoting beep
                if (window.event.keyCode == 13)
				{
					window.event.keyCode = 0;
				}
				
            }
        //-->
        </script>
    </HEAD>
    <BODY class=WBC_styclsTextColor0 bgColor="<%=IDS_BODYSETTING_BGCOLOR %>" 
                                    leftMargin="<%=IDS_BODYSETTING_LEFTMARGIN%>" 
                                    topMargin="<%= IDS_BODYSETTING_TOPMARGIN %>"
                                    onload='self.focus();WBC_onLoadHandler();'>
        <form id="NewPageSaveDlg" method="post" runat="server" onsubmit="return false;">
            <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                <!-- Set Dialog Title-->
                <tr>
                    <td colspan="3">
                        <WebAuthor:DialogTitle ID="title" runat="server"></WebAuthor:DialogTitle>
                    </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>
                <tr>
                    <td><img src="<%=IDS_TRANSPARENT_GIF%>"
						width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
                </tr>

                <!-- Show the Content area -->
                <tr>
                    <td><img src="<%=IDS_TRANSPARENT_GIF%>"
						width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
                </tr>
                <tr>
                    <td valign="top" class="WBC_styclsBackground1">
                        <table width="100%" border="0" cellspacing="2" cellpadding="5">
                            <tr class="WBC_styclsBackground2">
                                <td valign="top">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="5">
                                        <!-- Render URL name -->
                                        <tr valign="top">
                                            <td class="WBC_styclsHeavyTextColor1" width="30%"><%= IDS_UI_LABEL_NAME%></td>
                                            <td>
                                                <asp:TextBox ID="NC_intxtName" onkeypress="HandleKeyPress()" Columns="30" runat="server" />
                                            </td>
                                            <td>&nbsp;</td>
                                        </tr>
                                        <!-- Render Display name -->
                                        <tr valign="top">
                                            <td class="WBC_styclsHeavyTextColor1"><%= IDS_UI_LABEL_DISPLAY_NAME %></td>
                                            <td class="WBC_styclsTextColor1">
                                                <asp:TextBox ID="NC_intxtDisplayName" onkeypress="HandleKeyPress()" Columns="30" runat="server" />
                                            </td>
                                            <td>
                                                <a href="#" onclick="return WBC_CopyNameToDisplayName('<%=IDS_FORM_POSTING_NAME%>','<%=IDS_FORM_POSTING_DISPLAYNAME%>')">
                                                    <img name="NC_Reset" alt="" border="0" src="<%=IDS_PATH_IMAGES_COMMON_BUTTONS%><%=IDS_IMG_BTN_OFF_RESET%>"></a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">&nbsp;</td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>

                <tr>
                    <td><img src="<%=IDS_TRANSPARENT_GIF%>"
						width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
                </tr>
                <tr>
                    <td align="right">
                        <a href="#" onclick="WBC_onOkayClick(); return false;"><img name="NCImg_Confirm" src="<%= IDS_PATH_IMAGES_COMMON_BUTTONS%><%= IDS_IMG_BTN_OKAY%>" border="0" alt="OK"></a>
                        &nbsp;&nbsp;&nbsp; <a href="#" onclick="window.close(); return false;"><img name="NCImg_Cancel" src="<%=IDS_PATH_IMAGES_COMMON_BUTTONS%><%=IDS_IMG_BTN_CANCEL%>" border="0" alt="Cancel"></a>
                    </td>
                </tr>
            </table>
        </form>
    </BODY>
</HTML>
