function validateForm()
{
var x=document.forms["myForm"]["nombres"].value;
if (x==null || x=="")
{
alert("Por favor diligencie el campo nombres");
return false;
}
var x=document.forms["myForm"]["apellidos"].value;
if (x==null || x=="")
{
alert("Por favor diligencie el campo apellidos");
return false;
}
var x=document.forms["myForm"]["email"].value;
if (x==null || x=="")
{
alert("Por favor diligencie el campo correo electronico");
return false;
}
var x=document.forms["myForm"]["day"].value;
if (x==null || x=="")
{
alert("Por favor diligencie el dia de su nacimiento");
return false;
}
var x=document.forms["myForm"]["email"].value;
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
if (atpos<1 || dotpos
=x.length)
{
alert("Por favor ingrese una direccion de correo electronico valida");
return false;
}
var x=document.forms["myForm"]["celular"].value;
if (x==null || x=="")
{
alert("Por favor diligencie el campo celular");
return false;
}
}