clearTimeout(timer);
    window.location.reload(true);
  } 

}

window.onload=starttime;

///////////////////////////////////
// Manage the online players list
var aPlayerList = new Array();

<?php 
if (isset($_SESSION['sid'])) {
    $oR3DCQuery->PlayerChatTimeOutOfflinePlayers();
    echo $oR3DCQuery->PlayerChatGetOnlinePlayerListJAVA($_SESSION['id']);
}
?>

try{

  // Update the chat message
  var chatobject = top.frchat1.document.frmChatList.txtchatmsg;
  chatobject.value="<?php 
echo $oR3DCQuery->PlayerChatGetChatMessages($jtime, true);
?>
";

  // remove timed out players
  var aDeleteList = new Array();
  var selectObject = top.frmenu1.document.frmPlayerList.lstTPlayerList;