function getOnline() {
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
    try {
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (e) {
      xmlhttp = false;
    }
  }
  if(!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }
  if(xmlhttp) {
    xmlhttp.onreadystatechange = function() {
      if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
        var disp = document.getElementById('online_list');

        var ajax_filter = function(t){return t};
        if(navigator.appVersion.indexOf( "KHTML" ) > -1){
            ajax_filter = function(t){
                var esc = escape(t);
                return(esc.indexOf("%u") < 0 && esc.indexOf("%") > -1) ? decodeURIComponent(esc) : t
            }
        }

        var html = xmlhttp.responseText;
        disp.innerHTML = html;
      }
    }
    xmlhttp.open('GET', 'main_online.php');
    xmlhttp.send(null);
  }
}
