function nuevoAjax(){ var obj; if(window.XMLHttpRequest){ obj = new XMLHttpRequest(); } else if(window.ActiveXObject){ obj = new ActiveXObject("Microsoft.XMLHTTP"); } return obj; } function DenunciarComentarioPlayer(COMMENT_ID){ var ajax=nuevoAjax(); document.getElementById('link_denuncia'+COMMENT_ID).style.display='none'; document.getElementById('denuncia'+COMMENT_ID).style.display='block'; ajax.open("GET", "/sections/plantilla/jugador-denunciarcommentrun.php?comment_id="+COMMENT_ID, true); ajax.send(null); } function ConfirmDeleteCommentPlayer(COMMENT_ID) { if(confirm("?Est?s seguro de eliminar este comentario de la ficha del jugador?")){ location.href="/sections/plantilla/jugador-delcomment.php?comment_id="+COMMENT_ID; } } function FotosActionCookie(site,action,pos) { var cookie_date = new Date(); cookie_date.setTime ( cookie_date.getTime() + 360000000 ); document.cookie=site+"_a_igf = " + action + ";" + baseDomainString() + " expires = "+ cookie_date.toGMTString() +"; path=/"; document.cookie=site+"_p_igf = " + pos + ";" + baseDomainString() + " expires = "+ cookie_date.toGMTString() +"; path=/"; if(action!=0){ FotosAlbumCookie(site,'',pos); } } function FotosAlbumCookie(site,album_id,pos) { var cookie_date = new Date(); cookie_date.setTime ( cookie_date.getTime() + 360000000 ); document.cookie=site+"_a_id_igf = " + album_id + ";" + baseDomainString() + " expires = "+ cookie_date.toGMTString() +"; path=/"; document.cookie=site+"_p_igf = " + pos + ";" + baseDomainString() + " expires = "+ cookie_date.toGMTString() +"; path=/"; } function baseDomainString(){ e = document.domain.split(/\./); if(e.length > 1) { return("domain=." + e[e.length-2] + "." + e[e.length-1]) + ";" ; }else{ return(""); } } function obre_s(URL,Scroll,Wpag,Hpag) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width="+Wpag+",height="+Hpag+"');"); }