xmlhttp = Array();
function put(url,div) {
  xmlhttp[div] = new XMLHttpRequest();
  xmlhttp[div].open("GET", url, true);
  xmlhttp[div].onreadystatechange=function() {
    if (xmlhttp[div].readyState==4) {
      document.getElementById(div).innerHTML=xmlhttp[div].responseText;
    }
  }
  xmlhttp[div].send(null)
}