var XmlHttp10;

function CreateXmlHttp10()
{
	//Creating object of XMLHTTP in IE
	try
	{
		XmlHttp10 = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
		try
		{
			XmlHttp10 = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(oc)
		{
			XmlHttp10 = null;
		}
	}
	//Creating object of XmlHttp10 in Mozilla and Safari 
	if(!XmlHttp10 && typeof XMLHttpRequest != "undefined")
	{
		XmlHttp10 = new XMLHttpRequest();
	}
}

function FilterTab6(svID, ocID, sbID, tcID, ccID)
{
	// URL to get states for a given client
	var requestURL = FilterTab6AjaxUrl;
	CreateXmlHttp10();
	// If browser supports XmlHttp10Request object
	if(XmlHttp10)
	{
		//Setting the event handler for the response
		XmlHttp10.onreadystatechange = HandleFilterTab6Lookup;

		//Initializes the request object with POST (METHOD of posting),
		//Request URL and sets the request as asynchronous.
		XmlHttp10.open("POST", requestURL,  true);
			
		// send header for post
		XmlHttp10.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
		
		//Sends the request to server
		var querystring = "svID="+ svID +"&ocID="+ ocID + "&sbID="+ sbID + "&tcID="+ tcID + "&ccID="+ ccID;
		XmlHttp10.send(querystring);
	}
}

function HandleFilterTab6Lookup()
{
	// To make sure receiving response data from server is completed
	if(XmlHttp10.readyState == 4)
	{
		// To make sure valid response is received from the server, 200 means response received is OK
		if(XmlHttp10.status == 200)
		{
			if(XmlHttp10.responseXML != null){
				DisableRadiosTab('rdoKinetics', XmlHttp10.responseXML.documentElement);
			}else{
				alert("There was a problem retrieving data from the server (responseXML == null)");
			}
		}
		else
		{
			alert("There was a problem retrieving data from the server (status = " + XmlHttp10.status + ")");
		}
	}
}