// JavaScript Document
var xml_Https

function selecttop5(val)
{ 
xml_Https=GetXmlHttpObjects();
if (xml_Https==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

if(val=='General') document.getElementById("topimg").src="../../images/menu_general.gif";
else if(val=='Entertainment') document.getElementById("topimg").src="../../images/menu_entertainment.gif";
else if(val=='Industry') document.getElementById("topimg").src="../../images/menu_industry.gif";
else document.getElementById("topimg").src="../../images/menu_culture.gif";
var url="top5picks.jsp";
url=url+"?val="+val;

xml_Https.onreadystatechange=statusChang;
xml_Https.open("GET",url,true);
xml_Https.send(null);
}

function statusChang() 
{
	
//document.getElementById("loader").style.display = "block";
	if (xml_Https.readyState==4)
	{ 
	document.getElementById("top5").innerHTML=xml_Https.responseText;
	//document.getElementById("loader").style.display = "none";
	}
}

function GetXmlHttpObjects()
{
var xml_Https=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xml_Https=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
	 xml_Https=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xml_Https=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xml_Https;
}
