<!--
var url = "/scripts/getCategories.php?cat_id_ser="; 

function handleHttpResponse() {
  if (http.readyState == 4) {
    var results = http.responseText;
    document.getElementById('sub_categories').innerHTML = results;
  }
}

function subCategories(cat_id_ser2) {
  var parentCatValue = document.getElementById("cat_id_ser").value;
  var subCatValue = cat_id_ser2;
  
  if (subCatValue) {
    var urlPath = url + escape(parentCatValue) + "&cat_id_ser2=" +  escape(subCatValue);
  } else {
    var urlPath = url + escape(parentCatValue);
  }
  //alert(urlPath);
  http.open("GET", urlPath, true);
  /*
  if (subCatValue) {
    http.open("GET", url + escape(parentCatValue) + "&cat_id_ser2=" +  escape(subCatValue), true);
  } else {
    http.open("GET", url + escape(parentCatValue), true);
  }
  */
  http.onreadystatechange = handleHttpResponse;
  http.send(null);
}

function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}

var http = getHTTPObject();

// -->
