<%

' ---- [Public] Displays the "Preview" authoring link
Sub ShowAuthPreviewLink()
%><a target=IDS_WIN_PREVIEW href="#" onClick="WBC_onAuthPreview(<%=Bool2LCaseStr(AreAuthCmdsFunctional)%>);return false" ><%=IDS_UI_CONSOLE_PREVIEW%></a><%
End Sub

' ---- [Public] Displays the "Preview" authoring link
Sub ShowAuthPreviewConnectedLink
%><a target=IDS_WIN_PREVIEW href="#" onClick="WBC_openWindowOnFocus('<%=GetAuthPreviewConnectedDlgURL()%>',IDS_WIN_AUTHPREVIEW_CONNECTED_SELECTION_NAME, 
	WBC_getPoppedUpWindowFeatures(IDS_WIN_AUTHPREVIEW_CONNECTED_SELECTION_FEATURES, window.top));return false"><%=IDS_UI_CONSOLE_PREVIEW_CONNECTED%></a><%
End Sub

' ---- [Public] Displays the "Save" authoring link
Sub ShowAuthSaveLink()
%><a target="_self" href="#" onClick="WBC_onAuthSave(<%=Bool2LCaseStr(AreAuthCmdsFunctional)%>, '<%=GetAuthSaveURL%>', IDS_ACTION_SAVE);return false"><%=IDS_UI_CONSOLE_SAVE%></a><%
End Sub

' ---- [Public] Displays the "SaveAndExit" authoring link
Sub ShowAuthSaveAndExitLink()
%><a target="_self" href="#" onClick="WBC_onAuthSave(<%=Bool2LCaseStr(AreAuthCmdsFunctional)%>, '<%=GetAuthSaveAndExitURL%>', IDS_ACTION_SAVEANDEXIT);return false"><%=IDS_UI_CONSOLE_SAVEANDEXIT%></a><%
End Sub


' ---- [Public] Displays the "Cancel" authoring link
Sub ShowAuthCancelLink()
	' the reason it is a JavaScript call instead of a simple <a> link is because
	' in the case of "wbc_purpose=PreviewAuthoring" this link is visible but non-functional
%><a target="_self" href="#" onClick="WBC_onAuthCancel(<%=Bool2LCaseStr(AreAuthCmdsFunctional)%>, '<%=GetAuthCancelURL()%>');return false" ><%=IDS_UI_CONSOLE_EXIT%></a><%
End Sub
%>
