
function validar()
{
if(document.getElementById('nombre').value=="")
{
alert ("El nombre es un dato obligatorio");
return false;
}
if(document.getElementById('apellido1').value=="")
{
alert ("El Primer Apellido es un dato obligatorio");
return false;
}
if(document.getElementById('apellido2').value=="")
{
alert ("El segundo  Apellido es un dato obligatorio");
return false;
}
submit();
}


