var Ajaxconnection =
{
	
	createRequest: function ()
	{
		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 {
	                   // loading of a newer version of msxml dll (msxml3 - msxml5) failed
	                   // use fallback solution
	                   // old style msxml version independent, deprecated
	                   if( i == 2 ) {
	                       xhttp = new ActiveXObject("Microsoft.XMLHTTP");    
	                   // try to use the latest 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;
	}
}
