<%@Import Namespace="Microsoft.ContentManagement.Publishing" %>
<%@ Page language="c#" Codebehind="OC.aspx.cs" AutoEventWireup="false" Inherits="Microsoft.ContentManagement.WebAuthor.CMS.OfficeWizard.OC" %>
<%@ Register TagPrefix="WebAuthor" Namespace="Microsoft.ContentManagement.WebAuthor" Assembly="Microsoft.ContentManagement.WebAuthor" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <title>OC</title>
        <META http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
        <meta content="C#" name="CODE_LANGUAGE">
        <meta content="JavaScript" name="vs_defaultClientScript">
        <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
        <script language="javascript" id="jsClient">

            function Finish()
            {
                if (OC.chkLaunchWebAuthor.checked)
                    window.open(OC.txtWbcUrl.value);
                window.external.Deactivate(2);
            }
            
            function GetContent(bPreview)
            {
                // disable preview/next button and display wait cursor
                OC.btnPreviewClient.disabled = true;
                OC.btnPreviewNextClient.disabled = true;
                document.body.style.cursor = "wait";

                // get html content of word doc if selected template has html placeholder 
                if (OC.chkHasContent.checked && "" == OC.tbxContent.value)
                    OC.tbxContent.value = window.external.HtmlDoc;

                // get attachment url of word doc if selected template has attachment placeholder
                if (OC.chkHasAttachment.checked && "" == OC.txtAttachUrl.value)
                    OC.txtAttachUrl.value = window.external.AttachUrl;

                // restore button and cursor
                OC.btnPreviewClient.disabled = false;
                OC.btnPreviewNextClient.disabled = false;
                document.body.style.cursor = "auto";

                if (bPreview)
                    OC.btnPreview.click();
                else
                {
                    window.external.Server = OC.txtCmsServerUrl.value;
                    OC.btnPreviewNext.click();
                }
            }

            function GoBackToClient()
            {
                history.go(Number(OC.txtHistoryCount.value));
            }

            function checkLength(src, len)
            {
                if (src.value.length > len)
                {
                    src.value = src.value.substr(0, len);
                }
            }

            function onTreeNodeClicked(path, oPath, guid, oGuid)
            {
                oPath.value = path;
                oGuid.value = guid;
            }

        </script>
        <% Response.Write(strStyleSheet); %>
    </HEAD>
    <body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" MS_POSITIONING="GridLayout" scroll="no" >
        <form language="javascript" id="OC" name="OC" method="post" runat="server">
            <!-- phState is the hidden block to persist server state that should not be visible to client -->
            <asp:PlaceHolder ID="phState" Runat="server" Visible="False">
                <input type="checkbox" id="chkCreateTmpPosting" name="chkCreateTmpPosting" checked runat="server">
            </asp:PlaceHolder>
            <!-- csform is the hidden form used for communication between office connector server and client -->
            <div id="csform" runat="server" style="DISPLAY:none">
                <!-- word document properties -->
                <input type="text" id="txtCmsServerUrl" name="txtCmsServerUrl" runat="server" />
                <input type="text" id="txtCmsPostingGuid" name="txtCmsPostingGuid" runat="server" />
                
                <input type="text" id="txtMode" name="txtMode" runat="server" />
                <input type="checkbox" id="chkSelection" name="chkSelection" runat="server" />
                <input type="text" id="txtTimeZoneOffset" name="txtTimeZoneOffset" runat="server" value="0" />
                
                <input type="text" id="txtPreviewUrl" name="txtPreviewUrl" runat="server" />
                <input type="text" id="txtWbcUrl" name="txtWbcUrl" runat="server" />
                
                <input type="checkbox" id="chkHasContent" name="chkHasContent" runat="server" />
                <input type="checkbox" id="chkHasAttachment" name="chkHasAttachment" runat="server" />
                <asp:TextBox ID="tbxContent" Runat="server" AutoPostBack="True"></asp:TextBox>
                <input type="text" id="txtAttachUrl" name="txtAttachUrl" runat="server" />
                <button id="btnPreview" style="width: 125px;" runat="server"><u>P</u>review Page...</button>
                <button id="btnPreviewNext" runat="server"><u>N</u>ext</button>
                <input type="text" id="txtCmsTmpPostingGuid" name="txtCmsTmpPostingGuid" runat="server" />

                <input type="text" id="txtHistoryCount" name="txtHistoryCount" runat="server" value="0" />
                <input type="text" id="txtOfficeUILanguage" name="txtOfficeUILanguage" runat="server" value="0" />
                <input type="text" id="txtUserDefaultLCID" name="txtUserDefaultLCID" runat="server" value="0" />
            </div>
            <table id="pnlSelectTask" runat="server" Visible="False" cellSpacing="0" cellPadding="0" width="484" border="0">
                <TBODY>
                    <tr height="60" class="Title">
                        <td style="PADDING-RIGHT: 16px; PADDING-LEFT: 20px">
                            <table cellSpacing="0" cellPadding="0" width="448" border="0">
                                <tr>
                                    <td style="PADDING-TOP: 9px">
                                        <asp:label id="Label16" runat="server">
                                            <b>Publishing Task</b>
                                        </asp:label>
                                    </td>
                                    <td style="WIDTH: 49px; PADDING-TOP: 5px; HEIGHT: 49px; align: right" rowSpan="2"><IMG src="smallpub.bmp"></td>
                                </tr>
                                <tr height="30">
                                    <td style="PADDING-RIGHT: 8px; PADDING-LEFT: 16px; VERTICAL-ALIGN: top"><asp:label id="Label17" runat="server">Select a publishing task from the list.</asp:label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="284">
                        <td style="PADDING-RIGHT: 36px; PADDING-LEFT: 36px; BACKGROUND: buttonface; WIDTH: 412px; PADDING-TOP: 8px">
                            <table cellSpacing="0" cellPadding="0">
                                <tr>
                                    <td><asp:label id="Label18" runat="server"><u>S</u>elect a publishing task:</asp:label></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:listbox id="lbxPubTask" accessKey="S" runat="server" Width="100%" Height="88" AutoPostBack="True" HideFocus="true"></asp:listbox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px"><asp:label id="Label19" runat="server">Description of publishing task:</asp:label></td>
                                </tr>
                                <tr>
                                    <td><asp:label id="lblTaskDescription" runat="server" style="width:100%; height:46px; word-wrap: break-word; word-break: break-all; overflow:auto" BorderColor="Gainsboro" BorderStyle="Solid"></asp:label></td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px"><asp:label id="Label20" runat="server">Option: To manually enter the path and name of a channel and template instead of using a publishing task, select Manual entry of channel and template and click Next.</asp:label></td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px"><asp:checkbox id="chkManualEntry" accessKey="M" runat="server" AutoPostBack="True" Text="<u>M</u>anual entry of channel and template"></asp:checkbox></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; align: middle">
                            <hr width="476" size="1">
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; TEXT-ALIGN: right">
                            <table cellSpacing="0" cellPadding="0">
                                <tr height="32">
                                    <td style="PADDING-RIGHT: 4px"><button id="btnSelectTaskBack" accessKey="B" runat="server" CausesValidation="false" language="javascript" onclick="GoBackToClient();">&lt; <u>B</u>ack</button></td>
                                    <td style="PADDING-RIGHT: 4px"><button id="btnSelectTaskNext" accessKey="N" runat="server"><u>N</u>ext &gt;</button></td>
                                    <td style="PADDING-RIGHT: 16px"><button id="btnSelectTaskCancel" runat="server" CausesValidation="false">Cancel</button></td>
                                </tr>
                            </table>
                            <script language="javascript">
                                // always set focus to the listbox if it is enabled.
                                if (!OC.lbxPubTask.isDisabled)
                                    OC.lbxPubTask.focus();
                                else
                                    OC.btnSelectTaskNext.focus();
                            </script>
                        </td>
                    </tr>
                </TBODY>
            </table>
            <table id="pnlSelectPage" runat="server" Visible="False" cellSpacing="0" cellPadding="0" width="484" border="0">
                <TBODY>
                    <tr height="60" class="Title">
                        <td style="PADDING-RIGHT: 16px; PADDING-LEFT: 20px">
                            <table cellSpacing="0" cellPadding="0" width="448" border="0">
                                <tr>
                                    <td style="PADDING-TOP: 9px">
                                        <asp:label id="Label61" runat="server">
                                            <b>Page to Replace</b>
                                        </asp:label>
                                    </td>
                                    <td style="WIDTH: 49px; PADDING-TOP: 5px; HEIGHT: 49px; align: right" rowSpan="2"><IMG src="smallpub.bmp"></td>
                                </tr>
                                <tr height="30">
                                    <td style="PADDING-RIGHT: 8px; PADDING-LEFT: 16px; VERTICAL-ALIGN: top"><asp:label id="Label62" runat="server">Browse and select a Web page to replace, or enter the complete path.</asp:label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="284">
                        <td style="PADDING-RIGHT: 36px; PADDING-LEFT: 36px; BACKGROUND: buttonface; WIDTH: 412px; PADDING-TOP: 8px">
                            <table cellSpacing="0" cellPadding="0">
                                <tr>
                                    <td><asp:label id="Label63" runat="server"><u>S</u>elect page:</asp:label></td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px">
                                        <div style="height:150; width:380; overflow:auto">
                                            <WebAuthor:ChannelTree id="postingTree" runat="server" accesskey="S">
                                                <ChannelTemplate>
                                                    <a href='#' style="font-size:8pt; font-family: tahoma; background:buttonface; color:#0000CC; text-decoration:none">
                                                        <%# Server.HtmlEncode(Container.Channel.DisplayName) %>
                                                    </a>
                                                </ChannelTemplate>
                                                <PostingTemplate>
                                                    <a href='#' style="font-size:8pt; font-family: tahoma; background:buttonface; color:#0000CC; text-decoration:none"
                                                        onclick='onTreeNodeClicked("<%# Container.Posting.Path %>", OC.tbxPage,
                                                        "<%# Container.Posting.Guid %>", OC.tbxPageGuid );return false;'>
                                                        <%# Server.HtmlEncode(Container.Posting.DisplayName) %>
                                                    </a>
                                                </PostingTemplate>
                                            </WebAuthor:ChannelTree>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px"><asp:label id="Label64" runat="server"><u>W</u>eb page path:</asp:label></td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="hidden" id="tbxPageGuid" runat="server" MaxLength=256 />
                                        <asp:textbox id="tbxPage" runat="server" accessKey="W" Height="20" Width="380" MaxLength=256></asp:textbox>
                                        <asp:RequiredFieldValidator ID="valReqPage" Runat="server" Display="Dynamic" ControlToValidate="tbxPage" EnableViewState="False" EnableClientScript="False" ErrorMessage=" - You must select a page">*</asp:RequiredFieldValidator>
                                        <asp:CustomValidator id="valPage" runat="server" Display="Dynamic" ControlToValidate="tbxPage" EnableViewState="False" EnableClientScript="False" ErrorMessage=" - Invalid page path">*</asp:CustomValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:ValidationSummary id="valPageSummary" runat="server" Width="400px" Height="40px" DisplayMode="List" style="PADDING-TOP: 10px; overflow:auto" EnableViewState="False" HeaderText="The following errors were found on this page:" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; align: middle">
                            <hr width="476" size="1">
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; TEXT-ALIGN: right">
                            <table cellSpacing="0" cellPadding="0">
                                <tr height="32">
                                    <td style="PADDING-RIGHT: 4px"><button id="btnSelectPageBack" accessKey="B" runat="server" CausesValidation="false" language="javascript" onclick="GoBackToClient();">&lt; <u>B</u>ack</button></td>
                                    <td style="PADDING-RIGHT: 4px"><button id="btnSelectPageNext" accessKey="N" runat="server"><u>N</u>ext &gt;</button></td>
                                    <td style="PADDING-RIGHT: 16px"><button id="btnSelectPageCancel" runat="server" CausesValidation="false">Cancel</button></td>
                                </tr>
                                <script language="javascript">
                                    OC.btnSelectPageNext.setActive(); // set next button as default button
                                </script>
                            </table>
                        </td>
                    </tr>
                </TBODY>
            </table>
            <table id="pnlChannel" runat="server" Visible="False" cellSpacing="0" cellPadding="0" width="484" border="0">
                <TBODY>
                    <tr height="60" class="Title">
                        <td style="PADDING-RIGHT: 16px; PADDING-LEFT: 20px">
                            <table cellSpacing="0" cellPadding="0" width="448" border="0">
                                <tr>
                                    <td style="PADDING-TOP: 9px">
                                        <asp:label id="Label21" runat="server">
                                            <b>Channel Information</b>
                                        </asp:label>
                                    </td>
                                    <td style="WIDTH: 49px; PADDING-TOP: 5px; HEIGHT: 49px; align: right" rowSpan="2"><IMG src="smallpub.bmp"></td>
                                </tr>
                                <tr height="30">
                                    <td style="PADDING-RIGHT: 8px; PADDING-LEFT: 16px; VERTICAL-ALIGN: top"><asp:label id="Label22" runat="server">Browse to a channel or enter the complete path.</asp:label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="284">
                        <td style="PADDING-RIGHT: 36px; PADDING-LEFT: 36px; BACKGROUND: buttonface; WIDTH: 412px; PADDING-TOP: 8px">
                            <table cellSpacing="0" cellPadding="0">
                                <tr>
                                    <td><asp:label id="Label23" runat="server" ><u>S</u>elect channel:</asp:label></td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px">
                                        <div style="height:150; width:380; overflow:auto;">
                                            <WebAuthor:ChannelTree id="channelTree" runat="server" accesskey="S" >
                                                <ChannelTemplate>
                                                    <a href='#' style="font-size:8pt; font-family: tahoma; background:buttonface; color:#0000CC; text-decoration:none"
                                                        onclick='onTreeNodeClicked("<%# Container.Channel.Path %>", OC.tbxChannel,
                                                        "<%# Container.Channel.Guid %>", OC.tbxChannelGuid );return false;'>
                                                        <%# Server.HtmlEncode(Container.Channel.DisplayName) %>
                                                    </a>
                                                </ChannelTemplate>
                                            </WebAuthor:ChannelTree>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px"><asp:label id="Label24" runat="server"><u>C</u>hannel path:</asp:label></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:textbox id="tbxChannel" runat="server" accessKey="C" Height="20" Width="380px" MaxLength=256></asp:textbox>
                                        <input type="hidden" id="tbxChannelGuid" runat="server" MaxLength=256 />
                                        <asp:RequiredFieldValidator ID="valReqChannel" Runat="server" Display="Dynamic" ControlToValidate="tbxChannel" EnableViewState="False" EnableClientScript="False" ErrorMessage=" - You must select a channel">*</asp:RequiredFieldValidator>
                                        <asp:CustomValidator id="valChannel" runat="server" Display="Dynamic" ControlToValidate="tbxChannel" EnableViewState="False" EnableClientScript="False" ErrorMessage=" - Invalid channel path">*</asp:CustomValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 10px">
                                        <asp:ValidationSummary id="valChannelSummary" runat="server" Width="400px" Height="40px" style="overflow:auto" DisplayMode="List" EnableViewState="False" HeaderText="The following errors were found on this page:" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; align: middle">
                            <hr width="476" size="1">
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; TEXT-ALIGN: right">
                            <table cellSpacing="0" cellPadding="0">
                                <tr height="32">
                                    <td style="PADDING-RIGHT: 4px"><button id="btnChannelBack" accessKey="B" runat="server" CausesValidation="false">&lt; <u>B</u>ack</button></td>
                                    <td style="PADDING-RIGHT: 4px"><button id="btnChannelNext" accessKey="N" runat="server"><u>N</u>ext &gt;</button></td>
                                    <td style="PADDING-RIGHT: 16px"><button id="btnChannelCancel" runat="server" CausesValidation="false">Cancel</button></td>
                                </tr>
                                <script language="javascript">
                                    OC.btnChannelNext.setActive(); // set next button as default button
                                </script>
                            </table>
                        </td>
                    </tr>
                </TBODY>
            </table>
            <table id="pnlTemplate" runat="server" Visible="False" cellSpacing="0" cellPadding="0" width="484" border="0">
                <TBODY>
                    <tr height="60" class="Title">
                        <td style="PADDING-RIGHT: 16px; PADDING-LEFT: 20px">
                            <table cellSpacing="0" cellPadding="0" width="448" border="0">
                                <tr>
                                    <td style="PADDING-TOP: 9px">
                                        <asp:label id="Label71" runat="server">
                                            <b>Template Information</b>
                                        </asp:label>
                                    </td>
                                    <td style="WIDTH: 49px; PADDING-TOP: 5px; HEIGHT: 49px; align: right" rowSpan="2"><IMG src="smallpub.bmp"></td>
                                </tr>
                                <tr height="30">
                                    <td style="PADDING-RIGHT: 8px; PADDING-LEFT: 16px; VERTICAL-ALIGN: top"><asp:label id="Label72" runat="server">Browse to a template or enter the complete path.</asp:label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="284">
                        <td style="PADDING-RIGHT: 36px; PADDING-LEFT: 36px; BACKGROUND: buttonface; WIDTH: 412px; PADDING-TOP: 8px">
                            <table cellSpacing="0" cellPadding="0">
                                <tr>
                                    <td><asp:label id="Label73" runat="server" ><u>S</u>elect template:</asp:label></td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px">
                                        <div style="height:150; width:380; overflow:auto;" >
                                            <WebAuthor:TemplateGalleryTree id="templateTree" runat="server" accesskey="S">
                                                <TemplateGalleryTemplate>
                                                    <a href='#' style="font-size:8pt; font-family: tahoma; background:buttonface; color:#0000CC; text-decoration:none">
                                                        <%# Server.HtmlEncode(Container.TemplateGallery.Name) %>
                                                    </a>
                                                </TemplateGalleryTemplate>
                                                <TemplateTemplate>
                                                    <a href='#' style="font-size:8pt; font-family: tahoma; background:buttonface; color:#0000CC; text-decoration:none"
                                                        onclick='onTreeNodeClicked("<%# Container.Template.Path %>", OC.tbxTemplate,
                                                        "<%# Container.Template.Guid %>", OC.tbxTemplateGuid );return false;'>
                                                        <%# Server.HtmlEncode(Container.Template.Name) %>
                                                    </a>
                                                </TemplateTemplate>
                                            </WebAuthor:TemplateGalleryTree>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px"><asp:label id="Label75" runat="server"><u>T</u>emplate path:</asp:label></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:textbox id="tbxTemplate" runat="server" accessKey="T" Height="20px" Width="380" MaxLength=256></asp:textbox>
                                        <input type=hidden id="tbxTemplateGuid" runat="server" MaxLength=256 />
                                        <asp:RequiredFieldValidator ID="valReqTemplate" Runat="server" Display="Dynamic" ControlToValidate="tbxTemplate" EnableViewState="False" EnableClientScript="False" ErrorMessage=" - You must select a template">*</asp:RequiredFieldValidator>
                                        <asp:CustomValidator id="valTemplate" runat="server" Display="Dynamic" ControlToValidate="tbxTemplate" EnableViewState="False" EnableClientScript="False" ErrorMessage=" - Invalid template path">*</asp:CustomValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 10px">
                                        <asp:ValidationSummary id="valTemplateSummary" runat="server" Width="400px" Height="40px" style="overflow:auto" DisplayMode="List" EnableViewState="False" HeaderText="The following errors were found on this page:" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; align: middle">
                            <hr width="476" size="1">
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; TEXT-ALIGN: right">
                            <table cellSpacing="0" cellPadding="0">
                                <tr height="32">
                                    <td style="PADDING-RIGHT: 4px"><button id="btnTemplateBack" accessKey="B" runat="server" CausesValidation="false">&lt; <u>B</u>ack</button></td>
                                    <td style="PADDING-RIGHT: 4px"><button id="btnTemplateNext" accessKey="N" runat="server"><u>N</u>ext &gt;</button></td>
                                    <td style="PADDING-RIGHT: 16px"><button id="btnTemplateCancel" runat="server" CausesValidation="false">Cancel</button></td>
                                </tr>
                                <script language="javascript">
                                    OC.btnTemplateNext.setActive(); // set next button as default button
                                </script>
                            </table>
                        </td>
                    </tr>
                </TBODY>
            </table>
            <table id="pnlPageInfo" cellSpacing="0" cellPadding="0" width="484" border="0" runat="server" Visible="False">
                <TBODY>
                    <tr height="60" class="Title">
                        <td style="PADDING-RIGHT: 16px; PADDING-LEFT: 20px">
                            <table cellSpacing="0" cellPadding="0" width="448" border="0">
                                <tr>
                                    <td style="PADDING-TOP: 9px">
                                        <asp:label id="Label26" runat="server">
                                            <b>Page Information</b>
                                        </asp:label>
                                    </td>
                                    <td style="WIDTH: 49px; PADDING-TOP: 5px; HEIGHT: 49px; align: right" rowSpan="2"><IMG src="smallpub.bmp"></td>
                                </tr>
                                <tr height="30">
                                    <td style="PADDING-RIGHT: 8px; PADDING-LEFT: 16px; VERTICAL-ALIGN: top">
                                        <asp:label id="Label27" runat="server">Enter the Web page information.</asp:label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="284">
                        <td style="PADDING-RIGHT: 36px; PADDING-LEFT: 36px; BACKGROUND: buttonface; WIDTH: 412px; PADDING-TOP: 8px">
                            <table cellSpacing="0" cellPadding="0">
                                <tr>
                                    <td><asp:label id="Label28" runat="server"><u>P</u>age name (required):</asp:label></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:textbox id="tbxPageName" runat="server" accessKey="P" Height="20" Width="352px" MaxLength="100"></asp:textbox>
                                        <asp:RequiredFieldValidator ID="valReqPageName" Runat="server" Display="Dynamic" ControlToValidate="tbxPageName" EnableViewState="False" EnableClientScript="False" ErrorMessage=" - You must type in a page name">*</asp:RequiredFieldValidator>
                                        <asp:CustomValidator id="valPageName" Runat="server" Display="Dynamic" ControlToValidate="tbxPageName" EnableViewState="False" EnableClientScript="False" ErrorMessage=" - Invalid page name" >*</asp:CustomValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px"><asp:label id="Label29" runat="server"><u>T</u>itle to appear on Web page:</asp:label></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:textbox id="tbxPageTitle" runat="server" accessKey="T" Height="20px" Width="352px" MaxLength="250"></asp:textbox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 8px"><asp:checkbox id="chkNameTitle" accessKey="M" runat="server" AutoPostBack="True" Text="<u>M</u>ake the title the same as the page name"></asp:checkbox></td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px"><asp:label id="Label30" runat="server">Page <u>d</u>escription:</asp:label></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:textbox id="tbxPageDescription" runat="server" accessKey="d" Height="44px" Width="352px" Wrap="True"
                                          TextMode="MultiLine" onkeypress="checkLength(this, 256)" onchange="checkLength(this, 256)"></asp:textbox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 10px">
                                        <asp:ValidationSummary id="valPageInfoSummary" runat="server" Width="400px" Height="40px" DisplayMode="List" EnableViewState="False" HeaderText="The following errors were found on this page:" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; align: middle">
                            <hr width="476" size="1">
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; TEXT-ALIGN: right">
                            <table cellSpacing="0" cellPadding="0">
                                <tr height="32">
                                    <td style="PADDING-RIGHT: 4px"><button id="btnPageInfoBack" accessKey="B" runat="server" CausesValidation="false">&lt; <u>B</u>ack</button></td>
                                    <td style="PADDING-RIGHT: 4px"><button id="btnPageInfoNext" accessKey="N" runat="server"><u>N</u>ext &gt;</button></td>
                                    <td style="PADDING-RIGHT: 16px"><button id="btnPageInfoCancel" runat="server" CausesValidation="false">Cancel</button></td>
                                </tr>
                                <script language="javascript">
                                    OC.btnPageInfoNext.setActive(); // set next button as default button
                                </script>
                            </table>
                        </td>
                    </tr>
                </TBODY>
            </table>
            <table id="pnlTime" cellSpacing="0" cellPadding="0" width="484" border="0" runat="server" Visible="False">
                <TBODY>
                    <tr height="60" class="Title">
                        <td style="PADDING-RIGHT: 16px; PADDING-LEFT: 20px">
                            <table cellSpacing="0" cellPadding="0" width="448" border="0">
                                <tr>
                                    <td style="PADDING-TOP: 9px">
                                        <asp:label id="Label33" runat="server">
                                            <b>Publishing Dates and Times</b>
                                        </asp:label>
                                    </td>
                                    <td style="WIDTH: 49px; PADDING-TOP: 5px; HEIGHT: 49px; align: right" rowSpan="2"><IMG src="smallpub.bmp"></td>
                                </tr>
                                <tr height="30">
                                    <td style="PADDING-RIGHT: 8px; PADDING-LEFT: 16px; VERTICAL-ALIGN: top">
                                        <asp:label id="Label34" runat="server">Request the dates and times to publish your page.</asp:label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="284">
                        <td style="PADDING-RIGHT: 36px; PADDING-LEFT: 36px; BACKGROUND: buttonface; WIDTH: 412px; PADDING-TOP: 8px">
                            <table cellSpacing="0" cellPadding="0">
                                <tr>
                                    <td colSpan="2"><asp:label id="Label35" runat="server">Start:</asp:label></td>
                                </tr>
                                <tr>
                                    <td><asp:radiobutton id="rbnStartImmediately" accessKey="m" runat="server" Text="I<u>m</u>mediately" GroupName="StartDate"></asp:radiobutton></td>
                                </tr>
                                <tr>
                                    <td><asp:radiobutton id="rbnStartDate" accessKey="D" runat="server" Width="100" Text="<u>D</u>ate and time" GroupName="StartDate"></asp:radiobutton></td>
                                    <td>
                                        <asp:textbox id="tbxStartDate" runat="server" Height="20px" Width="180px" MaxLength=256></asp:textbox>
                                        <asp:CustomValidator id="valStartDate" runat="server" Display="Dynamic" ControlToValidate="tbxStartDate" EnableViewState="False" EnableClientScript="False" ErrorMessage=" - Invalid Start Time">*</asp:CustomValidator>
                                        <asp:imagebutton id="ibnStartDate" runat="server" ImageUrl="calendar.bmp" style="vertical-align:middle; padding-bottom:2px"></asp:imagebutton>
                                        <span style="LEFT: 0px; POSITION: relative; TOP: 0px">
                                            <asp:calendar id="calStartDate" style="Z-INDEX: 120; LEFT: -180px; POSITION: absolute; TOP: 24px; width:180px; height:150px" runat="server" Visible="False" BackColor="ButtonFace"></asp:calendar>
                                        </span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px" colSpan="2"><asp:label id="Label36" runat="server">End:</asp:label></td>
                                </tr>
                                <tr>
                                    <td><asp:radiobutton id="rbnEndNever" accessKey="e" runat="server" Text="N<u>e</u>ver" GroupName="EndDate"></asp:radiobutton></td>
                                </tr>
                                <tr>
                                    <td><asp:radiobutton id="rbnEndDate" accessKey="a" runat="server" Width="100" Text="D<u>a</u>te and time" GroupName="EndDate"></asp:radiobutton></td>
                                    <td>
                                        <asp:textbox id="tbxEndDate" runat="server" Height="20px" Width="180" MaxLength=256></asp:textbox>
                                        <asp:CustomValidator id="valEndDate" runat="server" Display="Dynamic" ControlToValidate="tbxEndDate" EnableViewState="False" EnableClientScript="False" ErrorMessage=" - Invalid End Time">*</asp:CustomValidator>
                                        <asp:imagebutton id="ibnEndDate" runat="server" ImageUrl="calendar.bmp" style="vertical-align:middle; padding-bottom:2px"></asp:imagebutton>
                                        <span style="LEFT: 0px; POSITION: relative; TOP: 0px">
                                            <asp:calendar id="calEndDate" style="Z-INDEX: 120; LEFT: -180px; POSITION: absolute; TOP: 24px; width:180px; height:150px" runat="server" Visible="False" BackColor="ButtonFace"></asp:calendar>
                                        </span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 18px" colSpan="3"><asp:label id="Label37" runat="server" width="400">Option: Select advanced page properties to set optional page attributes and custom properties.</asp:label></td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 10px" colSpan="3"><asp:checkbox id="chkPageDetails" accessKey="v" runat="server" Text="Ad<u>v</u>anced page properties"></asp:checkbox></td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 10px" colspan="3">
                                        <asp:ValidationSummary id="valTimeSummary" runat="server" Width="400px" Height="40px" DisplayMode="List" EnableViewState="False" HeaderText="The following errors were found on this page:" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; align: middle">
                            <hr width="476" size="1">
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; TEXT-ALIGN: right">
                            <table cellSpacing="0" cellPadding="0">
                                <tr height="32">
                                    <td style="PADDING-RIGHT: 4px"><button id="btnTimeBack" accessKey="B" runat="server" CausesValidation="false">&lt; <u>B</u>ack</button></td>
                                    <td style="PADDING-RIGHT: 4px"><button id="btnTimeNext" accessKey="N" runat="server"><u>N</u>ext &gt;</button></td>
                                    <td style="PADDING-RIGHT: 16px"><button id="btnTimeCancel" runat="server" CausesValidation="false">Cancel</button></td>
                                </tr>
                                <script language="javascript">
                                    OC.btnTimeNext.setActive(); // set next button as default button
                                </script>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                    </tr>
                </TBODY>
            </table>
            <table id="pnlDetails" cellSpacing="0" cellPadding="0" width="484" border="0" runat="server" Visible="False">
                <TBODY>
                    <tr height="60" class="Title">
                        <td style="PADDING-RIGHT: 16px; PADDING-LEFT: 20px">
                            <table cellSpacing="0" cellPadding="0" width="448" border="0">
                                <tr>
                                    <td style="PADDING-TOP: 9px">
                                        <asp:label id="Label38" runat="server">
                                            <b>Advanced Page Properties</b>
                                        </asp:label>
                                    </td>
                                    <td style="WIDTH: 49px; PADDING-TOP: 5px; HEIGHT: 49px; align: right" rowSpan="2"><IMG src="smallpub.bmp"></td>
                                </tr>
                                <tr height="30">
                                    <td style="PADDING-RIGHT: 8px; PADDING-LEFT: 16px; VERTICAL-ALIGN: top"><asp:label id="Label39" runat="server">Select page attributes or custom properties.</asp:label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="284">
                        <td style="PADDING-RIGHT: 36px; PADDING-LEFT: 36px; BACKGROUND: buttonface; WIDTH: 412px; PADDING-TOP: 8px">
                            <table cellSpacing="0" cellPadding="0">
                                <tr>
                                    <td><asp:label id="Label41" runat="server">Page attributes:</asp:label></td>
                                </tr>
                                <tr>
                                    <td><asp:checkbox id="chkImportant" accessKey="M" runat="server" Height="20px" Text="<u>M</u>ark page as special page"></asp:checkbox></td>
                                </tr>
                                <tr>
                                    <td><asp:checkbox id="chkAllowCrawl" accessKey="A" runat="server" Height="20px" Text="<u>A</u>llow Web robots to crawl links"></asp:checkbox></td>
                                </tr>
                                <tr>
                                    <td><asp:checkbox id="chkHidePage" accessKey="H" runat="server" Height="20px" Text="<u>H</u>ide page from subscriber when published"></asp:checkbox></td>
                                </tr>
                                <tr>
                                    <td><asp:checkbox id="chkAllowIndex" accessKey="w" runat="server" Height="20" Text="Allo<u>w</u> Web robots to index this page"></asp:checkbox></td>
                                </tr>
                            </table>
                            <table cellSpacing="0" cellPadding="0">
                                <tr style="PADDING-TOP: 12px">
                                    <td colSpan="3"><asp:label id="lblCustProps" runat="server"><u>C</u>ustom properties:</asp:label></td>
                                </tr>
                                <tr>
                                    <td>
                                        <div style="height:150; width:420; overflow:auto">
                                            <asp:datagrid id="dgrdCustProps" runat="server" AutoGenerateColumns="False" accessKey="C" style="overflow:auto">
                                                <HeaderStyle BackColor="CornflowerBlue"></HeaderStyle>
                                                <AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle>
                                                <Columns>
                                                    <asp:TemplateColumn HeaderText="Name" ItemStyle-BackColor="Silver">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblCustPropName" Runat="server" MaxLength="256" style="min-width:50; max-width:100; word-wrap: break-word; word-break: break-all"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateColumn>
                                                    <asp:TemplateColumn HeaderText="Type">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblCustPropType" Runat="server" ></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateColumn>
                                                    <asp:TemplateColumn HeaderText="Use Default">
                                                        <ItemTemplate>
                                                            <asp:DropDownList ID="ddlUsesDefaultValue" runat="server" AutoPostBack="True">
                                                                <asp:ListItem Value="True"></asp:ListItem>
                                                                <asp:ListItem Value="False"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </ItemTemplate>
                                                    </asp:TemplateColumn>
                                                    <asp:TemplateColumn HeaderText="Current Value">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="tbxCurValue" runat="server" Wrap="True" MaxLength="2000" />
                                                            <asp:DropDownList ID="ddlCurValue" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateColumn>
                                                    <asp:TemplateColumn HeaderText="Default Value">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDefValue" Runat="server" MaxLength="2000" style="word-wrap: break-word; word-break: break-all"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateColumn>
                                                </Columns>
                                            </asp:datagrid>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; align: middle">
                            <hr width="476" size="1">
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; TEXT-ALIGN: right">
                            <table cellSpacing="0" cellPadding="0">
                                <tr height="32">
                                    <td style="PADDING-RIGHT: 4px"><button id="btnDetailsBack" accessKey="B" runat="server" CausesValidation="false">&lt; <u>B</u>ack</button></td>
                                    <td style="PADDING-RIGHT: 4px"><button id="btnDetailsNext" accessKey="N" runat="server"><u>N</u>ext &gt;</button></td>
                                    <td style="PADDING-RIGHT: 16px"><button id="btnDetailsCancel" runat="server" CausesValidation="false">Cancel</button></td>
                                </tr>
                                <script language="javascript">
                                    OC.btnDetailsNext.setActive(); // set next button as default button
                                </script>
                            </table>
                        </td>
                    </tr>
                </TBODY>
            </table>
            <table id="pnlPreview" cellSpacing="0" cellPadding="0" width="484" border="0" runat="server" Visible="False">
                <TBODY>
                    <tr height="60" class="Title">
                        <td style="PADDING-RIGHT: 16px; PADDING-LEFT: 20px">
                            <table cellSpacing="0" cellPadding="0" width="448" border="0">
                                <tr>
                                    <td style="PADDING-TOP: 9px">
                                        <asp:label id="Label42" runat="server">
                                            <b>Page Submission</b>
                                        </asp:label>
                                    </td>
                                    <td style="WIDTH: 49px; PADDING-TOP: 5px; HEIGHT: 49px; align: right" rowSpan="2"><IMG src="smallpub.bmp"></td>
                                </tr>
                                <tr height="30">
                                    <td style="PADDING-RIGHT: 8px; PADDING-LEFT: 16px; VERTICAL-ALIGN: top"><asp:label id="Label43" runat="server">Submit your document to the Web site.</asp:label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="284">
                        <td style="PADDING-RIGHT: 36px; PADDING-LEFT: 36px; BACKGROUND: buttonface; WIDTH: 412px; PADDING-TOP: 8px">
                            <table cellSpacing="0" cellPadding="0">
                                <tr>
                                    <td>
                                        <asp:label id="Label45" runat="server">To preview in your local browser, click Preview Page.</asp:label>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-TOP: 12px">
                                        <button id="btnPreviewClient" accessKey="<% Response.Write(strbtnPreviewClientAccessKey); %>" onclick="GetContent(true)" style="<% Response.Write(strbtnPreviewClientStyle); %>"><% Response.Write(strbtnPreviewClient); %></button>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table cellSpacing="0" cellPadding="0">
                                            <tr>
                                                <td style="PADDING-BOTTOM:8px; PADDING-TOP:12px" colSpan="2">
                                                    <asp:label id="Label1" runat="server">Review page information. To make changes, click Back. To submit page for publication, click Submit.</b></asp:label>
                                                </td>
                                            </tr>
                                            <tr style="PADDING-RIGHT: 8px; PADDING-BOTTOM: 8px">
                                                <td><asp:label id="Label2" runat="server" Width="150">N<u>a</u>me:</asp:label></td>
                                                <td><asp:textbox id="lblPageName" accessKey="a" runat="server" wrap="false" readonly="true" MaxLength=256></asp:textbox></td>
                                            </tr>
                                            <tr style="PADDING-RIGHT: 8px; PADDING-BOTTOM: 8px">
                                                <td><asp:label id="Label4" runat="server" Width="150"><u>D</u>isplay title:</asp:label></td>
                                                <td><asp:textbox id="lblPageTitle" accessKey="D" runat="server" wrap="false" readonly="true" MaxLength=256></asp:textbox></td>
                                            </tr>
                                            <tr style="PADDING-RIGHT: 8px; PADDING-BOTTOM: 8px">
                                                <td><asp:label id="Label6" runat="server" Width="150"><u>C</u>hannel:</asp:label></td>
                                                <td><asp:textbox id="lblChannel" accessKey="c" runat="server" wrap="false" readonly="true" MaxLength=256></asp:textbox></td>
                                            </tr>
                                            <tr style="PADDING-RIGHT: 8px; PADDING-BOTTOM: 8px">
                                                <td><asp:label id="Label8" runat="server" Width="150"><u>T</u>emplate:</asp:label></td>
                                                <td><asp:textbox id="lblTemplate" accessKey="T" runat="server" wrap="false" readonly="true" MaxLength=256></asp:textbox></td>
                                            </tr>
                                            <tr style="PADDING-RIGHT: 8px; PADDING-BOTTOM: 8px">
                                                <td><asp:label id="Label10" runat="server">Includes document content?</asp:label></td>
                                                <td>
                                                    <asp:label id="lblHasContentPhYes" runat="server">Yes</asp:label>
                                                    <asp:label id="lblHasContentPhNo" runat="server">No</asp:label>
                                                </td>
                                            </tr>
                                            <tr style="PADDING-RIGHT: 8px">
                                                <td><asp:label id="Label11" runat="server">Includes document as an attachment?</asp:label></td>
                                                <td>
                                                    <asp:label id="lblHasAttachPhYes" runat="server">Yes</asp:label>
                                                    <asp:label id="lblHasAttachPhNo" runat="server">No</asp:label>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; align: middle">
                            <hr width="476" size="1">
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; TEXT-ALIGN: right">
                            <table cellSpacing="0" cellPadding="0">
                                <tr height="32">
                                    <td style="PADDING-RIGHT: 4px"><button id="btnPreviewBack" accessKey="B" runat="server" CausesValidation="false">&lt; <u>B</u>ack</button></td>
                                    <td style="PADDING-RIGHT: 4px"><button id="btnPreviewNextClient" accessKey="<% Response.Write(strbtnPreviewNextClientAccessKey); %>" onclick="GetContent(false)"><% Response.Write(strbtnPreviewNextClient); %></button></td>
                                    <td style="PADDING-RIGHT: 16px"><button id="btnPreviewCancel" runat="server" CausesValidation="false">Cancel</button></td>
                                </tr>
                                <script language="javascript">
                                    OC.btnPreviewNextClient.setActive(); // set next button as default button
                                </script>
                            </table>
                        </td>
                    </tr>
                    <tr style="display:none">
                        <td>
                            <asp:PlaceHolder ID="phPreviewScript" Runat="server" Visible="False">
                                <SCRIPT language="javascript">
                                    window.open(OC.txtPreviewUrl.value);
                                </SCRIPT>
                            </asp:PlaceHolder>
                        </td>
                    </tr>
                </TBODY>
            </table>
            <table id="pnlError" runat="server" Visible="False" cellSpacing="0" cellPadding="0" width="484" border="0">
                <TBODY>
                    <tr height="60" class="Title">
                        <td style="PADDING-RIGHT: 16px; PADDING-LEFT: 20px">
                            <table cellSpacing="0" cellPadding="0" width="448" border="0">
                                <tr>
                                    <td style="PADDING-TOP: 9px">
                                        <asp:label id="Label46" runat="server">
                                            <b>Error</b>
                                        </asp:label>
                                    </td>
                                    <td style="WIDTH: 49px; PADDING-TOP: 5px; HEIGHT: 49px; align: right" rowSpan="2"><IMG src="smallpub.bmp"></td>
                                </tr>
                                <tr height="30">
                                    <td style="PADDING-RIGHT: 8px; PADDING-LEFT: 16px; VERTICAL-ALIGN: top"><asp:label id="Label47" runat="server">There was an error on last step. Please click Back to fix it, or click Cancel to exit publishing.</asp:label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr height="284">
                        <td style="PADDING-RIGHT: 36px; PADDING-LEFT: 36px; BACKGROUND: buttonface; WIDTH: 412px; PADDING-TOP: 8px">
                            <table cellSpacing="0" cellPadding="0">
                                <tr>
                                    <td>
                                        <asp:label id="lblErrorMessage" runat="server" Width="400px" Height="240px" style="word-wrap: break-word; word-break: break-all; text-overflow: ellipsis; overflow: auto">lblErrorMessage</asp:label><br>
                                        <asp:Label ID="lblPrevPage" Runat="server" Visible="False">lblPrevPage</asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; align: middle">
                            <hr width="476" size="1">
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; TEXT-ALIGN: right">
                            <table cellSpacing="0" cellPadding="0">
                                <tr height="32">
                                    <td style="PADDING-RIGHT: 4px"><button id="btnErrorBack" accessKey="B" runat="server" CausesValidation="false">&lt; <u>B</u>ack</button></td>
                                    <td style="PADDING-RIGHT: 4px"><button id="btnErrorNext" accessKey="N" runat="server" disabled><u>N</u>ext &gt;</button></td>
                                    <td style="PADDING-RIGHT: 16px"><button id="btnErrorCancel" runat="server" CausesValidation="false">Cancel</button></td>
                                </tr>
                                <script language="javascript">
                                    OC.btnErrorBack.setActive(); // set next button as default button
                                </script>
                            </table>
                        </td>
                    </tr>
                </TBODY>
            </table>
            <table id="pnlComplete" cellSpacing="0" cellPadding="0" width="484" border="0" runat="server" Visible="False">
                <TBODY>
                    <tr height="331">
                        <td>
                            <table cellSpacing="0" cellPadding="0" border="0">
                                <tr>
                                    <td style="VERTICAL-ALIGN: top" rowSpan="6"><IMG src="bigpub.bmp"></td>
                                </tr>
                                <tr>
                                    <td style="PADDING-RIGHT: 40px; PADDING-LEFT: 12px; PADDING-BOTTOM: 20px; PADDING-TOP: 16px" colSpan="4">
                                        <asp:label id="Label49" runat="server">
                                            <h2>Completing the Authoring Connector Wizard</h2>
                                        </asp:label>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-RIGHT: 40px; PADDING-LEFT: 12px; PADDING-BOTTOM: 12px" colSpan="4"><asp:label id="Label50" runat="server">Your document has been submitted for approval and publication.  Web publishing information has also been saved in your open document.</asp:label></td>
                                </tr>
                                <tr>
                                    <td style="PADDING-RIGHT: 40px; PADDING-LEFT: 12px; PADDING-BOTTOM: 8px" colSpan="4"><asp:label id="Label51" runat="server">Option: To close this wizard and view your page on the Web site, select Launch MCMS Web Author and click Finish.</asp:label></td>
                                </tr>
                                <tr>
                                    <td style="PADDING-RIGHT: 40px; PADDING-LEFT: 12px; PADDING-BOTTOM: 20px" colSpan="4">
                                        <input id="chkLaunchWebAuthor" accessKey="L" type="checkbox" runat="server" />
                                        <label for="chkLaunchWebAuthor"><% Response.Write(strchkLaunchWebAuthor); %></label>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="PADDING-RIGHT: 40px; PADDING-LEFT: 12px" colSpan="4"><asp:label id="Label52" runat="server">Option: To close this wizard and return to your document, click Finish.</asp:label></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; align: middle">
                            <hr width="476" size="1">
                        </td>
                    </tr>
                    <tr>
                        <td style="BACKGROUND: buttonface; WIDTH: 484px; TEXT-ALIGN: right">
                            <table cellSpacing="0" cellPadding="0">
                                <tr height="32">
                                    <td style="PADDING-RIGHT:4px"><button id="btnCompleteBack" accessKey="B" runat="server" CausesValidation="false" disabled>&lt; <u>B</u>ack</button></td>
                                    <td style="PADDING-RIGHT:4px"><button id="btnCompleteNext" accessKey="F" runat="server" onclick="Finish()"><u>F</u>inish</button></td>
                                    <td style="PADDING-RIGHT:16px"><button id="btnCompleteCancel" runat="server" disabled CausesValidation="false">Cancel</button></td>
                                </tr>
                                <script language="javascript">
                                    OC.btnCompleteNext.setActive(); // set next button as default button
                                </script>
                            </table>
                        </td>
                    </tr>
                </TBODY>
            </table>
            <asp:PlaceHolder ID="phEndScript" Runat="server" Visible="False">
                <SCRIPT language="javascript">
                    window.external.Deactivate(1);
                </SCRIPT>
            </asp:PlaceHolder>
        </form>
    </body>
</HTML>
