var xmlHttp2;

function showStar(point, idMedia)
{
    xmlHttp2=GetXmlHttpObject2()
    if (xmlHttp2==null)
    {
            alert ("Su navegador no soporta AJAX!");
            return;
    }
    var url="../ajaxPages/viewStarConf.jsp?point="+point+"&idMedia="+idMedia+"&x="+Math.random();
    xmlHttp2.onreadystatechange=stateChanged2;
    xmlHttp2.open("GET", url, true);
    xmlHttp2.send(null);
}
function stateChanged2() 
{ 
    if (xmlHttp2.readyState==4)
    {
//        var votes_table = document.getElementById("votes_table");
//        var votes_parent = votes_table.parentNode;
//        votes_parent.removeChild(votes_table);
        document.getElementById("votes_container").innerHTML=xmlHttp2.responseText;
    }
    else document.getElementById("votes_container").innerHTML='<span style="font-size:11px; font-family:arial; color:#cccccc">Cargando</span>';
}   
function GetXmlHttpObject2()
{
    var xmlHttp2=null;
    try
    { // Firefox, Opera 8.0+, Safari...
        xmlHttp2=new XMLHttpRequest();
    }
    catch (e)
    {
        // Internet Explorer...
        try
        {
            xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e)
        {
            xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
    return xmlHttp2;
}