//<![CDATA[
<!--
	var xmlHTTP = false;

	// Is needed to check if we have a connection
	// because xmlHTTP != false doesn't work in IE 5.5
	// and produces a jscript error
	var xmlConnected = false;

	function createXMLHttpRequest()
	{
		// Check for newer IE
	  	try
		{
	    	xmlHTTP = new ActiveXObject("MSXML2.XMLHTTP");
			xmlConnected = true;
	  	}
	  	catch(e)
		{
			// Check for older IE
	    	try
			{
	      		xmlHTTP = new ActiveXObject("Microsoft.XMLHTTP");
				xmlConnected = true;
		    }
		    catch(e)
			{
				// Check for mozilla
				try
				{
					xmlHTTP = new XMLHttpRequest;
					if( xmlHTTP.overrideMimeType)
					{
						// we plan to response in XML-Format
						// xmlHTTP.overrideMimeType('text/xml');
						// Use if only one response message is needed
						xmlHTTP.overrideMimeType('text/html');
					}
					xmlConnected = true;
				}
		      	catch(e)
				{
					// Browser is not ajax compatible
					// When, we should alert an english message because of internationalization
					// alert("Sorry but your browser dosn't support AJAX-Applications!");
					// but we do not :)
					xmlConnected = false;
				}
		    }
	  	}

	}

	function checkState()
	{
		// 4 is complete
		if( xmlHTTP.readyState == 4 )
		{
			// HTTP-Header response 200 (OK) needed
			if( xmlHTTP.status == 200 )
			{
				// Response value from script
				string = xmlHTTP.responseText;

				// Create a DIV-Element
				var uWindow = document.createElement('div');
				uWindow.id = 'showunterschlupf';
				uWindow.innerHTML = string;
				uWindow.className = 'window';
				var bodyname = document.getElementById('contentbereich');
				bodyname.appendChild(uWindow);
			}
		}
	}

	function showunterschlupf(uschlupfid, server)
	{
		if( uschlupfid != '' )
		{
			// We create our XMLHttpRequest
			createXMLHttpRequest();
			if( xmlConnected != false )
			{
				xmlHTTP.onreadystatechange = checkState;
				url = 'http://' + server + '/mg/ac/ac.showunterschlupf.php?showuserid=' + uschlupfid + '&ajax=1';

				xmlHTTP.open('GET', url, true);
				xmlHTTP.send(null);
			}
		}
	}
//-->
//]]>