<%
' ********************************************************************
' 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/PageOperation/AuthoringMode
'			PageSave/NewPageSaveDlg/NewPageSaveDlgHelper.inc
' Version: 	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Responsible for providing functions to write out the HTML for display
'
' ************************************************************************

' ---- [Public]	Write  out the posting name data
Sub WritePostingNameField(bCanSetName, pPosting, pSourceNode, lCodePage)

	Dim strName
	Dim pASPUtils
	
	Set pASPUtils = GetInitializedASPUtils()

	strName = pASPUtils.HTMLEncode(g_pASPPageManager.DefaultName)

	If bCanSetName Then %>
		<input type="text" name="<%= IDS_FORM_POSTING_NAME%>" size="40"
			value="<%= pASPUtils.MBCSWrite(strName, lCodePage) %>"><%
	Else
		Call pASPUtils.MBCSWrite(strName, lCodePage)
%>
		<input type="hidden" name="<%= IDS_FORM_POSTING_NAME%>" size="40"
			value="<%= strName %>"><%
	End If
End Sub


' ---- [Public]	Write  out the posting display name data
Sub WritePostingDisplayNameField(pPosting, pSourceNode, lCodePage)

	Dim strName
	Dim pASPUtils

	Set pASPUtils = GetInitializedASPUtils()

	strName = pASPUtils.HTMLEncode(g_pASPPageManager.DefaultDisplayName)
%>

	<input type="text" name="<%= IDS_FORM_POSTING_DISPLAYNAME%>" size="40"
			value="<%= pASPUtils.MBCSWrite(strName, lCodePage) %>"><%

End Sub


%>