function createXMLHttpRequest()
{        
    try
    {
        xmlHttp = new XMLHttpRequest();
        return xmlHttp;
    }
    catch(trymicrosoft)
    {
        try
        {
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
            return xmlHttp;
        }
        catch(othermicrosoft)
        {
            try
            {
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
                return xmlHttp;
            }
            catch(failed)
            {
                return xmlHttp;
            }
        }
    }
   
   if (!xmlHttp)
   {
    return false;
   }
}

function getResponseText(method,url,obj)
{
    xmlHttp=createXMLHttpRequest();
    if (xmlHttp==null)
    {
        return "[error]";
    }
    xmlHttp.open(method,url);
    xmlHttp.onreadystatechange=function()
    {
        if(4==xmlHttp.readyState)
        {
            if(200==xmlHttp.status)
            {
                obj.innerHTML=xmlHttp.responseText;
                xmlHttp=null;
            }
        }
    }
    xmlHttp.send();
}
