function getHTTPObject()
{
 return self.xmlHttpReq;
}
function ajaxrequest(cityName)
{
//alert("call success!!");
var xmlHttpReq = false;
var self= this;
 if (window.ActiveXObject)
 {
  self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
 }
 else
 {
 
  self.xmlHttpReq = new XMLHttpRequest();
 } 


   self.xmlHttpReq.open("POST","../blog-network/cityFeaturesTopics.php",true);
   self.xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
   self.xmlHttpReq.onreadystatechange=handleReturn;
   self.xmlHttpReq.send("cityNameBn="+cityName);
  	function handleReturn()
	 {
		if (self.xmlHttpReq.readyState == 4) 
		{
				if (self.xmlHttpReq.status == 200)
				{
				 document.getElementById("featuredBloggers").innerHTML=self.xmlHttpReq.responseText;
				}   
				else 
				{
						document.getElementById("featuredBloggers").innerHTML="The blog network is unable to access the featured bloggers due to some internal problem. Please try again!!"; 
				}
		}
		else
		{
				document.getElementById("featuredBloggers").innerHTML="<img src=\"../blog-network/images/zoho-busy.gif\"> fetching Bloggers..";
		}
	}


}

function traffic(expertised,type,auId)
{
	//alert("call success!!");
	var xmlHttpReq = false;
	var self= this;
	if (window.ActiveXObject)
	{
		self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		self.xmlHttpReq = new XMLHttpRequest();
	} 
	
	
	   self.xmlHttpReq.open("POST","traffic.php",true);
	   self.xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	   self.xmlHttpReq.onreadystatechange=handleReturn;
	   self.xmlHttpReq.send("expertised="+expertised+"&trafficType="+type+"&au_id="+auId);
		function handleReturn()
		{
			return;
		}
}


