<!-- #include virtual="/NR/System/WBC/Internals/Main/WBCApp.inc"-->

<!-- #include virtual="/NR/System/WBC/Customizable/WBCFuncPagesConfig/UIStringConstants/PageRevisionUIStrings.inc" -->
<!-- #include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/RevisionBrowser/Page/Common/ProgrammingConstants.inc"-->

<%
' ********************************************************************
' 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/RevisionBrowser/
'			Page/RevisionHistory/PageRevisionOptions.asp
' Version:	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Responsible for previewing Page Revision by a specified date and time
'
' Query String Parameters:
'	[API-Generated-Query-Params]: This set of parameters is generated by
'								  invoking the API method Posting.QueryString
'								  in the previous ASP page. It contains all the
'								  necessary information to be interpreted by the
'								  API to set the AutoSession.This object in this
'								  ASP page.
' ********************************************************************


%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="expires" content="-1">
	<meta name="Author" content="Microsoft Corporation.">
	<meta name="Description" content="Preview Revision Page by a specified date and time">
	<meta name="robots" content="NOINDEX,NOFOLLOW">
	<title><%= IDS_UI_BROWSER_TITLE %></title>
	<% Call EmbedWBCHeadSection() %>

	<script language="JavaScript" type="text/javascript">
	<!--
		var g_pFormPageRevisionOptions;

		// initial the UI
		function WBC_onLoadOptionDlg() {
			var i;

			// get the form object of this page
			g_pFormPageRevisionOptions = window.document.WBC_formPageRevisionOptions;

			// get the current insertion option from compare window
			var pFuncWin = WBC_getFuncWin( "WBC_getInsertionOption", top.opener );
			if (pFuncWin == null) {
				alert( IDS_FUNCTION_NOT_FOUND );
				return;
			}
			var strInsertionOption = pFuncWin.WBC_getInsertionOption();

			// update the UI of the current selected insertion options
			for (i = 0; i < g_pFormPageRevisionOptions.WBC_selInsertion.length; i++) {
				if (g_pFormPageRevisionOptions.WBC_selInsertion.options[i].value == strInsertionOption) {
					g_pFormPageRevisionOptions.WBC_selInsertion.selectedIndex = i;
					break;
				}
			}

			// get the current deletion option from compare window
			pFuncWin = WBC_getFuncWin( "WBC_getDeletionOption", top.opener );
			if (pFuncWin == null) {
				alert( IDS_FUNCTION_NOT_FOUND );
				return;
			}
			var strDeletionOption = pFuncWin.WBC_getDeletionOption();

			// update the UI of the current selected deletion options
			for (i = 0; i < g_pFormPageRevisionOptions.WBC_selDeletion.length; i++) {
				if (g_pFormPageRevisionOptions.WBC_selDeletion.options[i].value == strDeletionOption) {
					g_pFormPageRevisionOptions.WBC_selDeletion.selectedIndex = i;
					break;
				}
			}
		}

		// update the hidden value of the compare window.
		function WBC_onClickOkay() {

			var strInsertionOption = g_pFormPageRevisionOptions.WBC_selInsertion.options[g_pFormPageRevisionOptions.WBC_selInsertion.selectedIndex].value;
			var strDeletionOption = g_pFormPageRevisionOptions.WBC_selDeletion.options[g_pFormPageRevisionOptions.WBC_selDeletion.selectedIndex].value;

			// get the current insertion option from compare window
			var pFuncWin = WBC_getFuncWin( "WBC_updateOptions", top.opener );
			if (pFuncWin == null) {
				alert( IDS_FUNCTION_NOT_FOUND );
				return;
			}
			pFuncWin.WBC_updateOptions( strInsertionOption, strDeletionOption );
			window.close();
		}
	// -->
	</script>
</head>

