
    // function to create XmlHttp Object
    function getxmlhttp(){
        var xmlHttp = false;
        if (window.XMLHttpRequest){
              // If IE7, Mozilla, Safari, etc: Use native object
              var xmlHttp = new XMLHttpRequest();
        }else{
            if (window.ActiveXObject){
              // ...otherwise, use the ActiveX control for IE5.x and IE6
              var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
        }

        return xmlHttp;
    }

    //function to process an XMLHttpRequest
    function process_ajax_register(url, divID){
      xmlhttp = getxmlhttp();
        var obj = document.getElementById(divID);
        
            xmlhttp.open("GET",url);
            xmlhttp.onreadystatechange = function(){
                obj.style.display=""; 
                if(xmlhttp.readyState < 4)
                    obj.innerHTML = "Please wait...";
                else if(xmlhttp.readyState == 4 && xmlhttp.status == 200){
                   obj.innerHTML = xmlhttp.responseText;
                   document.getElementById('user_name').value="Name";
                   document.getElementById('user_email').value="Email"; 
                   document.getElementById('company').value="Company";
                   document.getElementById('reason').value="Reason";
               }
          }
            xmlhttp.send(null);
      }
