var xmlHttpfooter;
function footer(id)
{ 
xmlHttpfooter=GetxmlHttpfooterObject()
if (xmlHttpfooter==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="footer_action.php?id="+id;
url=url+"&amp;sid="+Math.random()
xmlHttpfooter.onreadystatechange=stateChangedFooter 
xmlHttpfooter.open("GET",url,true)
xmlHttpfooter.send(null)
}
/////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
function stateChangedFooter() 
{ 
if (xmlHttpfooter.readyState==4 || xmlHttpfooter.readyState=="complete")
 { 
document.getElementById('contentf').innerHTML=xmlHttpfooter.responseText;
 } 
}

function GetxmlHttpfooterObject()
{
var xmlHttpfooter=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpfooter=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpfooter=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpfooter=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpfooter;
}
