function autoRefresh()
{
getdata1("latest_update.php?id=forum","forum");
linksTimer = setTimeout('autoRefresh("forum")',50000);

}



function getdata1 ( datasource,destid )
{
  

	 try
 {
  

 var xmlobj='false'
if( window.XMLHttpRequest )  //browsers other than ie 5.5 - 6.0.
{
    xmlobj=new XMLHttpRequest()
}
else
	 {
      try
		 {
          xmlobj=new ActiveXObject( "Microsoft.XMLHTTP" )  
		 }
        catch(e)
		 {
           alert("Error:Browser:"+e);
		 }
	  }
}
catch(e)
                 {
                 alert("Error:0"+e);
				}
	
	try
	{
	
	
	
	if ( xmlobj )
	{
		
		var url=datasource+"&sid="+Math.random()
		 
		try
		{
		xmlobj.open ( "GET",url,true )
	  	}
		catch(e)
		{alert(e);}
		xmlobj.onreadystatechange=function()
		{
		
			if ( xmlobj.readyState==4 && xmlobj.status==200 )
			{
		         
			      document.getElementById(destid).innerHTML= xmlobj.responseText;
						     
			    
			
			}
		
		
		}
		xmlobj.send ( null )
	}
	

	}
	catch(e)
	{
alert("Error:2"+e);
	}
}

//***************************************End of Getdata function****************************************************








