function ajax()
{            
    try
    {    // Firefox, Opera 8.0+, Safari   
    
        aj=new XMLHttpRequest();
           
    }
    catch (e)
    {    // Internet Explorer    
        try
        {      
            aj=new ActiveXObject("Msxml2.XMLHTTP"); 
               
        }
        catch (e)
        {
            try
            {
                aj=new ActiveXObject("Microsoft.XMLHTTP"); 
                      
            }
            catch (e)
            {        
                alert("Your browser does not support AJAX!");        
                        
            }      
        }    
    }
    return aj;
}

function gettext(url,callbackobj)
{
    var xmlHttp = new ajax();
    xmlHttp.onreadystatechange=function()
    {
       
      if(xmlHttp.readyState==4)
      {           
           if (typeof callbackobj == "function") callbackobj(xmlHttp.responseText); 
           else callbackobj.innerHTML = xmlHttp.responseText;
      }
    }
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null); 
}

