function playerButton(id)
{
   Element.replace('listen_button','<a href="#' + id + '" onclick="openPlayer(' + id + ');" id="listen_button"><img src="/stylesheets/images/customer/listen_full.jpg" /></a>')
}

function openPlayer(id)
{
   window.open('/player/for/'+ id, 'rejoicemusicplayer', "width=600,height=380,menubar=no,toolbar=no,location=no,scrollbars=no,status=no,resizable=no")
}

// Get the object used for callbacks
function GetXmlHttpObject()
{
    var XMLHttp = null

    try
    {
        XMLHttp = new ActiveXObject("Msxml2.XMLHTTP")
    }
    catch (e)
    {
        try
        {
            XMLHttp = new ActiveXObject("Microsoft.XMLHTTP")
        }
        catch (e)
        {
            XMLHttp = null
        }
    }

    if (XMLHttp == null)
        XMLHttp = new XMLHttpRequest()

    return XMLHttp
}