//
// k i l a k  (c) 2007
// http://www.kilak.com/
//

<!--
//
// INICIO FUNCIONES DE VALIDACIÓN
//
function vNombre() 
    {
	if (document.frmGlobal.Nombre.value == "")
           {
             alert('\nPlease enter your first name.');
             document.frmGlobal.Nombre.focus();
             return(false);
           }
             else { return(true); }
    }

function vApellido() 
    {
	if (document.frmGlobal.Apellido.value == "")
           {
             alert('\nPlease enter your last name.');
             document.frmGlobal.Apellido.focus();
             return(false);
           }
             else { return(true); }
    }

function vEmail()
    {
	if (document.frmGlobal.Email.value == "")
           {
             alert('\nPlease enter your e-mail address.');
             document.frmGlobal.Email.focus();
             return(false);
        }

        if (document.frmGlobal.Email.value.indexOf('@',0)==-1 || document.frmGlobal.Email.value.indexOf('@',0)== 0 ||
          document.frmGlobal.Email.value.indexOf('.',0)==-1)
             {
                 alert('\nInvalid e-mail address. Please enter your e-mail address again.');
                 document.frmGlobal.Email.focus();
                 return(false);
              }
             else { return(true); }
    }

function vMotivo() 
    {
	if (document.frmGlobal.Motivo.value == "")
           {
             alert('\nPlease select a reason for the message.');
             document.frmGlobal.Motivo.focus();
             return(false);
           }
             else { return(true); }
    }

function vCurso() 
    {
	if (document.frmGlobal.Curso.value == "")
           {
             alert('\nPlease select the virtual course in which you are interested.');
             document.frmGlobal.Curso.focus();
             return(false);
           }
             else { return(true); }
    }

function vPais() 
    {
	if (document.frmGlobal.Pais.value == "")
           {
             alert('\nPlease enter your country of residence.');
             document.frmGlobal.Pais.focus();
             return(false);
           }
             else { return(true); }
    }

function vProvincia() 
    {
	if (document.frmGlobal.Provincia.value == "")
           {
             alert('\nPlease enter your province or state of residence.');
             document.frmGlobal.Provincia.focus();
             return(false);
           }
             else { return(true); }
    }

function vSexo() 
    {
	if (document.frmGlobal.Sexo.value == "")
           {
             alert('\nPlease enter your gender.');
             document.frmGlobal.Sexo.focus();
             return(false);
           }
             else { return(true); }
    }

function vDia() 
    {
	if (document.frmGlobal.Dia.value == "")
           {
             alert('\nPlease enter the day of your birth date.');
             document.frmGlobal.Dia.focus();
             return(false);
           }
             else { return(true); }
    }

function vMes() 
    {
	if (document.frmGlobal.Mes.value == "")
           {
             alert('\nPlease enter the month of your birth date.');
             document.frmGlobal.Mes.focus();
             return(false);
           }
             else { return(true); }
    }

function vAnio() 
    {
	if (document.frmGlobal.Anio.value == "")
           {
             alert('\nPlease enter the year of your birth date.');
             document.frmGlobal.Anio.focus();
             return(false);
           }
             else { return(true); }
    }

function vMensaje() 
    {
	if (document.frmGlobal.Mensaje.value == "")
           {
             alert('\nPlease enter your message or comments.');
             document.frmGlobal.Mensaje.focus();
             return(false);
           }
             else { return(true); }
    }

// FIN FUNCIONES DE VALIDACIÓN


// BOTÓN ENVIAR CONTÁCTENOS
<!--
function EnviarContacto(frmGlobal) 
   {
       if ( vNombre() && vApellido() && vEmail() && vPais() && vProvincia() && vMotivo() && vMensaje() )
          {
          document.frmGlobal.submit();
          }
   }
// -->

// BOTÓN ENVIAR INSCRIPCIÓN
<!--
function EnviarInscripcion(frmGlobal) 
   {
       if ( vNombre() && vApellido() && vEmail() && vCurso() && vPais() && vProvincia() && vSexo() && vDia() && vMes() && vAnio() )
          {
          document.frmGlobal.submit();
          }
   }
// -->
