var xmlHttp

function showHint(str)
{

  xmlHttp=GetXmlHttpObject();
  if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }


  var url="news_src.php";
  url=url+"?id="+str;  
  xmlHttp.onreadystatechange=stateChanged;
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);


} 

function stateChanged()
{
	if (xmlHttp.readyState==4)
	{
	 document.getElementById("NewState").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;
}

function showDown(id)
{
	var xmlHttp_2=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp_2=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp_2=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp_2=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
		
	
  if (xmlHttp_2==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }


  var url_2="down.php";
  url_2=url_2+"?id="+id;  
  xmlHttp_2.onreadystatechange=function (){
  
	if (xmlHttp_2.readyState==4)
	{
	 document.getElementById("DownImg").innerHTML=xmlHttp_2.responseText;
	}
  }
  ;
  xmlHttp_2.open("GET",url_2,true);
  xmlHttp_2.send(null);

}
