function world() //Search country
{ //alert(lang);
	//alert(councid);
	//alert(bjid);
var url="newsworld.php";

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

url =url;
//alert(url);
//url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChangednews;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function sports() //Search country
{ //alert("DSGDAFG");
	//alert(councid);
	//alert(bjid);
	
var url="newssports.php";

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

url =url;
//alert(url);
//url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChangednews;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function radio() //Search country
{ //alert("DSGDAFG");
	//alert(councid);
	//alert(bjid);
var url="radio.php";

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

url =url;
//alert(url);
//url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChangednews;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function national() //Search country
{ //alert("DSGDAFG");
	//alert(councid);
	//alert(bjid);
var url="newsmain.php";

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

url =url;
//alert(url);
//url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChangednews;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChangednews() 
{ 
if (xmlHttp.readyState==4)
{ 
//alert(xmlHttp.responseText);
//alert(xmlHttp.responseText);
document.getElementById("newshead").innerHTML=xmlHttp.responseText;

}
}

function GetXmlHttpObject()
{
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;
}
