function Confirma_borrado(url) { if(confirm("¿Estas seguro de borrar a este usuario del curso?")) document.location.href = url; } function confirmar(idc) { if(confirm("¿Estas seguro que desea borrar contenido seleccionado?")) { document.location='./eliminar.php?Id='+idc; } } function Listado(arg) { estado = document.getElementById(arg).style.display; var poner = ""; if(estado == 'none') poner = "block"; else if(estado == "block") poner = "none"; document.getElementById(arg).style.display = poner; } function copiar(idc,nombreInput,nombreInput2) { var aux; aux=nombreInput+idc; if(document.getElementById(aux).style.display=='block') { document.getElementById(aux).style.display='none'; } else { document.getElementById(aux).style.display='block'; var aux; aux=nombreInput2+idc; var tempval=document.getElementById(aux); tempval.focus(); tempval.select(); therange=tempval.createTextRange() therange.execCommand("Copy"); aux2=nombreInput+idc; document.getElementById(aux2).innerHTML = "Url Copiado<\/strong>"; aux3=nombreInput+idc; setTimeout("document.getElementById(aux3).style.display='none';",700); } } function ver(variar) { if( document.getElementById('curs'+variar).style.display=='block') { document.getElementById('curs'+variar).style.display='none'; } else document.getElementById('curs'+variar).style.display='block' } function Date_de_baja(estructura){ if(confirm("¿Realmente quieres darte de baja de este curso?")) document.location.href="/cursos/darse_baja_curso.php?Id_estructura="+estructura; } function enviar_form(Id_estructura1,Id_examen1) { document.examen.Id_estructura.value=Id_estructura1; document.examen.Id_examen.value=Id_examen1; document.examen.submit(); } function enviar_form1(Id_estructura1,Id_modulo1,Id_contenido) { document.contenido_modulo.Id_modulo.value=Id_modulo1; document.contenido_modulo.Id_contenido.value=Id_contenido; document.contenido_modulo.submit(); } function enviar_form2(Id_estructura1,Id_modulo1) { document.getElementById('form'+Id_modulo1).Id_estructura.value=Id_estructura1; document.getElementById('form'+Id_modulo1).Id_modulo.value=Id_modulo1; document.getElementById('form'+Id_modulo1).submit(); } function Enviar_papelera(url) { if(confirm("¿Estas seguro de mandar este mensaje a la papelera?")) document.location.href = url; } function estadisticas_pasadas(Activo1) { document.estadisticas_pasadas.Activo.value=Activo1; document.estadisticas_pasadas.submit(); } function ver_datos_estadisticas(Id_estructura1,Activo1,identform) { document.getElementById(identform).Activo.value=Activo1; document.getElementById(identform).Id_estructura.value=Id_estructura1; document.getElementById(identform).submit(); } function enviar_form(Id_padre1,Id_estructura1,Id_examen1) { document.examen.Id_estructura.value=Id_estructura1; document.examen.Id_estructura_curso.value=Id_padre1; document.examen.Id_examen.value=Id_examen1; document.examen.submit(); } function activar() { document.getElementById('blob').style.display='block'; } function muestraPasa(check) { var valor = document.getElementById(check).value; if(valor == 0) { // mostramos document.getElementById('Dni').disabled = true; document.getElementById(check).value = 1; document.getElementById('celdaPasaporte').style.display = 'inline'; } else if(valor == 1) { // mostramos document.getElementById('Dni').disabled = false; document.getElementById(check).value = 0; document.getElementById('celdaPasaporte').style.display = 'none'; } } //realizar examenes function recogeHtml(arg){ document.getElementById('hidHtml').value = document.getElementById(arg).innerHTML; document.VolverAtras.submit() return false; } function marcaEstado(campo, contenedor){ navegador = navigator.appName; if(navegador.indexOf("Explorer") == -1) esIE = false; else esIE = true; if(!esIE){ estado = document.getElementById(campo).checked; celda = document.getElementById(contenedor).innerHTML; if(estado == true){ pon = " checked>"; celda = celda.substring(0,celda.length-1); celda += pon; } else if(estado == false){ pon = true; celdaDespues = celda.substring(celda.indexOf("checked")+17); celdaAntes = celda.substring(0,celda.indexOf("checked")); celda = celdaAntes + " " + celdaDespues; } document.getElementById(contenedor).innerHTML = celda; } } function marcaEstado2(campo, conten,tope){ //para botones de radio tope = parseInt(tope); navegador = navigator.appName; if(navegador.indexOf("Explorer") == -1) esIE = false; else esIE = true; if(!esIE){ //al nombre del campo le quitamos el indice indice = campo.substring(campo.lastIndexOf("_")+1); indice = parseInt(indice); nombreCampo = campo.substring(0,campo.lastIndexOf("_")+1); nombreConten = conten.substring(0,conten.lastIndexOf("_")+1); //el limite del FOR es el mismo que el Contador que esté mostrando las respuestas for(i=0;i