// +---------------- VFXY AJAX FUNCTIONALITY ------------------+

// Main call function
function callServer(loc, respFunc) {
  xmlHttp = false;
  /*@cc_on @*/
  /*@if (@_jscript_version >= 5)
  try {
    xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
    try {
      xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (e2) {
      xmlHttp = false;
    }
  }
  @end @*/
  if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
    xmlHttp = new XMLHttpRequest();
  }
  xmlHttp.open("GET", loc, true);
  eval("xmlHttp.onreadystatechange = " + respFunc);
  xmlHttp.send(null);
}

// A function for showing the filter options
function toggleSet() {
  if (document.getElementById("mainSettings").style.visibility == "hidden") {
    document.getElementById("mainSettings").style.visibility = "visible";
  } else {
    document.getElementById("mainSettings").style.visibility = "hidden";
  }
}

// Redirect options
function redirectTo(link) {
  window.location = link;
}


