<?/*
Copyright (C) 2003 Media Net Link, Inc. Danville, CA 94526 USA

This file is part of AthenaRMS.

AthenaRMS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

AthenaRMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/?>
<?PHP
  function help_page_id() {
    global $web_root;

    $page = $_SERVER['PHP_SELF'];
    $page = preg_replace('/^' . preg_quote($web_root, '/') . '/', '', $page);
    $page = preg_replace('/^\/|\.php$/i', '', $page);

    return $page;
  }
?>
<SCRIPT TYPE="text/javascript">
<!--
  function openhelp(sURL){
newwindow=open(sURL,"rlrpopupnav","width=300,height=300,directories=no,location=no,menubar=no,scrollbars=auto,status=no,toolbar=no,resizable=no,left=10%,top=10%,screenX=10%,screenY=10%");
}
//-->
</SCRIPT>
<!-- begin branding -->

<center>
<table cellpadding="0" cellspacing="0" width="700" border="0">
<tr>
<td valign="top"><a href="http://athenarms.com"><img src="<?= $web_root ?>/img/logo-athena.gif" width="130" height="32" vspace="3" border="0"></a></td>
<td align="center" valign="middle"><img src="<?= $web_root ?>/img/motto-simple-sophisticated.gif" width="273" height="16"></td>
<?php if (array_key_exists('CONTACT_US', $_SERVER) && $_SERVER['CONTACT_US'] == 'off') { ?>
<td align="right" valign="top"><img src="<?= $web_root ?>/img/cldot.gif" width="158" height="1" /></td>
<?php } else { ?>
<td align="right" valign="top"><img src="<?= $web_root ?>/img/cldot.gif" width="30" height="1"><a class='textsm' href="javascript:openhelp('<?= $web_root ?>/help/index.php?page_id=<?= help_page_id() ?>&Athena=<?= session_id() ?>')"><img src="<?= $web_root ?>/img/btn-gray-help.gif" width="51" height="17" border="0"></a><a href="<?= $web_root ?>/news"><img src="<?= $web_root ?>/img/btn-gray-news.gif" width="49" height="17" border="0"></a><a href="http://athenarms.mnl.com/feedback"><img src="<?= $web_root ?>/img/btn-contactus.gif" width="79" height="17" border="0"></a></td>
<?php } ?>
</tr>
</table>

<table cellpadding="0" cellspacing="0" width="700" border="0">
<tr>
<td align="center" class="textsm" height="3"><img src="<?= $web_root ?>/img/cldot.gif" width="1" height="1" vspace="1"></td>

</tr>
</table>

</center>

<!-- begin branding -->

