//
// Kilak (c) 2005
// www.kilak.com

//
// INICIO FUNCIONES DE VALIDACIÓN CONTÁCTENOS
//
function vNombre() 
    {
	if (document.frmContacto.nombre.value == "")
           {
             alert('\nDebe incluir su nombre.');
             document.frmContacto.nombre.focus();
             return(false);
           }
             else { return(true); }
    }

function vApellido() 
    {
	if (document.frmContacto.apellido.value == "")
           {
             alert('\nDebe incluir su apellido.');
             document.frmContacto.apellido.focus();
             return(false);
           }
             else { return(true); }
    }

function vEmail() 
    {
	if (document.frmContacto.email.value == "")
           {
             alert('\nDebe ingresar su e-mail.');
             document.frmContacto.email.focus();
             return(false);
        }

        if (document.frmContacto.email.value.indexOf('@',0)==-1 || document.frmContacto.email.value.indexOf('@',0)== 0 ||
          document.frmContacto.email.value.indexOf('.',0)==-1)
             {
                 alert('\nDirección de mail no válido. Por favor verifique el e-mail ingresado.');
                 document.frmContacto.email.focus();
                 return(false);
              }
             else { return(true); }
    }

function vMotivo() 
    {
	if (document.frmContacto.motivo.value == "")
           {
             alert('\nDebe seleccionar un motivo del mensaje.');
             document.frmContacto.motivo.focus();
             return(false);
           }
             else { return(true); }
    }

function vComentario() 
    {
	if (document.frmContacto.comentario.value == "")
           {
             alert('\nDebe incluir un comentario.');
             document.frmContacto.comentario.focus();
             return(false);
           }
             else { return(true); }
    }

// FIN FUNCIONES DE VALIDACIÓN

//
// BOTONES DE ENVIO DE FUNCIONES
//

// BOTÓN ENVIAR CONTÁCTENOS
<!--
function EnviarContacto(frmContacto) 
   {
       if (vNombre() && vApellido() && vEmail() && vMotivo() && vComentario())
          {
          document.frmContacto.submit();
          }
   }
// END ->
