<?php
if (isset($_SESSION["userInfo"])) {
    if (!isset($userInfo)) $userInfo = $_SESSION["userInfo"];
    $selectedLanguage=$userInfo['language'];
	$language=$userInfo['language'];
}
require("../../inc/lib.inc");
require("../sub_inc/sub_config.inc");
$PHP_SELF = $_SERVER['PHP_SELF'];

$if_pass=pageAccessChk($PHP_SELF);
if($if_pass < 0){
	echo "<script language=\"javascript\">";
	echo "var logon='Please Logon System';";  
	echo "alert(logon);";
	echo "window.parent.parent.location.href=\"../../security/logout/logout.php\";";
	echo "</script>";
	exit();
}

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

if($selectedLanguage == 'chn'){
?>
	<html>
	<style type="text/css">
	<!--
	body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt;}
	th   { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 1pt; font-weight: bold; background-color: #D3DCE3;}
	td   { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 1pt;}
	form { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt}
	textarea{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
	input.text {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
	input.button {font-family: Verdana; font-size: 9pt}
	select {font-size: 9pt; BACKGROUND-COLOR: white;}
	h1   { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16pt; font-weight: bold}
	A:link    { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; text-decoration: none; color: #0000FF}
	A:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; text-decoration: none; color: #0000FF}
	A:hover   { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; text-decoration: underline; color: #FF0000}
	A:link.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #0000FF}
	A:visited.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #0000FF}
	A:hover.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FF0000}
	.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000}
	-->
	</style>
<?php
}else{
?>
	<html>
	<style type="text/css">
	<!--
	body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
	th   { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 1pt; font-weight: bold; background-color: #D3DCE3;}
	td   { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 1pt;}
	form { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
	textarea{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
	input.text {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
	input.button {font-family: Verdana; font-size: 8pt}
	select { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
	h1   { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16pt; font-weight: bold}
	A:link    { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none; color: #0000FF}
	A:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none; color: #0000FF}
	A:hover   { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: underline; color: #FF0000}
	A:link.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #0000FF}
	A:visited.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #0000FF}
	A:hover.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FF0000}
	.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000}
	-->
	</style>
<?php
}	
?>
<script LANGUAGE="JavaScript">
function openHelp(helpId){
	URL="../../omcHelp/index.php?helpId="+helpId;
	var baseSetting='toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,left=0,top=0';
	var size800=',width=790,height=560';
	var size1024=',width=1010,height=710';

	if (window.screen.width==800 && window.screen.height==600){
		pageSetting = baseSetting + size800;
	}else{
		pageSetting = baseSetting + size1024;
	}

	msgWindow = window.open(URL,'helpWin',pageSetting);
	msgWindow.focus();
}
</script>


