      var xmlHttp = false; 
      if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
      } else if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
      }
      function getData(dataSource, divID) 
      { 
        if(xmlHttp) {
          var obj = document.getElementById(divID); 
          xmlHttp.open("GET", dataSource); 
          xmlHttp.onreadystatechange = function() 
          { 
            if (xmlHttp.readyState == 4 && 
              xmlHttp.status == 200) { 
                obj.innerHTML = xmlHttp.responseText; 
            } 
          } 
          xmlHttp.send(null); 
        }
      }
//called from art_accession.asp      
      function getDID() 
      {
        var did = document.getElementById("donorselect").value;
        var url = "ajax_data.asp?did=" + escape(did);
        xmlHttp.open("GET", url, true)
// this is our return processor        
        xmlHttp.onreadystatechange = updatedidinfo
        xmlHttp.send(null);
      }
      function updatedidinfo() 
      {
        if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
//        alert("into it");
        var did = xmlHttp.responseText;
//        alert(did);
        document.getElementById("targetDiv").innerHTML = did;
        }    
      }
//called from newspapers.asp      
      function getarticle()
      {
        var artid = document.getElementById("artid").value;
        var url = "ajax_data.asp?artid=" + escape(artid);
        xmlHttp.open("GET", url, true)
// this is our return processor        
        xmlHttp.onreadystatechange = updatearticle
        xmlHttp.send(null);
      }
//return processor for getarticle()      
      function updatearticle() 
      {
        if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
//        alert("into v it");
//        debugger;
        var article = xmlHttp.responseText;
        var tsplit = article.split('|')
//        alert(did);
        document.getElementById("newspaper").innerHTML = tsplit[0];
        document.getElementById("textdate").innerHTML = tsplit[1];
        document.getElementById("head1").innerHTML = tsplit[2];
        document.getElementById("head2").innerHTML = tsplit[3];
        document.getElementById("article").innerHTML = tsplit[4];
        document.getElementById("nxtartid").innerHTML = tsplit[5];
//        alert(document.getElementById("nxtartid").innerHTML = tsplit[5])
        }    
      }

// added 05/03/06
      function getitemtype() 
      {
//      debugger;
        var itemtype = document.getElementById("itemtype").value;
        var url = "ajax_data.asp?itemtype=" + escape(itemtype);
//        alert(url);
        xmlHttp.open("GET", url, true)
// this is our return processor        
        xmlHttp.onreadystatechange = updateiteminfo
        xmlHttp.send(null);
      }
      
      function updateiteminfo() 
      {
        if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
//        alert("into it");
        var iteminfo = xmlHttp.responseText;
//        alert(did);
        document.getElementById("targetDiv").innerHTML = iteminfo;
        }    
      }

