var xmlHttp

function stateChangeContactBox(){if (xmlHttp.readyState==4){document.getElementById("ContactForm").innerHTML=xmlHttp.responseText;}}
function stateChangeloadFlash(){if (xmlHttp.readyState==4){document.getElementById("FlashContainer").innerHTML=xmlHttp.responseText;}}

function startAjax(i, q){
	xmlHttp=GetXmlHttpObject();
	
	if (xmlHttp==null)
	  {
		  alert ("Your browser does not support AJAX!");
		  return;
	  } 
	
	var url="/_private/AjaxActionObjects.php";
	url=url+"?i="+i+q;
	url=url+"&sid="+Math.random();
	
	if (i==1){xmlHttp.onreadystatechange=stateChangeContactBox;} // 1 = 
	if (i==2){xmlHttp.onreadystatechange=stateChangeContactBox;} // 2 = 
	if (i==3){xmlHttp.onreadystatechange=stateChangeContactBox;} // 2 = 
	if (i==4){xmlHttp.onreadystatechange=stateChangeloadFlash;} // 2 = 
	
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);	
	
}

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	  {
	  // Firefox, Opera 8.0+, Safari
		  xmlHttp=new XMLHttpRequest();
	  }
	catch (e)
	  {
	  // Internet Explorer
	  try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
	  catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	  }
	return xmlHttp;
}

