if(typeof(XMLHttpRequest)!='undefined'){
  var getXMLHttpObj = function(){ return new XMLHttpRequest(); }
}
else{
  var getXMLHttpObj = function(){
    var activeXObjects = ['Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.5.0', 'Msxml2.XMLHTTP.4.0', 'Msxml2.XMLHTTP.3.0', 'Msxml2.XMLHTTP', 'Microsoft.XMLHTTP'];
    for(var i=0; i<activeXObjects.length; i++){
      try{
        return new ActiveXObject(activeXObjects[i]);
      }catch(err){}
    }
  }
}
var oXML = getXMLHttpObj();

function loadContactListPage(url){
  oXML.open('GET', url, true);
  oXML.onreadystatechange = function(){ doneLoading(oXML); }
  oXML.send('');
}


function doneLoading(oXML){  //>
  if(oXML.readyState!=4) return; // запрос не выполнен

  xml1 = oXML.responseXML;
  try{
    x = xml1.getElementsByTagName("data");
    xml = x[0].childNodes;
  }
  catch(e){
    if(oXML.responseXML.documentElement == null) try {
      oXML.responseXML.loadXML(oXML.responseText)
      x = oXML.responseXML.getElementsByTagName("data");
      xml = x[0].childNodes;
    }
    catch(e){}
  }

  for(i=0; i<xml.length; i++){  //>
    //alert(xml[i].nodeName);
    if(xml[i].nodeName == "select"){
      try{
        for($i=$(xml[i].getAttribute("id")).length-1;$i>=1;$i--){
          $(xml[i].getAttribute("id")).remove($i);
        }
      }catch(e){}

      //xml[i].getAttribute("id");
      k = xml[i].childNodes;
      for(j=0;j<k.length;j++){
        if(xml[i].getAttribute("value") == k[j].getAttribute("value"))
          NeuerEintrag = new Option(k[j].firstChild.nodeValue,k[j].getAttribute("value"),true,false);
        else
          NeuerEintrag = new Option(k[j].firstChild.nodeValue,k[j].getAttribute("value"),false,false);

        $(xml[i].getAttribute("id")).options[$(xml[i].getAttribute("id")).length] = NeuerEintrag;
      }
      /*try{
        $(xml[i].getAttribute("id")).value=xml[i].getAttribute("value");
      }catch(e){}*/
    }
  }
}