// JavaScript Dokument

// Funktion zum erzeugen eines dynamischen Request Objektes
function createRequest(){
	var xhttp;
	if(window.ActiveXObject){	
		try{
	// IE 6.x
			xhttp = new ActiveXObject("Msxml2.XMLHTTP");//		
		}catch(e){	
			try{
			// Extrawurst für IE5.x
				xhttp = new ActiveXObject("Microsoft.XMLHTTP");			
			}catch(e){			
				xhttp = false;			
			}	
		}
		for( var i = 5; i; i-- ) {
			try {
			 // alte msxml version
					 if( i == 2 ) {
							 xhttp = new ActiveXObject("Microsoft.XMLHTTP");    
					 // versuche die letzte msxml dll
					 } else {                       
							 xhttp = new ActiveXObject("Msxml2.XMLHTTP." + i + ".0");					   
					 }
					 break;
			 }
			catch( excNotLoadable ) {                        
					 xhttp = false;				   
			}
		}
		
	}else if(window.XMLHttpRequest){	
		// Für Mozilla Safari Opera
		try{	
			xhttp = new XMLHttpRequest();	
		}catch(e){
			xhttp = false;		
		}	
	}
	return xhttp;
}

