function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&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 < d.forms.length;i++) x=d.forms[i][n]; for(i=0; !x&&d.layers && i < d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_showHideLayers() { //v6.0 var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; } obj.visibility=v; } } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&& i < a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } function muestraReloj() { // Compruebo si se puede ejecutar el script en el navegador del usuario if (!document.layers && !document.all && !document.getElementById) return; // Obtengo la hora actual y la divido en sus partes var fechacompleta = new Date(); var diaSemana = fechacompleta.getDay(); var diaS = ""; if(diaSemana==0) diaS="Domingo"; else if(diaSemana==1) diaS="Lunes"; else if(diaSemana==2) diaS="Martes"; else if(diaSemana==3) diaS="Miércoles"; else if(diaSemana==4) diaS="Jueves"; else if(diaSemana==5) diaS="Viernes"; else if(diaSemana==6) diaS="Sábado"; var dia = fechacompleta.getDate(); if(dia<=9) dia = "0" + dia; var mes = fechacompleta.getMonth()+1; if(mes<=9) mes = "0" + mes; var anio = fechacompleta.getFullYear(); var horas = fechacompleta.getHours(); var minutos = fechacompleta.getMinutes(); var segundos = fechacompleta.getSeconds(); var mt = "AM"; // Pongo el formato 12 horas if (horas > 12) { mt = "PM"; horas = horas - 12; } if (horas == 0) horas = 12; // Pongo minutos y segundos con dos dígitos if (minutos <= 9) minutos = "0" + minutos; if (segundos <= 9) segundos = "0" + segundos; // En la variable 'cadenareloj' puedes cambiar los colores y el tipo de fuente cadenareloj = "" + diaS + " " + dia + "." + mes + "." + anio + " " + horas + ":" + minutos + ":" + segundos + " " + mt + ""; // Escribo el reloj de una manera u otra, según el navegador del usuario var reloj = document.getElementById('reloj'); reloj.innerHTML=cadenareloj; // Ejecuto la función con un intervalo de un segundo setTimeout("muestraReloj()", 1000); } function salir(){ forma.dispatch.value = "forward"; forma.forward.value = "index"; forma.submit(); }