//
// Kilak (c) 2002
// www.kilak.com

//
// INICIO FUNCIONES DE VALIDACIÓN
//
function vNombre() 
    {
	if (document.FormContactenos.nombre.value == "")
           {
             alert('\nYou must include your name.');
             document.FormContactenos.nombre.focus();
             return(false);
           }
             else { return(true); }
    }

function vApellido() 
    {
	if (document.FormContactenos.apellido.value == "")
           {
             alert('\nYou must include your surname.');
             document.FormContactenos.apellido.focus();
             return(false);
           }
             else { return(true); }
    }

function vTelefono() 
    {
	if (document.FormContactenos.telefono.value == "")
           {
             alert('\nYou must include a telephone number.');
             document.FormContactenos.telefono.focus();
             return(false);
           }
             else { return(true); }
    }

function vEmail() 
    {
	if (document.FormContactenos.email.value == "")
           {
             alert('\nYou must include your e-mail.');
             document.FormContactenos.email.focus();
             return(false);
        }

        if (document.FormContactenos.email.value.indexOf('@',0)==-1 || document.FormContactenos.email.value.indexOf('@',0)== 0 ||
          document.FormContactenos.email.value.indexOf('.',0)==-1)
             {
                 alert('\nInvalid e-mail address. Please check the e-mail address.');
                 document.FormContactenos.email.focus();
                 return(false);
              }
             else { return(true); }
    }

function vComentario() 
    {
	if (document.FormContactenos.comentario.value == "")
           {
             alert('\nYou must include a comment.');
             document.FormContactenos.comentario.focus();
             return(false);
           }
             else { return(true); }
    }

// FIN FUNCIONES DE VALIDACIÓN


//
// BOTONES DE ENVIO DE FUNCIONES
//

// BOTÓN ENVIAR CONTÁCTENOS
<!--
function EnviarContactenos(FormContactenos) 
   {
       if ( vNombre() && vApellido() && vTelefono() && vEmail() && vComentario() )
          {
          document.FormContactenos.submit();
          }
   }
//-->

