<%@ page language="java"
	contentType="text/html;charset=Shift_JIS"
	import="openolap.viewer.Report"
%>
<%

	Report report = (Report) session.getAttribute("report");
	String reportName = "";
		if ( report != null ) {
			reportName = report.getReportName();
		}
	String errorMessage = (String) request.getAttribute("errorMessage");
	String message = (String) request.getAttribute("message");

%>
<HTML>
<HEAD>
	<meta http-equiv="Content-Type" content="text/html;charset=Shift_JIS">
	<TITLE>OpenOLAP Viewer</TITLE>
	<link rel="stylesheet" type="text/css" href="./css/common.css">
</HEAD>

<BODY onload="init();">
<FORM name="form_main" method="post">
	<table id="spreadHeader" class="Header" style="border-collapse:collapse;border:none">
	<tr>
	<td valign="top" class="HeaderTitle">
	<%= reportName %>
	</td>
	<td align="right" width=60 style="padding:0">
		<iframe name="loadingStatus" width=60 src="./spread/spreadLoadingStatus.html">
		</iframe>
	</td>
	<td style="display:none">
		<iframe name="silentAccess" src="./spread/blank.html">
		</iframe>
	</td>
	</tr>
	</table>

	<input type="hidden" name="hid_highlight_flg" value="0">

</FORM>
</BODY>
</HTML>

<script language="JavaScript">
	function init() {

<%
		if ( errorMessage == null ) {

			if ( message != null ) {
%>
				alert("<%= message %>");
<%
			}
%>
			document.form_main.action='Controller?action=loadClientInitAct';
			document.form_main.target='info_area';
			document.form_main.submit();
<%
		} else {
%>
			loadingStatus.loadingIMG.src = "../images/logo_anime_stop.gif";
			alert("<%= errorMessage %>");
<%
		}
%>
	}
</script>
