function dtmlXMLLoaderObject(funcObject,dhtmlObject,async,rSeed){
 this.xmlDoc="";
 if(arguments.length==2)
 this.async=true;
 else
 this.async=async;
 this.onloadAction=funcObject||null;
 this.mainObject=dhtmlObject||null;
 this.waitCall=null;
 this.rSeed=rSeed||false;
 return this;
};
 
 dtmlXMLLoaderObject.prototype.waitLoadFunction=function(dhtmlObject){
  this.check=function(){
  if(dhtmlObject.onloadAction!=null){
 if((!dhtmlObject.xmlDoc.readyState)||(dhtmlObject.xmlDoc.readyState == 4)){
 if (top.debugdhtmlxcommon)
	 alert(dhtmlObject.xmlDoc.responseText.replace(/[\n\t\r]+/gi,""))
 dhtmlObject.onloadAction(dhtmlObject.mainObject,null,null,null,dhtmlObject);
 if(dhtmlObject.waitCall){dhtmlObject.waitCall();dhtmlObject.waitCall=null;}
 dhtmlObject=null;
}
}
};
 return this.check;
};

 dtmlXMLLoaderObject.prototype.getXMLTopNode=function(tagName){
 if(this.xmlDoc.responseXML){
 var temp=this.xmlDoc.responseXML.getElementsByTagName(tagName);
 var z=temp[0];
}else
 var z=this.xmlDoc.documentElement;
 if(z){
 this._retry=false;
 return z;
}

 if((_isIE)&&(!this._retry)){
 var xmlString=this.xmlDoc.responseText;
 this._retry=true;
 this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
 this.xmlDoc.async=false;
 this.xmlDoc.loadXML(xmlString);

 return this.getXMLTopNode(tagName);
}
 alert("Fehler beim Laden\nBitte laden Sie die Seite erneut.",[this.xmlDoc,this.mainObject]);
 return document.createElement("DIV");
};

 
 dtmlXMLLoaderObject.prototype.loadXMLString=function(xmlString){
 try
{
 var parser = new DOMParser();
 this.xmlDoc = parser.parseFromString(xmlString,"text/xml");
}
 catch(e){
 this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
 this.xmlDoc.async=this.async;
 this.xmlDoc.loadXML(xmlString);
}
 this.onloadAction(this.mainObject);
 if(this.waitCall){this.waitCall();this.waitCall=null;}
}
 
 dtmlXMLLoaderObject.prototype.loadXML=function(filePath,postMode,postVars){
 if(this.rSeed)filePath+=((filePath.indexOf("?")!=-1)?"&":"?")+"a_dhx_rSeed="+(new Date()).valueOf();
 this.filePath=filePath;
 if(window.XMLHttpRequest){
 this.xmlDoc = new XMLHttpRequest();
 this.xmlDoc.open(postMode?"POST":"GET",filePath,this.async);
 if(postMode)
 this.xmlDoc.setRequestHeader('Content-type','application/x-www-form-urlencoded');
 this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);
 this.xmlDoc.send(null||postVars);
}
 else{

 if(document.implementation && document.implementation.createDocument)
{
 this.xmlDoc = document.implementation.createDocument("","",null);
 this.xmlDoc.onload = new this.waitLoadFunction(this);
 this.xmlDoc.load(filePath);
}
 else
{
 this.xmlDoc = new ActiveXObject("Microsoft.XMLHTTP");
 this.xmlDoc.open(postMode?"POST":"GET",filePath,this.async);
 if(postMode)this.xmlDoc.setRequestHeader('Content-type','application/x-www-form-urlencoded');
 this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);
 this.xmlDoc.send(null||postVars);
}
}
};

var _isFF=false;var _isIE=false;var _isOpera=false;var _isKHTML=false;var _isMacOS=false;

if(navigator.userAgent.indexOf('Macintosh')!= -1)_isMacOS=true;
if((navigator.userAgent.indexOf('Safari')!= -1)||(navigator.userAgent.indexOf('Konqueror')!= -1))
 _isKHTML=true;
else if(navigator.userAgent.indexOf('Opera')!= -1){
 _isOpera=true;
 _OperaRv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf('Opera')+6,3));
}
else if(navigator.appName.indexOf("Microsoft")!=-1)
 _isIE=true;
else{
 _isFF=true;
 var _FFrv=parseFloat(navigator.userAgent.split("rv:")[1])
}