function loadXMLDoc(url,datatosend) 
  {
      // branch for native XMLHttpRequest object

      if (window.XMLHttpRequest) {
          req = new XMLHttpRequest();
          //Following line was removed for compatibility with IE7
          //req.overrideMimeType('text/xml'); 
          req.onreadystatechange = processReqChange;          
          req.open("POST", url, true);
          req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
          req.send(datatosend);
      // branch for IE/Windows ActiveX version
      } else if (window.ActiveXObject) {
          req = new ActiveXObject("Microsoft.XMLHTTP");
          if (req) {
              req.onreadystatechange = processReqChange;            
              req.open("POST", url, true);
              req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
              req.send(datatosend);
          }
      }
  } 
