<!-- 
var xmlhttp=false;
var rosterurl = "/gps/gps/groupUsersSupport?groupid=";
var isWorking = false;
var currentDiv = ""; 
var http = getHTTPObject();

//var xsltProcessor = new XSLTProcessor();

// Load the xsl file using synchronous (third param is set to false) XMLHttpRequest
var myXMLHTTPRequest = new XMLHttpRequest();
//myXMLHTTPRequest.open("GET", "/county.xsl", false);
//myXMLHTTPRequest.send(null);

//var xslRef = myXMLHTTPRequest.responseXML;

// Finally import the .xsl
//xsltProcessor.importStylesheet(xslRef);

function getHTTPObject() {
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
  xmlhttp = false;
  }
}
@end @*/
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }
  return xmlhttp;
}

function requestUsersForGroup(groupid) {
  if (!isWorking) {
    http.open("GET", rosterurl + escape(groupid), true);
    isWorking = true;

    if (currentDiv != "") {
      var lastDiv = document.getElementById(currentDiv);
      lastDiv.style.visibility = 'hidden';
      lastDiv.innerHTML ='';
    }
    http.onreadystatechange = handleHttpResponse;
    var tablediv = document.getElementById(groupid);
    tablediv.style.visibility = 'hidden';
    tablediv.innerHTML = '<img src="/images/wifi-download-anim.gif">';
    tablediv.style.visibility = 'visible';
    currentDiv = groupid;
    http.send(null);
  }
}

function handleHttpResponse() {
  if (http.readyState == 4) {
    isWorking = false;
    if (http.responseText.indexOf('invalid') == -1) {
      responseDocument = http.responseText;
      var tablediv = document.getElementById(currentDiv);
      tablediv.style.visibility = 'visible';
      //var fragment = xsltProcessor.transformToFragment(xmlDocument, document);
      tablediv.innerHTML = responseDocument ;
      //document.getElementById("maptable").appendChild(fragment);
      isWorking = false;
    }
  }
} 

-->

