function createXMLHttpRequest(cbFunc) {
  var XMLhttpObject = null;
  try{
    XMLhttpObject = new XMLHttpRequest();
  }catch(e){
    try{
      XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
      try{
        XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP");
      }catch(e){
      	alert(e);
         return null;
      }
    }
  }
  if (XMLhttpObject){
    if(cbFunc != null){
      XMLhttpObject.onreadystatechange = cbFunc;
    }
  }
  return XMLhttpObject;
}
