<?
echo '</td></tr></table>';
//check if a help file exists, and create link
if ($helpanchor) $anchorstr='#'.$helpanchor;
if (file_exists("help".$docfilename)) $helpstr=' - <a href="javascript:doNothing()" onclick="top.newWin = window.open(\'help'.$docfilename.'?nonprintable=1'.$anchorstr.'\',\'cal\',\'dependent=yes,width=210,height=230,screenX=200,screenY=300,titlebar=yes,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1\')"'.tooltip('This link opens a new window with help for this specific page.').'">Help</a>';
$message=easteregg(createtime('md')).' '; //print special message on holidays
if (createtime('Y')>2001) $yearstr='-'.createtime('Y'); //create date range range for copyright notice
echo '<br><table align="center">';
echo '<tr align="center"><td align="center"><font size="'.FOOTER_TEXT_SIZE.'"><center>'.$message.createtime('m/d/Y g:i a').' - © <a href="http://www.noguska.com">Noguska</a> - Copyright 2001'.$yearstr.'</td></tr>';
echo '<tr><td align="center"><a target="_new" href="http://www.noguska.com"><img src="images/noguska12.gif"></a></td></tr>';
echo '<tr align="center"><td align="center"><font size="'.FOOTER_TEXT_SIZE.'"><center>Help: 1-800-NOGUSKA - '.$docfilename.$helpstr;
if (!$nonprintable) { //get variables to create print link, unless we shouldn't make one
while(list($key, $val) = each($HTTP_POST_VARS)) {
$key = urlencode(stripslashes($key));
$val = urlencode(stripslashes($val));
if ($key!="printable") $getstring .= "$key=$val&";
$poststring .= "$key=$val&";
};
while(list($key, $val) = each($HTTP_GET_VARS)) {
$key = urlencode(stripslashes($key));
$val = urlencode(stripslashes($val));
if ($key!="printable") $getstring .= "$key=$val&";
};
if (strlen($poststring.$getstring)<1024) { //create the correct print link (printable or normal)
if (!$printable) {
echo ' - <a href="javascript:location.replace(\''.$docfilename.'?'.$poststring.$getstring.'printable=1\')"'.tooltip('This link changes the page to a black and white printable format.').'>Print</a>';
} else {
echo ' - <a href="javascript:location.replace(\''.$docfilename.'?'.$poststring.$getstring.'printable=0\')"'.tooltip('This link changes the page to it\'s normal viewing format.').'>Normal</a>';
};
};
};
echo '</font></td></tr></table></center>';
?>