function mueveReloj(){
    momentoActual = new Date()
    hora = momentoActual.getHours()
	if (hora<10) hora = "0" + hora
    minuto = momentoActual.getMinutes()
	if (minuto<10) minuto = "0" + minuto
    segundo = momentoActual.getSeconds()
	if (segundo<10) segundo = "0" + segundo

    horaImprimible = hora + " : " + minuto + " : " + segundo

    cambiaTexto(horaImprimible)
	
	setTimeout("mueveReloj()",1000) 
} 

function cambiaTexto(nuevaHora){
	xInnerHtml('reloj',nuevaHora)	
}


function MostrarFecha()
 {
 var nombres_dias = new Array("Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado")
 var nombres_meses = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre")

 var fecha_actual = new Date()

 dia_mes = fecha_actual.getDate()		//dia del mes
 dia_semana = fecha_actual.getDay()		//dia de la semana
 mes = fecha_actual.getMonth() + 1
 anio = fecha_actual.getFullYear()

 //escribe en pagina
 document.write(nombres_dias[dia_semana] + ", " + dia_mes + " de " + nombres_meses[mes - 1] + " de " + anio)
 }      
jQuery.noConflict();
jQuery(document).ready(function(){
  jQuery(document).ready(function () {
    jQuery('#principal').fadeIn(1200);
  });
});   
/*//Marquesina
ScrollSpeed = 170
ScrollChars = 1
function ScrollMarquee() {
window.setTimeout('ScrollMarquee()',ScrollSpeed);

var msg = document.marquee1.text.value; 
document.marquee1.text.value =
msg.substring(ScrollChars) +
msg.substring(0,ScrollChars); 
} 
ScrollMarquee()*/
  
//saludos
function greeting(){   
        var today = new Date();   
        var hrs = today.getHours(); 
		   
        document.write("Buen@s ");   
        if (hrs < 6)      document.write("(y tempranos) días");   
        else if (hrs < 12)      document.write("días");   
        else if (hrs <= 19)      document.write("tardes");   
        else      document.write("Noches");
}

function isEmpty(str) 
            {
              // Check whether string is empty.
              for (var intLoop = 0; intLoop < str.length; intLoop++)
                 if (" " != str.charAt(intLoop))
                        return false;
              
              return true;
             }
            
             function checkRequired(f) 
             {
              var strError = "";
              for (var intLoop = 0; intLoop < f.elements.length; intLoop++)
                if (null!=f.elements[intLoop].getAttribute("required")) 
                    if (isEmpty(f.elements[intLoop].value))
                        strError += "  " + f.elements[intLoop].name + "\n";
                if ("" != strError) {
                    alert("Los siguientes datos requeridos son necesarios:\n" + strError);
                    return false;
                } 
                else
                    return true       
             }

