var HTTP;
var gReadyToProcess =  true;

function getHttpObject() {

   xmlhttp = false;
   
   // branch for native XMLHttpRequest object
   if(window.XMLHttpRequest) {   
   	  try {
	     xmlhttp = new XMLHttpRequest();
      } catch(e) {
	     xmlhttp = false;
      }
      
   // branch for IE/Windows ActiveX version
   } else if(window.ActiveXObject) {
      try {
         xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
      } catch(e) {
         try {
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
         } catch(e) {
            xmlhttp = false;
         }
	  }
   }
   
   return xmlhttp;
}



/*
function httpResponseHandler() {
	var rc;
	     
	if (HTTP.readyState == 4) {
        if (HTTP.responseText != "") {
            rc = HTTP.responseText;
            HTTP = null;
            if (rc.indexOf("Error") > -1) {
                alert(rc);
                
            } else if(rc.indexOf("Failure") > -1) {
                alert("The validation code is incorrect or expired.  Please retype the code or refresh the screen.");
            
            } else if(rc.length == 11) {
                var frm = document.commentFrm;
                frm.callbackPassw.value = rc;
                frm.submit();
            }
            
        }
        HTTP = null;
        gReadyToProcess = true;
    }
}

*/