function CreateXH(){ 
    var A = null; 
    try { 
        A = new ActiveXObject('Msxml2.XMLHTTP');
    } 
    catch(e) 
    { 
        try{
            A = new ActiveXObject('Microsoft.XMLHTTP') 
        } 
        catch(oc) 
        { 
            A = null;
        } 
    } 
    if ( !A && typeof XMLHttpRequest != 'undefined' ) 
    { 
        A = new XMLHttpRequest();
    } 
    return A;
}

function GetData(url,obj)
{    
    var req = new CreateXH();
    if (req) {
        req.onreadystatechange = function() {            
            if (req.readyState == 4 && (req.status == 200 || req.status == 304)) {
                var s = req.responseText;
                obj.innerHTML = s;    
            }            
            
        };
        req.open('GET', url,true);
        req.send(null);
    }
}
