var xmlHttp = createXmlHttpRequestObject();



function runAjax()

{

   xmlHttp = createXmlHttpRequestObject();

   process();

}



function createXmlHttpRequestObject()

{

    var outVar;

    try

    {

        outVar = new XMLHttpRequest();

    }

    catch(e)

    {

        var xmlHttpVersions = new Array("MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.5.0",

                                        "MSXML2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0",

                                        "MSXML2.XMLHTTP", "Microsoft.XMLHTTP");

        for (var i=0; i<xmlHttpVersions.length; i++)

        {

            try

            {

                outVar = new ActiveXObject(xmlHttpVersions[i]);

            }

            catch(e) {}

        }

    }

    if (!outVar)

    {

    

    }

    else return outVar;

}



function process()

{

    if (xmlHttp)

    {

        try

        {

            

            var url = "index_song.php";



            xmlHttp.open("POST", url, true);



            xmlHttp.onreadystatechange = handleStateChange;



            xmlHttp.send(null);

        }

        catch (e) {}



    }

}



function handleStateChange()

{

    if (xmlHttp.readyState == 4)

    {

        if (xmlHttp.status == 200)

        {

            

            var response = xmlHttp.responseText;

            //alert(response);

            

            document.getElementById('someDIV').innerHTML = response;

        }

    }

}



function clearResponseText()

{

    document.getElementById('someDIV').innerHTML = "";

}
