<!-- #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/
'			RevisionHistory/Page/PageRevisionErrorDlg.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.
' ********************************************************************


Dim g_strCharSet
g_strCharSet = Request.QueryString(IDS_QSTR_PAGE_CHARSET)

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

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<%= Server.HTMLEncode(g_strCharSet) %>">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="expires" content="-1">
	<meta name="Author" content="Microsoft Corporation.">
	<meta name="Description" content="Page Revision Error Message Dialog">
	<meta name="robots" content="NOINDEX,NOFOLLOW">
	<% Call EmbedWBCHeadSection() %>

	<script language="JavaScript" type="text/javascript">
	<!--
		function WBC_displaySelectedPageRevision() {

			document.write(window.dialogArguments);
		}

		function WBC_onClickOkay() {

			var IDS_DISPLAY_SELECTED_MESSAGE = "Only two revisions can be compared at one time. Please clear one revision."

			// construct a string for return value
			var strRetVal = "";
			var pChkCompareDate = document.WBC_formPageRevisionError.elements['inchkCompareDate'];
			for (var i = 0; i < pChkCompareDate.length; i++) {
				if (pChkCompareDate(i).checked) {
					strRetVal = strRetVal + pChkCompareDate(i).value + ";";
				}
			}

			if (strRetVal != "") {
				strRetVal = strRetVal.substr(0, strRetVal.toString().length - 1);
			}

			if (strRetVal.split(";").length == 9) {
				alert( IDS_DISPLAY_SELECTED_MESSAGE );
			} else {
				window.returnValue = strRetVal;
				window.close();
			}
			return;
		}
	// -->
	</script>
	<title><%= IDS_UI_BROWSER_TITLE %></title>
</head>

<body <%= IDS_BODYSETTING %> onload="return false;">

	<form name="WBC_formPageRevisionError">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<!-- Show the Top Title -->
			<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_VIEW_REVISION_HISTORY %>
				</td>
				<td><img src="<%= IDS_TRANSPARENT_GIF %>"
							width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_HEADER_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="<%= C_INT_MINOR_SPACING %>" border="0"></td>
				<td rowspan="999"><img src="<%= IDS_TRANSPARENT_GIF %>"
							width="<%= C_INT_MINOR_SPACING %>" height="1" border="0"></td>
			</tr>
			<tr>
				<td><img src="<%= IDS_TRANSPARENT_GIF %>"
						width="15" height="<%= C_INT_MINOR_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><img src="<%= IDS_PATH_IMAGES_COMMON & IDS_IMG_ICON_ALERT_GIF %>" border=0></td>
									<td class="WBC_styclsTextColor1" valign="middle">
										<%= IDS_UI_ALERT_EXCEED_SELECTED_MESSAGE %>
									</td>
								</tr>
								<tr class="WBC_styclsBackground2">
									<td>&nbsp;</td>
									<td class="WBC_styclsTextColor1">
										<script language="JavaScript" type="text/javascript">
										<!--
											WBC_displaySelectedPageRevision();
										// -->
										</script>
									</td>
								</tr>
								<tr class="WBC_styclsBackground2">
									<td><img src="<%=IDS_TRANSPARENT_GIF%>"
										width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_XSMALL_SPACING %>" border="0"></td>
								</tr>
							</table>
						</td>
					</table>

					<table border="0" cellspacing="0" cellpadding="2">
						<tr>
							<td><img src="<%=IDS_TRANSPARENT_GIF%>"
								width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_MINOR_SPACING %>" border="0"></td>
						</tr>
						<tr valign="bottom">
							<td align="right" valign="bottom" colspan="2">
								<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>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>