	var xmlHttp = null;
	
	// Firefox
	if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
		xmlHttp = new XMLHttpRequest();
	}

	if (!xmlHttp) {
			// Internet Explorer 6 und älter
			try {
					xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
			} catch(e) {
					try {
							xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
					} catch(e) {
							xmlHttp  = null;
					}
			}
	}

	function onLoadAction() {
		macheRequest('fileadmin/templates/scripts/lang/language.php');
	}

	function macheRequest(url) {
		if(xmlHttp) {
			document.getElementById("loading-indicator").style.display='';
			xmlHttp.open("GET", url, true);
		  xmlHttp.onreadystatechange = alertInhalt;
			xmlHttp.setRequestHeader("Pragma", "no-cache");
			xmlHttp.setRequestHeader("Cache-Control", "must-revalidate");
			xmlHttp.setRequestHeader("If-Modified-Since", document.lastModified);
			xmlHttp.send(null);
		}
	}

	function alertInhalt() {
		if (xmlHttp.readyState==4 && xmlHttp.status==200) {
			var response = xmlHttp.responseText;    
			document.getElementById("langselectbox").innerHTML = response;
			document.getElementById("loading-indicator").style.display='none';
		}
	}
	

	function clipin (id) {
	if (document.getElementById(id).style.display == 'none') {
		document.getElementById(id).style.display = 'block'; 
	} else {
		document.getElementById(id).style.display = 'none'; } 
	}
	
	function clipout (id) {
		document.getElementById(id).style.display = 'none'; 
	}	
	
	
	