function getHTTPObject()
{
	if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
	else if (window.XMLHttpRequest) return new XMLHttpRequest();
	else 
	{
		alert("Your browser does not support AJAX.");
		return null;
	}
}

function changeCalendarPage()
{		
	if (httpObject.readyState == 4) 
	{
		// Split the comma delimited response into an array
		window.location = httpObject.responseText;
	}
}
		
function changeCalendar()
{
	httpObject = getHTTPObject();

	if (httpObject != null)
	{
		httpObject.open("GET", "test2.php", true);
		httpObject.send(null);
		httpObject.onreadystatechange = changeCalendarPage;
	}

}

function changeLogin()
{
	window.location = "http://selfservice.championsway.net/MyOffice/vbbx/cs_login.aspx?o=13414";
}
	
var httpObject = null;