


<!--ORIGINAL DE Lyss-->

	function manejarSeleccion(chkbox, formulario)
	{
		for (var i=0;i < document.forms[formulario].elements.length;i++)
		{
			var elemento = document.forms[formulario].elements[i];
			if (elemento.type == "checkbox")
			{
				elemento.checked = chkbox.checked;
			}
		}
	}

	function activarOpcionComboBox(dir,sel){
	 eval(dir+".location='serv_definicion_permisos.php?tipousuario="+sel.options[sel.selectedIndex].value+"'");
	}
	
	function activarOpcionComboBoxFE(dir,sel,dato){
 		eval(dir+".location='index_e.php?"+dato+"="+sel.options[sel.selectedIndex].value+"'");
	}
	
	function abrirVentana(dir,destino){
	 //eval(dir+".location='"+destino+"'");
	 location.href = destino;
	}
	
	function confirmacion(mensaje,pagina){
		if(confirm(mensaje)){
			location.href = pagina;
		}
	}
		
	function cambiarValor(elemento, valor){
		elemento.value = valor;
	}
	
	function controlarOpcionEstudiante(sel, formulario, comp1, comp2){
		
		if(sel.options[sel.selectedIndex].value == "e2c0be24560d78c5e599c2a9c9d0bbd2"){
			document.forms[formulario].elements[comp1].disabled=false;
			document.forms[formulario].elements[comp2].disabled=false;
		 }else{
			document.forms[formulario].elements[comp1].disabled=true;
			document.forms[formulario].elements[comp2].disabled=true;
		 }
	}
	
	function controlarOpcionDeshabilitar(sel, formulario, comp){
		
		if(sel.options[sel.selectedIndex].value != "e"){
			document.forms[formulario].elements[comp].disabled=false;
		 }else{
			document.forms[formulario].elements[comp].disabled=true;
		 }
	}
	
	function controlarOpcionChecked(box, formulario, comp){
		document.forms[formulario].elements[comp].disabled=!document.forms[formulario].elements[box].checked;
	}
	
	function bNavegador() {
	  if( navigator.appName )
	  {
		if( navigator.appName == "Microsoft Internet Explorer")  return 1;
		if( navigator.appName == "Netscape")  return 2;
	  }
	  return 0;
	}
			
		
	function AbreVentana(ventana,titulo,w,h){
	  var x=(window.screen.availWidth/2)-(w/2);
	  var y=(window.screen.availHeight/2)-(h/2);
	  var ven = window.open(ventana,titulo,'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',left='+x+',top='+y);
 
	}
	function validadSiglaSC(formulario,sigla,ventana,w,h){
	  var x=(window.screen.availWidth/2)-(w/2);
	  var y=(window.screen.availHeight/2)-(h/2);
	  var ven = window.open(ventana+"?s="+document.forms[formulario].elements[sigla].value,null,'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+w+',height='+h+',left='+x+',top='+y);
 
	}
	
	
<!--la parte del relog es el script-->

function mueveReloj(){
    momentoActual = new Date()
    hora = momentoActual.getHours()
    minuto = momentoActual.getMinutes()
    segundo = momentoActual.getSeconds()

    horaImprimible = hora + " : " + minuto + " : " + segundo

    document.form_reloj.reloj.value = horaImprimible

    setTimeout("mueveReloj()",1000)
}

