<%
' *****************************************************************************
'
' Copyright (C) 2001 Microsoft Corporation. All rights reserved.
'
'	This file define the set of Hook functions that can be customized to
'	override URL generations for WBC Edite Site Mode operations.
'
'	The set of Hook functions exposed are:
'
'	- Sub OnCustomizeConnectedPostingQuickJumpURL( ByVal pThis, ByRef strURL )
'	- Sub OnCustomizeDeleteURL( ByVal pThis, ByRef strURL )
'	- Sub OnCustomizePostingCopyURL( ByVal pThis, ByRef strURL )
'	- Sub OnCustomizePostingMoveURL( ByVal pThis, ByRef strURL )
'	- Sub OnCustomizeSubmitURL( ByVal pThis, ByRef strURL )
'	- Sub OnCustomizeApproveURL( ByVal pThis, ByRef strURL )
'	- Sub OnCustomizeDeclineURL( ByVal pThis, ByRef strURL )
'	- Sub OnCustomizePageRevisionReportURL( ByVal pThis, ByRef strURL )
'	- Sub OnCustomizePageRevisionByDateURL( ByVal pThis, ByRef strURL )
'	- Sub OnCustomizePostingPropertiesURL( ByVal pThis, ByRef strURL )
'	- Sub OnCustomizeChannelPropertiesURL( ByVal pThis, ByRef strURL )
'
' *****************************************************************************


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Go to Connected Page" dialog URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizeConnectedPostingQuickJumpURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Delete" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizeDeleteURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Copy" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizePostingCopyURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Move" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizePostingMoveURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Submit" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizeSubmitURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Approve" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizeApproveURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Decline" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizeDeclineURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Page Revision Report" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizePageRevisionReportURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Page Revision By Date" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizePageRevisionByDateURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Page Properties" link URL generation.
'
'	@pThis [in] - the current Posting
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizePostingPropertiesURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


' -----------------------------------------------------------------------------
'
'	This function is called to allow site designer to override the default
'	behavior of the "Channel Properties" link URL generation.
'
'	@pThis [in] - the current Channel
'
'	@strURL [in, out] - the default URL. Its value can be modified in this
'						function to alter the URL generated.
'
' -----------------------------------------------------------------------------
Sub OnCustomizeChannelPropertiesURL( ByVal pThis, ByRef strURL )
	' DEFAULT IMPLEMENTATION: do nothing so that URL remains unchanged


	' CUSTOM SCRIPT: modify strURL according to custom logic.
	' 	The following sample code propagates the "ProductID" querystring
	'	paramter in the current URL to the URL being generated

	'If (Request.QueryString("ProductID") <> "") Then
	'	Dim strCustomQueryString
	'	strCustomQueryString = "ProductID=" & Server.URLEncode(Request.QueryString("ProductID"))
	'	strURL = AppendQueryString( strURL, strCustomQueryString )
	'End If

End Sub


%>