//***************************************
// AJAX SCRIPT TO ADD OPTIONAL/KIT ITEMS
//***************************************

function setupHTTPObject(objHTTP, type, url, functionToCall, bAsync)
{
	if (objHTTP)
	{
		objHTTP.open(type, url, bAsync);
		if (typeof(objHTTP.onload) != "undefined" && !bAsync)
			objHTTP.onload = eval(functionToCall);
		else
			objHTTP.onreadystatechange = eval(functionToCall);
		objHTTP.send(null);
	}
}

function getHTTPObject() {
	var xmlhttp;
	if (window.ActiveXObject)
	{
		try
		{
			//This is the newest version, try it first.
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e2)
		{
			try
			{
				//Couldn't use the newest, so for the older browsers,
				//use this one.
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e3)
			{
				//Still no luck, better return false
				xmlhttp = false;
			}
		}
	}
	else if (typeof XMLHttpRequest != 'undefined') 
	{
		try 
		{
			xmlhttp = new XMLHttpRequest();
			xmlhttp.overrideMimeType('text/xml');
		} 
		catch (e) 
		{
			xmlhttp = false;
		}
	}
	return xmlhttp;
}
