/**
 *
 * @access public
 * @return void
 **/
function logintrac(m,n)
{
  var parameters="";


		        var sectionname=m;

				if(m=='out_communities')
					{
						var url="/com_logintrac/";
					}
				else if(m=='out_blogs')
					{
						var url="/blogs_logintrac/";
					}
				else
					{
						var url="/find_geoip.php";
					}

				parameters= parameters +"sectionname="+sectionname;
			    var xhr=getXhr();



		if(xhr)
			{

			     xhr.onreadystatechange=function()
				  {
		    		if(xhr.readyState == 4 && xhr.status == 200)
					{
                         var xx=xhr.responseText;

                    }

                 }

		        xhr.open('POST',url, true);
		        xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		        xhr.setRequestHeader("Content-length", parameters.length);
		        xhr.setRequestHeader("Connection", "close");
		        xhr.send(parameters);
			}
		    //else alert("error");



}

/**
 *
 * @access public
 * @return void
 **/
function pageview_blog(blogtopicid,page){
var parameters="blogtopicid="+blogtopicid;
//var url="updatepageview.php";
if(page=='out')
{
var url="http://www.siliconindia.com/blogs/updatepageview.php";

}
if(page=='in')
{
var url="/updatepageview.php";
}
var xhr=getXhr();

		if(xhr)
		{
				xhr.onreadystatechange=function()
				  {
                       
		    		if(xhr.readyState == 4 && xhr.status == 200 )
					{
                         var xx=xhr.responseText;
                        
                    }

                 }
		}

		xhr.open('POST',url, true);
		xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xhr.setRequestHeader("Content-length", parameters.length);
		xhr.setRequestHeader("Connection", "close");
		xhr.send(parameters);


}

function getXhr()
		{
				var xmlHttp;
				try
				  {
				  // Firefox, Opera 8.0+, Safari
				  xmlHttp=new XMLHttpRequest();
				  }
				catch (e)
				  {
				  // Internet Explorer
				  try
				    {
				    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
				    }
				  catch (e)
				    {
				    try
				      {
				      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				      }
				    catch (e)
				      {
				      alert("Your browser does not support AJAX!");
				      return false;
				      }
				    }
				  }
				return xmlHttp;
		  }

