
function divlink(div_id,link){

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp2=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
	 xmlhttp2=new ActiveXObject("Microsoft.XMLHTTP");
  }
	xmlhttp2.onreadystatechange=function()
  {
  if (xmlhttp2.readyState==4 && xmlhttp2.status==200)
    {

    document.getElementById(div_id).innerHTML=xmlhttp2.responseText;	
    }
  }

 link =link + "&div="+div_id
  //alert(link);
 //document.getElementById(did).bgcolor=
xmlhttp2.open("GET",link,true);
xmlhttp2.send();
}

function divlinkbg(div_id,link,bg){

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp2=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
	 xmlhttp2=new ActiveXObject("Microsoft.XMLHTTP");
  }
	xmlhttp2.onreadystatechange=function()
  {
  if (xmlhttp2.readyState==4 && xmlhttp2.status==200)
    {

   // document.getElementById(div_id).innerHTML=xmlhttp2.responseText;	
    }
  }

 //link =link + "&div="+div_id
 // alert(bg);
document.getElementById(div_id).style.background=bg;
xmlhttp2.open("GET",link,true);
xmlhttp2.send();
}

function divsetheight(div_id,link,hh){

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp3=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
	 xmlhttp3=new ActiveXObject("Microsoft.XMLHTTP");
  }
	xmlhttp3.onreadystatechange=function()
  {
  if (xmlhttp3.readyState==4 && xmlhttp3.status==200)
    {

   // document.getElementById(div_id).innerHTML=xmlhttp2.responseText;	
    }
  }

 //link =link + "&div="+div_id
  //alert(link);
document.getElementById(div_id).style.height=hh;
xmlhttp3.open("GET",link,true);
xmlhttp3.send();
}

