 /**
  * AjaxObject()
  * @author nobs
  *
  * created 02.02.2005 
  */

 var isAjax=false;
 var AjaxObject=null;

 function initAjax()
	{
	 try
		{
		AjaxObject=new ActiveXObject("Microsoft.XMLHTTP");
		isAjax=true;
		}
	 catch (Error)
		{
		try
			{
			AjaxObject=new ActiveXObject("MSXML2.XMLHTTP");
			isAjax=true;
			}
		catch (Error)
			{
			try
				{
				AjaxObject=new XMLHttpRequest();
				isAjax=true;
				}
			catch (Error)
				{
				alert("Kein Javascript oder kein Ajax (XMLHTTP-Object)?\nWird aber beides gebraucht!");
				}
			}
		}
	}

 function getAjaxObject()
 	{
 	return AjaxObject;
 	}
 	
 function hasAjax()
 	{
 	return isAjax;
 	}
 	
 function handleContent()
	{
	if (AjaxObject.readyState==4)
		{
		document.getElementById("content").innerHTML=AjaxObject.responseText;
		}
	}
	
 function AjaxInfo()
	{
	this.initAjax=initAjax;
	this.initAjax();
	
	this.hasAjax=hasAjax;
	this.handleContent=handleContent;
	this.AjaxObject=getAjaxObject;
	}
