//
// Kilak (c) 2006
// www.kilak.com

//
// INICIO FUNCIONES DE VALIDACIÓN CONTÁCTENOS
//
function vNombre() 
    {
	if (document.Form.nombre.value == "")
           {
             alert('\nDebe incluir su nombre.');
             document.Form.nombre.focus();
             return(false);
           }
             else { return(true); }
    }

function vApellido() 
    {
	if (document.Form.apellido.value == "")
           {
             alert('\nDebe incluir su apellido.');
             document.Form.apellido.focus();
             return(false);
           }
             else { return(true); }
    }

function vEmail() 
    {
	if (document.Form.email.value == "")
           {
             alert('\nDebe ingresar su e-mail.');
             document.Form.email.focus();
             return(false);
        }

        if (document.Form.email.value.indexOf('@',0)==-1 || document.Form.email.value.indexOf('@',0)== 0 ||
          document.Form.email.value.indexOf('.',0)==-1)
             {
                 alert('\nDirección de mail no válido. Por favor verifique el e-mail ingresado.');
                 document.Form.email.focus();
                 return(false);
              }
             else { return(true); }
    }

function vTelefono() 
    {
	if (document.Form.telefono.value == "")
           {
             alert('\nDebe ingresar un teléfono de contacto.');
             document.Form.telefono.focus();
             return(false);
           }
             else { return(true); }
    }

function vRetira_dia() 
    {
	if (document.Form.retira_dia.value == "")
           {
             alert('\nDebe seleccionar el día en que retira el vehículo.');
             document.Form.retira_dia.focus();
             return(false);
           }
             else { return(true); }
    }

function vRetira_mes() 
    {
	if (document.Form.retira_mes.value == "")
           {
             alert('\nDebe seleccionar el mes en que retira el vehículo.');
             document.Form.retira_mes.focus();
             return(false);
           }
             else { return(true); }
    }

function vRetira_anio() 
    {
	if (document.Form.retira_anio.value == "")
           {
             alert('\nDebe seleccionar el año en que retira el vehículo.');
             document.Form.retira_anio.focus();
             return(false);
           }
             else { return(true); }
    }

function vEntrega_dia() 
    {
	if (document.Form.entrega_dia.value == "")
           {
             alert('\nDebe seleccionar el día en que entrega el vehículo.');
             document.Form.entrega_dia.focus();
             return(false);
           }
             else { return(true); }
    }

function vEntrega_mes() 
    {
	if (document.Form.entrega_mes.value == "")
           {
             alert('\nDebe seleccionar el mes en que entrega el vehículo.');
             document.Form.entrega_mes.focus();
             return(false);
           }
             else { return(true); }
    }

function vEntrega_anio() 
    {
	if (document.Form.entrega_anio.value == "")
           {
             alert('\nDebe seleccionar el año en que entrega el vehículo.');
             document.Form.entrega_anio.focus();
             return(false);
           }
             else { return(true); }
    }

function vRetira_oficina() 
    {
	if (document.Form.retira_oficina.value == "")
           {
             alert('\nDebe seleccionar la oficina dónde retira el vehículo.');
             document.Form.retira_oficina.focus();
             return(false);
           }
             else { return(true); }
    }

function vEntrega_oficina() 
    {
	if (document.Form.entrega_oficina.value == "")
           {
             alert('\nDebe seleccionar la oficina dónde entrega el vehículo.');
             document.Form.entrega_oficina.focus();
             return(false);
           }
             else { return(true); }
    }

// FIN FUNCIONES DE VALIDACIÓN

//
// BOTONES DE ENVIO DE FUNCIONES
//

// BOTÓN ENVIAR CONTÁCTENOS
<!--
function EnviarReserva(Form) 
   {
       if (vNombre() && vApellido() && vEmail() && vTelefono() && vRetira_dia() && vRetira_mes() && vRetira_anio() && vEntrega_dia() && vEntrega_mes() && vEntrega_anio() && vRetira_oficina() && vEntrega_oficina())
          {
          document.Form.submit();
          }
   }
// END ->