function ajax(Url, Id, Action) {
			
	if(Action == "Form" && document.forms[Id]) for (var i=0; i<document.forms[Id].elements.length; i++)  Url=Url+"&"+document.forms[Id].elements[i].name+"="+encodeURIComponent(document.forms[Id].elements[i].value);
	
	try {
	
	
		
		if(typeof ActiveXObject!="undefined"){
			var http = new ActiveXObject("Microsoft.XMLHTTP");
		}
		else if(window.XMLHttpRequest){
			var http = new XMLHttpRequest;
		}
	}
	catch(e) {
//			document.getElementById(Id+"_div").innerHTML = "Fehler!";
	}
	
	http.open('get', Url, true);
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	http.onreadystatechange = function() {

		if(http.readyState == 4){
			if(Action == "ajaxGallery") interval[Id] = setInterval("preload("+Id+")", 100);
			else document.getElementById(Id).innerHTML = http.responseText;
		}
		else {
//			document.getElementById(Id+"_div").innerHTML = "Lade...";
		}
	}
	http.send(null);
}
function ajaxConfirmation(MSG, Action, Id) {
	Confirm = confirm(MSG);
	if(Confirm == true) {
		return ajax(Action, Id);
	}
}

