/*
 * Copyright 2002
 * SVFnet Desarrollos Digitales Multimedia
 * Author: Julio Varela
 * Date: Noviembre 20, 2002
 */
<!--

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 ladirección de \"email\".");
    theForm.email.focus();
    return (false);
  }

  return (true);
}

  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 = "CIRAR - " + Dia + " " + diaNr + " de " + Mes + " de " + anio

function click(){
if(event.button==2){
alert(" © CIRAR ");
}
}
document.onmousedown=click

function mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}
function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[0].click();
}
}

function Item(){
this.length = Item.arguments.length 
for (var i = 0; i < this.length; i++)
  this[i] = Item.arguments[i]
}

function Fecha() {
var ndia = new Item('Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado')
var nmes = new Item('enero','febrero','marzo','abril','mayo','junio','julio','agosto','septiembre','octubre','noviembre','diciembre')
var ahora
var fecha = new Date()
var ano = fecha.getYear()
var mes = fecha.getMonth()
var dia = fecha.getDay()
var aux = "" + fecha

if (ano<10) {
 ano2 = "200" + eval(ano)
}
else if (ano<80) {// ano tiene 2 dígitos 19xx (más de 80)
 ano2 = "20" + ano
} 
else if (ano<=99) {// ano tiene 2 dígitos 20xx (menor de 80)
 ano2 = "19" + ano
}
else if (ano<1000) {// ano tiene 3 dígitos (100 es 2000)
 ano2 = eval(ano) + eval(1900)
}
else {// ano tiene 4 dígitos
 ano2 = ano
}
ahora = ndia[dia] + ", " + eval(aux.substring(7, 10)) + " de " + nmes[mes] + " del " + ano2
return ahora
}

//-->