<body <%= IDS_BODYSETTING %> onload="WBC_onLoadOptionDlg(); return false;">

	<form name="WBC_formPageRevisionOptions" method="post" enctype="multipart/form-data">

		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<!-- Show the Main Header -->
			<tr class="WBC_styclsBackground1">
				<td><img border=0 src="<%=IDS_PATH_IMAGE_LOGO %>"></td>
				<td width=100% valign="middle"  class="WBC_styclsHeaderText">
					<%= IDS_UI_LABEL_COMPARE_REVISIONS%>
				</td>
				<td><img src="<%= IDS_TRANSPARENT_GIF %>"
							width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_HEADER_HEIGHT %>" border="0"></td>
			</tr>

			<!-- Show the Sub Header -->
			<tr class="WBC_styclsBackground2">
				<td><img src="<%= IDS_TRANSPARENT_GIF %>"
					width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_SUBHEAD_HEIGHT %>" border="0"></td>
				<td class="WBC_styclsSubheadText">
					<%= IDS_UI_LABEL_SET_COLORS %>
				</td>
				<td><img src="<%= IDS_TRANSPARENT_GIF %>"
					width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_SUBHEAD_HEIGHT %>" border="0"></td>
			</tr>
		</table>

		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<!-- Set the margin width for the rest of the page -->
			<tr>
				<td rowspan="999"><img src="<%= IDS_TRANSPARENT_GIF %>"
							width="<%= C_INT_MINOR_SPACING %>" height="1" border="0"></td>
				<td><img src="<%=IDS_TRANSPARENT_GIF%>"
							width="100%" height="1" border="0"></td>
				<td rowspan="999"><img src="<%= IDS_TRANSPARENT_GIF %>"
							width="<%= C_INT_MINOR_SPACING %>" height="1" border="0"></td>
			</tr>

			<!-- Show the Page Information -->
			<tr>
				<td><img src="<%= IDS_TRANSPARENT_GIF %>"
					width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
			</tr>
			<tr>
				<td width="100%" align="right">
					<table class="WBC_styclsBackground1" width="100%" border="0" cellspacing="0" cellpadding="2">
						<td>
							<table class="WBC_styclsBackground2" width="100%" border="0" cellspacing="0" cellpadding="10">
								<tr class="WBC_styclsBackground2">
									<td class="WBC_styclsTextColor1"><%= IDS_UI_LABEL_DISPLAY_OPTIONS_DESC %></td>
								</tr>

								<tr>
									<td>
										<table class="WBC_styclsBackground2" width="100%" border="0" cellspacing="0" cellpadding="2">
											<tr class="WBC_styclsBackground2" vlign="bottom">
												<td class="WBC_styclsTextColor1" width="35%"><nobr><%= IDS_UI_LABEL_INSERTIONS %></nobr></td>
												<td class="WBC_styclsTextColor1"><nobr><%= IDS_UI_LABEL_DELETIONS %></nobr></td>
											</tr>
											<tr class="WBC_styclsBackground2" valign="top">
												<td class="WBC_styclsTextColor1">
													<select name="WBC_selInsertion">
														<option value="<%= IDS_INSERTION_BLUE %>"><%= IDS_UI_BLUE %>
														<option value="<%= IDS_INSERTION_DARKBLUE %>"><%= IDS_UI_DARKBLUE %>
														<option value="<%= IDS_INSERTION_DARKRED %>"><%= IDS_UI_DARKRED %>
														<option value="<%= IDS_INSERTION_GREEN %>" Selected><%= IDS_UI_GREEN %>
														<option value="<%= IDS_INSERTION_PINK %>"><%= IDS_UI_PINK %>
														<option value="<%= IDS_INSERTION_PURPLE %>"><%= IDS_UI_PURPLE %>
														<option value="<%= IDS_INSERTION_RED %>"><%= IDS_UI_RED %>
														<option value="<%= IDS_INSERTION_TURQUOISE %>"><%= IDS_UI_TURQUOISE %>
														<option value="<%= IDS_INSERTION_WHITE %>"><%= IDS_UI_WHITE %>
														<option value="<%= IDS_INSERTION_YELLOW %>"><%= IDS_UI_YELLOW %>
														<option value="<%= IDS_INSERTION_NONE %>"><%= IDS_UI_NONE %>
													</select>
												</td>
												<td class="WBC_styclsTextColor1">
													<select name="WBC_selDeletion">
														<option value="<%= IDS_DELETION_BLUE %>" Selected><%= IDS_UI_BLUE %>
														<option value="<%= IDS_DELETION_DARKBLUE %>"><%= IDS_UI_DARKBLUE %>
														<option value="<%= IDS_DELETION_DARKRED %>"><%= IDS_UI_DARKRED %>
														<option value="<%= IDS_DELETION_GREEN %>"><%= IDS_UI_GREEN %>
														<option value="<%= IDS_DELETION_PINK %>"><%= IDS_UI_PINK %>
														<option value="<%= IDS_DELETION_PURPLE %>"><%= IDS_UI_PURPLE %>
														<option value="<%= IDS_DELETION_RED %>"><%= IDS_UI_RED %>
														<option value="<%= IDS_DELETION_TURQUOISE %>"><%= IDS_UI_TURQUOISE %>
														<option value="<%= IDS_DELETION_WHITE %>"><%= IDS_UI_WHITE %>
														<option value="<%= IDS_DELETION_YELLOW %>"><%= IDS_UI_YELLOW %>
														<option value="<%= IDS_DELETION_NONE %>"><%= IDS_UI_NONE %>
													</select>
												</td>
											</tr>
										</table>
									</td>
								</tr>
								<tr class="WBC_styclsBackground2">
									<td class="WBC_styclsSmallTextColor1"><%= IDS_UI_LABEL_OPTION_NOTE %></td>
								</tr>
							</table>
						</td>
					</table>

					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td><img src="<%=IDS_TRANSPARENT_GIF%>"
								width="1" height="<%= C_INT_MINOR_SPACING %>" border="0"></td>
						</tr>
						<tr valign="bottom">
							<td class="WBC_styclsSmallTextColor1" align="right">
								<a href="#" onclick="WBC_onClickOkay(); return false;"><img name="WBC_imgOkay" src="<%= IDS_PATH_IMAGES_COMMON & IDS_IMG_BTN_OKAY_GIF %>" border="0" alt=""></a>
								&nbsp;
								<a href="#" onclick="window.close(); return false;"><img name="WBC_imgCancel" src="<%= IDS_PATH_IMAGES_COMMON & IDS_IMG_BTN_CANCEL_GIF %>" border="0" alt=""></a>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>

</body>
</html>