var xmlHttp

function fnLoadFeaturedPlans(eProBrokerID, periodID, insuranceTypeID, brokerState){

	xmlHttp = fnGetXmlHttpObject();
	
	if (xmlHttp == null)
	{
		alert ("Your browser does not support AJAX!");
		return;
	} 
	
	var myURL = "featuredPlans.asp";
		myURL = myURL + "?eproBrokerID=" + eProBrokerID;
		myURL = myURL + "&periodID=" + periodID;
		myURL = myURL + "&insuranceTypeID=" + insuranceTypeID;
		myURL = myURL + "&brokerState=" + brokerState;
		
	xmlHttp.onreadystatechange = function(){
			if(xmlHttp.readyState == 4)
			{
				var objFeaturedPlans = document.all ? document.all.adFC : document.getElementById("adFC");
					objFeaturedPlans.className = "blackbox";      					
					objFeaturedPlans.innerHTML = xmlHttp.responseText;		      			
				ContentSlider("slider1", 6000, "", ">>");
			}
	}
	xmlHttp.open("GET", myURL, true);
	xmlHttp.send(null);
} 

function fnGetXmlHttpObject(){
	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;
}
