   function getXMLHTTP() {
                var xmlhttp=false;
                try{ xmlhttp=new XMLHttpRequest();} catch(e)
                {try{xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");} catch(e)
                {try{req = new ActiveXObject("Msxml2.XMLHTTP");} catch(e1)
                {xmlhttp=false;}}}
                return xmlhttp;
        }
   function getState(CCode,divName,defVale) {
      if (typeof defVale == "undefined") defVal="";
      var SelName = document.getElementById(divName).getElementsByTagName("*")[0].name;
      var req = getXMLHTTP();
      if (req) {
            document.getElementById(divName).innerHTML="<img src='/js/loading_bar.gif'>";
            req.onreadystatechange = function() {
               if (req.readyState == 4) {
                  if (req.status == 200) {
                      document.getElementById(divName).innerHTML=req.responseText;
                  } else {
                      alert("There was a problem while using XMLHTTP:\n" + req.statusText);
            }}}
            req.open("GET","/js/states.php?CCode="+CCode+"&SelName="+SelName+"&DefVal="+defVale, true);
            req.send(null);
            }
        }
   function getDonors(ID,divName) {
      var req = getXMLHTTP();
      if (req) {
            document.getElementById(divName).innerHTML="<img src='/js/loading_bar.gif'>";
            req.onreadystatechange = function() {
               if (req.readyState == 4) {
                  if (req.status == 200) {
                      document.getElementById(divName).innerHTML=req.responseText;
                  } else {
                      alert("There was a problem while using XMLHTTP:\n" + req.statusText);
            }}}
            req.open("GET","/js/donors.php?ID="+ID, true);
            req.send(null);
            }
        }


