

            function getXMLHTTP() 
            { 
                var xmlhttp=false;    
                 try
                 {
                      xmlhttp=new XMLHttpRequest();
                 }
                 catch(e)    
                 {        
                 try
                 {            
                      xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
                 }
                 catch(e)
                 {
                 try
                 {
                      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
                 }
                 catch(e1)
                 {
                 xmlhttp=false;
                 }
                 }
                 }
             
              return xmlhttp;
            }
        function getFullAddress(strURL)
             {        
               var req = getXMLHTTP();        
               if (req) 
               {
                   //function to be called when state is changed
                   req.onreadystatechange = function()
               {
                  //when state is completed i.e 4
               if (req.readyState == 4) 
                {            
                  // only if http status is "OK"
                 if (req.status == 200)
                 {                        
                     document.getElementById('fulladdress').value=req.responseText;                        
                 } 
                else 
                {
                    alert("There was a problem while using XMLHTTP:\n" + req.statusText);
                }
                }                
                }            
                req.open("GET", strURL, true);
                req.send(null);
                }            
               }               
  
      function reload(form)
              {
                var val=form.district.options[form.district.options.selectedIndex].value;
                self.location='enroll.php?district=' + val ;
                }

