<!--#include virtual="/NR/System/WBC/Internals/PageTemplate/PlaceholdersSupport/SetPosting.inc"-->
<%

' Check if in the right mode and if client is requesting us to accept any content
If (IsAuthPreview() = True) Then
	Call SetContentForAllEmittedPhs( AutoSession.ThisPosting )
End If
	
' ---- [Private] Return if current page is for previewing Posting being authored
Function IsAuthPreview()
	IsAuthPreview = ( AutoSession.IsModeUnpublished And _
						Request.QueryString(IDS_QPARAM_WBCACCEPT) = IDS_ACCEPTCONTENT_PHS )
End Function

' ---- [Public] Report about illegal content stripped out, if necessary
Sub EmbedWBCAuthPreviewReport
	' if ThisPosting does not exist OR not doing authoring preview, bail out
	If (AutoSession.ThisPosting Is Nothing) Or (Not IsAuthPreview) Then
		Exit Sub
	End If
	
	' use g_bFiltered from SetPosting.inc to detect whether 
	' any placeholder content has been filtered out
	If g_bFiltered Then
%>
		<script language="JavaScript" type="text/javascript">
		<!--
			alert(IDS_CONTENT_STRIPPED_FOR_PREVIEW);
		// -->
		</script>
<%	
	End If
End Sub
%>

