function getXMLHttpObject()
{
	var xmlHttp;
	try
	{
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	return xmlHttp;
}

function ajaxRotator1(v1, v2)
{
	var xmlHttp = getXMLHttpObject();
	
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			document.getElementById('ad1').innerHTML=xmlHttp.responseText;
		}
	}
	xmlHttp.open("GET","bannerrotate/adrotator.php?v1=" + v1 + "&v2=" + v2, true);
	xmlHttp.send(null);
}

function ajaxRotator2(v1, v2)
{
	var xmlHttp = getXMLHttpObject();
	
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			document.getElementById('ad2').innerHTML=xmlHttp.responseText;
		}
	}
	xmlHttp.open("GET","bannerrotate/adrotator.php?v1=" + v1 + "&v2=" + v2, true);
	xmlHttp.send(null);
}

function ajaxRotator3(v1, v2)
{
	var xmlHttp = getXMLHttpObject();
	
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			document.getElementById('ad3').innerHTML=xmlHttp.responseText;
		}
	}
	xmlHttp.open("GET","bannerrotate/adrotator.php?v1=" + v1 + "&v2=" + v2, true);
	xmlHttp.send(null);
}
