<?/*
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
  require_once 'web_root.php';

  ## clean up //'s, which break relative paths
  $u1 = $_SERVER['REQUEST_URI'];
  $u2 = preg_replace('#//+#', '/', $u1);
  if ($u1 != $u2) {
    require_once 'server_functions.php';
    redirect($u2);
  }

  $time1 = time ();

  function Sub_Heading ($title) {
    return <<<EOF

<!-- Begin Sub Heading -->

<table cellpadding="1" border="0" cellspacing="0" width="100%">
<tr>
  <td bgcolor="b7d573">
    <table cellpadding="0" border="0" cellspacing="0" width="100%">
    <tr>
      <td bgcolor="#ffffff">
        <table width="100%" border="0" cellpadding="2" cellspacing="0">
        <tr>
          <td bgcolor="#e6f0ce" class="subtitleblk" align="left" nowrap="nowrap" width="100%"> &nbsp;$title</td>
        </tr>
        </table>
      </td>
    </tr>
    </table>
  </td>
</tr>
</table>

<!-- End Sub Heading -->

EOF;
  }

#<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
#<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<!-- begin header -->

<head>
  <title>Athena</title>
  <link rel="icon" type="image/gif" href="<?= $web_root ?>/img/athena-icon.gif">
  <link rel="stylesheet" href="<?= $web_root ?>/includes/css/global.css" type="text/css" />
  <script type="javascript">
   function openit(sURL){
     newwindow=open(sURL,'rlrpopupnav','width=440,height=350,directories=no,location=no,menubar=no,scrollbars=auto,status=no,toolbar=no,resizable=no,left=10%,top=10%,screenX=10%,screenY=10%');
   }
  </script>
</head>


<!-- <?php echo date ('d/m/Y H:i:s'); ?> -->

<!--
  remote person_id <?php echo $REMOTE_USER; ?>
  crm_id = <?php echo $REMOTE_USER_CRM_ID; ?>
-->

<?php
  if (array_key_exists('ALT_BODY_TAG', $_SERVER) or 
      array_key_exists('ALT_BODY_TAG', $_REQUEST)) {
?>
<body bgcolor="#e6f0ce" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?php } else { ?>
<body bgcolor="white" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?php } ?>

<!-- end header -->

