function chTdColor(o, sens) { if(o) { if(sens == 1) { o.style.background = '#52595C'; o.style.cursor = 'pointer'; }else{ o.style.background = '#FBA800'; o.style.cursor = 'normal'; } } } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i=5) ? true : false; } return br } function ToggleSpecs(id) { var oContent = getCell(id); var oContentAux = ''; if (oContent.style.display != 'none') { // Hide (collapse) if (oContent) { option_showed = 'none'; oContent.style.display = 'none'; } } else { // Show (expand) if (oContent) { if (option_showed != 'none') { oContentAux = getCell(option_showed); option_showed = 'none'; oContentAux.style.display = 'none'; } oContent.style.display = ''; option_showed = id; } } } function cambia_pais(pagina, pais, tipo_dominio, servidor) { var url = ''; if ((tipo_dominio == 'kekuko.com' || tipo_dominio == 'ke-ku-ko.com') && servidor != 'local') { /*if (pais == 'es') { pais = 'www'; }*/ if (pais == 'us') pais = 'usa'; url = 'http://' + pais + '.' + tipo_dominio; //NUEVO: url = url + '?geo=' + pais; } else { url = pagina + '?pais=' + pais; } window.location = url; } function cambia_idioma(pagina, varsget, idioma) { var url = ''; url = pagina + '?'; if (varsget != '') { url = url + varsget + '&'; } url = url + 'idioma=' + idioma; //alert(varsget); window.location = url; } function change_btn_ok() { var marca_modelo = document.getElementById("codmarcamodelo"); var operadora = document.getElementById("mcc_mnc"); var boton = document.getElementById("btnok"); if (marca_modelo.value != '' && operadora.value != '') boton.disabled=false; else boton.disabled=true; } function change_btn_bus_ok(letras, cats) { var boton = document.getElementById("id_bus_ok"); if (cats == ''){ boton.disabled=true; if (letras.length > 0) boton.disabled=false; } else { boton.disabled=false; } } function abrir_popup(url, tipo, ancho, alto) { var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+ancho+",height="+alto+",top=85,left=140"; window.open(url,"",opciones); } function abrir_popup_TPV(url, ancho, alto) { var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+ancho+",height="+alto+",top=85,left=140"; window.open(url,"",opciones); } // Al menos se utiliza para quitar el swf de > 18 function hidLay(name, show) { name.style.visibility = show; // Ejecutamos en un iframe oculto, la pagina para poner la variable de Sesion a 1 window.oculto.location.href = '/sections/banner_erotico.php'; } function MM_goToURL() { //v3.0 var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); } function cambia_modelo(pagina, borro) { var url = ''; var marca = document.form.marca.value; if (borro == 1) modelo = ''; else modelo = document.form.modelo.value; if (marca == '') { return false; } if (modelo == '') { url = 'movil-' + marca + '.htm'; } else { url = 'movil-' + marca + '-' + modelo +'.htm'; } //url = pagina + '?marca=' + marca +'&modelo=' + modelo; window.location = url; } function new_pais(url) { window.location = url; } function cuenta(){ document.forms[0].caracteres.value=document.forms[0].texto.value.length } function contador(textarea, contad, formulario) { var max_caract = 160; var area = eval("document."+formulario+"."+textarea+".value"); var resultado = max_caract - area.length; if (area.length > max_caract){ pwpw = area.substring(0,max_caract); //document.getElementById('mensaje').value = pwpw; eval("document."+formulario+"."+textarea+".value = '"+pwpw+"'"); } else { eval("document."+formulario+"."+contad+".value = '"+resultado+"'"); } }