
function validacion() {


valor = document.getElementById("nombres").value;
correo = document.getElementById("mail").value;


if( valor == null || valor.length == 0 || /^\s+$/.test(valor) ) {

alert("Ingrese un nombre.") ;
document.formulario.nombres.focus() ;
return false;

}




else if( correo == null || correo.length == 0 || /^\s+$/.test(correo) ) {

alert("Ingrese un e-mail.") ;
document.formulario.mail.focus() ;
return false;

}


else  if (document.formulario.pais.selectedIndex==0){ 
alert("Debe seleccionar un Pais.") 
document.formulario.pais.focus() 
return false;
} 

else  if (document.formulario.provincia.selectedIndex==0){ 
alert("Debe seleccionar una Provincia.") 
document.formulario.provincia.focus() 
return false;
} 


else  if (document.formulario.dia.selectedIndex==0){ 
alert("Debe seleccionar el dia.") 
document.formulario.dia.focus() 
return false;
} 

else if (document.formulario.mes.selectedIndex==0){ 
alert("Debe seleccionar el mes.") 
document.formulario.mes.focus() 
return false;
} 

else  if (document.formulario.anio.selectedIndex==0){ 
alert("Debe seleccionar el año.") 
document.formulario.anio.focus() 
return false;
} 


else {

return true; 
}



}