<?php
/*
* For our javascript, we need 1 extra arg: redirurl.
*/
//$js_args .= ",'" . $_GET["redirurl"] . "'";
$js_args .= ",'',";
$js_args .= "'',";
$js_args .= "'',";
$js_args .= "'" . BASE_URL . " ',";
$js_args .= "'" . POPUPTIME . "',";
if ($_GET["timeleft"])
$js_args .= "'" . $title_popup_remain_msg . "'";
else
$js_args .= "'" . $title_popup_online_msg . "'";
$noIMG = 1; // sets the variable so that we can get rid of the image in top.inc
echo '<script language="Javascript">
<!--
function onul() {
document.location.href="'.UAM_URL.'/logoff";
alert("'.$logoff_msg.'" );
}
//-->
</script>';
echo "<body onbeforeunload=\"onul()\">\n";
include(INC_DIR . "top_popup.inc");
echo '<div style="text-align: left;" id="logout_page_header">';
echo '<div id="popup_title">Logout page</div><br>';
echo '<table id="popup_table" style="width: 88%; height: 27px;"><tr><td>';
echo '<div id="popup_remain">'.$title_popup_remain_msg.' </div>';
echo '</td><td>';
echo '<div id="d"></div>';
echo '</td><td>';
echo "<div id=\"popup_image\"><a href=\"" . UAM_URL . "/logoff\"><img style=\"width: 44px; height: 36px;\" alt=\"Logout\" src=\"" . BASE_URL . "images/logout.png\" vspace=\"2\"></div>
";
echo '</td></tr></table></div>';
echo '</div>';
include(INC_DIR . "tail.inc");
?>