/*
 * Copyright 2003-2004
 * SVFnet Desarrollos Digitales Multimedia
 * Author: Julio Varela
 * Date: Noviembre 02, 2006
 */
<!--

//*******************************************
// Validador de Formulario   
//*******************************************
function Form1_Validator(theForm)
{
  if (theForm.nombre.value == "")
  {
    alert("Debe indicarnos su \"Nombre, por favor\".");
    theForm.nombre.focus();
    return (false);
  }

  if (theForm.apellido.value == "")
  {
    alert("Debe indicarnos su \"Apellido, por favor\".");
    theForm.apellido.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Escriba por favor su dirección de \"email\".");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length < 8)
  {
    alert("Escriba por lo menos 8 caracteres en la dirección de \"email\".");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length > 40)
  {
    alert("Escriba como máximo 40 caracteres en la dirección de \"email\".");
    theForm.email.focus();
    return (false);
  }

  return (true);
}


//*******************************************
// script de fecha   
//*******************************************
  var hoy = new Date();
  var anio = hoy.getYear();
  var mName = hoy.getMonth() + 1;
  var dName = hoy.getDay() + 1;
  var diaNr = ((hoy.getDate()<10) ? "" : "") + hoy.getDate();
  if(dName==1) Dia = "Domingo";
  if(dName==2) Dia = "Lunes" ;
  if(dName==3) Dia = "Martes";
  if(dName==4) Dia = "Miércoles";
  if(dName==5) Dia = "Jueves";
  if(dName==6) Dia = "Viernes";
  if(dName==7) Dia = "Sábado";
  if(mName==1) Mes = "Enero" ;
  if(mName==2) Mes = "Febrero";
  if(mName==3) Mes = "Marzo" ;
  if(mName==4) Mes = "Abril" ;
  if(mName==5) Mes = "Mayo" ;
  if(mName==6) Mes = "Junio" ;
  if(mName==7) Mes = "Julio" ;
  if(mName==8) Mes = "Agosto";
  if(mName==9) Mes = "Septiembre";
  if(mName==10) Mes = "Octubre";
  if(mName==11) Mes = "Noviembre";
  if(mName==12) Mes = "Diciembre";
  window.defaultStatus = "Personal Express - " + Dia + " " + diaNr + " de " + Mes + " de " + anio


//*******************************************
// script de boton derecho   
//*******************************************
function click(){
if(event.button==2){
alert("© Personal Express\n Función Desactivada");
}
}
document.onmousedown=click


//*******************************************
// script de fecha   
//*******************************************
hoy_es = new Date()
function CreateArray(n) {this.length = n
	return this }
// Variables de los Dias   
	dia = new CreateArray(7)
	dia[00]="Domingo"
	dia[01]="Lunes"
	dia[02]="Martes"
	dia[03]="Miércoles"
	dia[04]="Jueves"
	dia[05]="Viernes"
	dia[06]="Sábado"
// Variables de los Meses   
	mes = new CreateArray(12)
	mes[00]="Enero" 
	mes[01]="Febrero"
	mes[02]="Marzo"   
	mes[03]="Abril"
	mes[04]="Mayo"  
	mes[05]="Junio"
	mes[06]="Julio" 
	mes[07]="Agosto"
	mes[08]="Septiembre"
	mes[09]="Octubre"
	mes[10]="Noviembre"
	mes[11]="Diciembre"
ano = new String(hoy_es.getFullYear())


//*******************************************
// script de Abrir Ventana   
//*******************************************
function AbrirVentana() { 
    window.open('','InfoVentana','toolbar=no,scrollbars=yes,resizable=no,width=450,height=440');
 }


//*******************************************
// script de Auto Maximizar   
//*******************************************
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}


//*******************************************
// script de Reloj
//*******************************************
function JSClock() {          
	var time = new Date()          
	var hour = time.getHours()          
	var minute = time.getMinutes()          
	var second = time.getSeconds()          
	var temp = ((hour > 12) ? hour - 12 : hour)          
	temp += ((minute < 10) ? ":0" : ":") + minute          
	temp += ((second < 10) ? ":0" : ":") + second          
	temp += (hour >= 12) ? "&nbsp;P.M." : "&nbsp;A.M."          
	document.getElementById("relojito").innerHTML = temp
	id = setTimeout("JSClock()",1000)
}


//-->

