function ajaxObj()
{
	if (/\b(function|object)\b/i.test(typeof XMLHttpRequest) && XMLHttpRequest)
	{
		// try..catch wird nicht universell unterstützt, ist aber hier
		// möglicherweise notwendig
		try
		{
			this.request = new XMLHttpRequest();
		}
		catch (e) {}
	}
	else if(/\b(function|object)\b/i.test(typeof ActiveXObject) && ActiveXObject)
	{
		// s.o.; try..catch ist hier notwendig
		try
		{
			this.request = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e) {}
	}	
}

	ajaxObj.prototype = {
     constructor: ajaxObj,
     request: null,

	showGalleryImage: function(ID,div,module)
	{
		this.constructor();
		var req = this.request;
		var me = this;
		
		req.open('POST', "inc_load_gallery_image.php", true);
		req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');		
		req.onreadystatechange = function()
		{
			me.handleResponse(req,div);
			
		}	
		req.send("ID="+ID+"&div="+div+"&module="+module);	
	},
		
	handleResponse: function(req,thisName)
	{
		if(req.readyState == 4)
		{
			document.getElementById(thisName).innerHTML = req.responseText;			
		}
	}
	
	
}