//
// Kilak (c) 2005
// 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 vNombreDestina() 
    {
	if (document.Form.nombre_destina.value == "")
           {
             alert('\nDebe incluir el nombre del destinatario.');
             document.Form.nombre_destina.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 vTelefono() 
    {
	if (document.Form.telefono.value == "")
           {
             alert('\nDebe incluir un teléfono.');
             document.Form.telefono.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 vEmailDestina() 
    {
	if (document.Form.email_destina.value == "")
           {
             alert('\nDebe ingresar el e-mail del destinatario.');
             document.Form.email_destina.focus();
             return(false);
        }

        if (document.Form.email_destina.value.indexOf('@',0)==-1 || document.Form.email_destina.value.indexOf('@',0)== 0 ||
          document.Form.email_destina.value.indexOf('.',0)==-1)
             {
                 alert('\nDirección de mail no válido. Por favor verifique el e-mail ingresado.');
                 document.Form.email_destina.focus();
                 return(false);
              }
             else { return(true); }
    }

function vComentarios() 
    {
	if (document.Form.comentarios.value == "")
           {
             alert('\nDebe incluir un comentario.');
             document.Form.comentarios.focus();
             return(false);
           }
             else { return(true); }
    }

// FIN FUNCIONES DE VALIDACIÓN



//
// BOTONES DE ENVIO DE FUNCIONES
//

// BOTÓN ENVIAR CONTÁCTENOS
<!--
function EnviarContactenos(Form) 
   {
       if ( vNombre() && vApellido() && vTelefono() && vEmail() && vComentarios() )
          {
          document.Form.submit();
          }
   }
// END ->


// BOTÓN ENVIAR RECOMENDAR
<!--
function EnviarRecomendar(Form) 
   {
       if ( vNombre() && vEmail() && vNombreDestina() && vEmailDestina() )
          {
          document.Form.submit();
          }
   }
// END ->