function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function loadSubtipos(uuid_tipo, id){
	xmlHttp=GetXmlHttpObject();
        if (xmlHttp==null){
          alert ("Your browser does not support AJAX!");
          return;
        } 
        var rnd = Math.random();
        var url="./include/getSubtipos.php";
        url=url+"?uuid_tipo="+uuid_tipo+"&id="+id+"&sid="+rnd;
        xmlHttp.open("GET",url,true);
        xmlHttp.setRequestHeader('Content-Type',  "text/html");
        xmlHttp.onreadystatechange=function(){
					xmlDoc=xmlHttp.responseText;
					document.getElementById("uuid_subservicio").innerHTML = xmlDoc;
				};
        xmlHttp.send(null);
}

function loadClientes(uuid_tipo, id){
	xmlHttp=GetXmlHttpObject();
        if (xmlHttp==null){
          alert ("Your browser does not support AJAX!");
          return;
        } 
        var rnd = Math.random();
        var url="./include/getClientes.php";
        url=url+"?uuid_tipo="+uuid_tipo+"&id="+id+"&sid="+rnd;
        xmlHttp.open("GET",url,true);
        xmlHttp.setRequestHeader('Content-Type',  "text/html");
        xmlHttp.onreadystatechange=function(){
					xmlDoc=xmlHttp.responseText;
					document.getElementById("uuid_cliente").innerHTML = xmlDoc;
				};
        xmlHttp.send(null);
}