﻿function abrirPlayer(url){		
    var ventana;	
    var top = (screen.height/2) - (290/2);
    var left = (screen.width/2) - (424/2);
	ventana=window.open(url, 'Player','width=424,height=290,scrollbars=0,menubar=0,toolbar=0,location=0,status=0,resizable=0,top='+top+',left='+left,true);
	ventana.focus();
}

function cargarVentanaVotos(codigo, radio){
	var ventana;
	ventana=window.open('wfTopMusicalVotar.aspx?codigo=' + codigo + '&radio=' + radio, 'votarTop','width=520,height=200,scrollbars=1,menubar=0,toolbar=0,location=0,status=0,resizable=0',true);
	ventana.focus();
}

function popupGenerico(url,ancho,alto,nombre){		
    var ventana;	
    var top = (screen.height/2) - (alto/2);
    var left = (screen.width/2) - (ancho/2);
	ventana=window.open(url, nombre,'width='+ancho+',height='+alto+',scrollbars=0,menubar=0,toolbar=0,location=0,status=0,resizable=0,top='+top+',left='+left,true);
	ventana.focus();
}

function maxCaracteres(txarea,totalCaracteres) 
{ 
    total = totalCaracteres; 
    tam = txarea.value.length; 
    str=""; 
    str=str+tam; 
    Digitado.innerHTML = str; 
    Restante.innerHTML = total - str; 

    if (tam > total){ 
        aux = txarea.value; 
        txarea.value = aux.substring(0,total); 
        Digitado.innerHTML = total 
        Restante.innerHTML = 0 
    } 
}

function cargarPerfil(url, ancho, alto, nombre){
	var ventana;
	ventana=window.open(url, nombre,'width=' + ancho + ',height=' + alto + ',scrollbars=0,menubar=0,toolbar=0,location=0,status=0,resizable=0',false);
	ventana.focus();
}

function imagenDetalleRadio(url){
	var ventana;	
    var top = (screen.height/2) - (550/2);
    var left = (screen.width/2) - (700/2);
	ventana=window.open(url, 'GaleriaRadio','width=700,height=550,scrollbars=0,menubar=0,toolbar=0,location=0,status=0,resizable=0,top='+top+',left='+left,true);
	ventana.focus();
}


function cargarFMCLave(url){
	var ventana;
	ventana=window.open(url, 'fmClave','width=520,height=520,scrollbars=1,menubar=0,toolbar=0,location=0,status=0,resizable=0',true);
	ventana.focus();
}