/*
 * Copyright 2000-2001
 * SVFnet Desarrollos Digitales Multimedia
 * Author: Julio Varela
 * Date: Noviembre 02, 2001
 */
<!--

//*******************************************
// 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);
  }
  
    if (theForm.telefono.value == "")
  {
    alert("Debe indicarnos su \"Teléfono\", por favor.");
    theForm.telefono.focus();
    return (false);
  }
  
      if (theForm.direccion.value == "")
  {
    alert("Debe indicarnos su \"Dirección\", por favor.");
    theForm.direccion.focus();
    return (false);
  }
  
      if (theForm.ciudad.value == "")
  {
    alert("Debe indicarnos su \"Ciudad\", por favor.");
    theForm.ciudad.focus();
    return (false);
  }

  return (true);
}

//*******************************************
// Validador de Pedido
//*******************************************
function Form2_Validator(theForm)
{
  if (theForm.Cliente.value == "")
  {
    alert("Debe indicarnos su \"Nombre de Cliente, por favor\".");
    theForm.Cliente.focus();
    return (false);
  }

  if (theForm.Direccion.value == "")
  {
    alert("Debe indicarnos su \"Dirección, por favor\".");
    theForm.Direccion.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   
//*******************************************
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())

function click(){
if(event.button==2){
alert("© DIBAPLAST S.H.");
}
}
document.onmousedown=click

// -->

