function ver(capa) { var capas = new Array("recomendar","compartir","marcar"); var tope = capas.length-1; for(i = 0; i<=tope; i++) { var capeta = capas[i]; var capaEstilo = capeta+"2"; if(capa == capeta){ document.getElementById(capa).style.display='block'; document.getElementById(capaEstilo).className = 'active'; }else{ document.getElementById(capeta).style.display='none'; document.getElementById(capaEstilo).className = ''; } } } function mostrarPuntos(ptos) { document.getElementById('valoracionPuntos').innerHTML= ptos; } function mostrar(ideDiv) { if(document.getElementById(ideDiv).style.display=='none') { document.getElementById(ideDiv).style.display = 'block'; }else{ document.getElementById(ideDiv).style.display = 'none'; } } function darValoracion(valoracion) { document.getElementById('valoracion').innerHTML = ''; } function openFullScreen(ide) { window.open('http://www.minutelive.com/fullscreen.php?viewkey='+ide,'',''); } function recomendar(ide) { window.open('http://www.minutelive.com/recomendar.php?m='+ide,'','height=470,width=590'); } function compRegistro(form) { var divs = document.getElementsByTagName('input'); var strClass = 'rek'; var bien = true; for (ti=0;ti"; } if (ajax.readyState==4) { if(ajax.status==200) {document.getElementById(capa).innerHTML = ajax.responseText;} else if(ajax.status==404) { capa.innerHTML = "La direccion no existe"; } else { capa.innerHTML = "Error: ".ajax.status; } } } if(valorpost!=""){ ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); ajax.send(valorpost); } else { ajax.send(null); } } function compVideo(){ if(document.addvideo.video.value.length==0) { alert("Por favor seleccione un video para subir"); return false; } if(document.addvideo.titulo.value.length==0) { alert("Introduzca un titulo para el video"); return false; } if(document.addvideo.tags.value.lenght==0) { alert("Introduzca al menos una palabra clave"); return false; } if(document.addvideo.categoria.value=="nada") { alert("Seleccione una categoria"); return false; } if(document.addvideo.descripcion.value.lenght==0) { alert("Introduzca una descripción para el video"); return false; } document.getElementById('progress').style.display='block'; document.getElementById('video').style.display='none'; document.addvideo.submit(); } function compComent() { if(document.enviarComent.comentario.value.length==0) { alert("Escribe un comentario"); document.enviarComent.comentario.focus(); return false; } if(document.enviarComent.clausula.checked == false) { alert("Debes de aceptar las clausulas de privacidad para comentar sobre este video"); document.enviarComent.clausula.focus(); return false; } document.enviarComent.submit(); } function compReport() { if(document.getElementById('motivo').value.length==0) { alert('Escriba un motivo por el que cree que este video es inhapropiado'); return false; } else { var motivo = document.marcar.motivo.value; var idVideo = document.marcar.idVideo.value; recibeid('../../../aviso.php','','reportar=1&motivo='+motivo+'&idVideo='+idVideo,'marcar'); } } function EnvioInfo(iSitio, sPagina){ var sUrlDestino=""; switch(iSitio){ case 1: // Meneame ID:1 sUrlDestino = "http://meneame.net/login.php?return=/submit.php?url=" + sPagina; break; case 2: // Digg ID:2 sUrlDestino = "http://digg.com/submit?phase=2&url=" + sPagina; break; case 3: // Delicious ID:3 sUrlDestino = "https://secure.del.icio.us/login?url=" + sPagina; break; case 4: // Technorati ID:4 sUrlDestino = "http://www.technorati.com/search/" + sPagina; break; case 5: // Google ID:5 sUrlDestino = "http://www.google.com/ig/add?feedurl=" + sPagina; break; case 6: // Yahoo ID:6 sUrlDestino = "http://myweb2.search.yahoo.com/myresults/bookmarklet?u=" + sPagina + "&d=&ei=UTF-8"; break; case 7: // Fresqui ID:7 sUrlDestino = "http://tec.fresqui.com/post?url=" + sPagina; break; } window.open(sUrlDestino); }