/*============================================================================*/


function enviar (form) {

//AQUI SE AGREGAN LOS VALORES QUE SE USARAN PARA QUE FUNCIONE LAS VALIDACIONES

  nombre=form.nombre.value;
  apellidos=form.apellidos.value; 
  email=form.email.value;
  // DATOS AGREGADOS POR CAO PARA VALIDACION DE DATOS PERSONALES
  if (nombre.length == 0)  {
     ccErrorNo = 5;
	 alert("Escriba su nombre.");
     return false; 
  }
    if (apellidos.length == 0)  {
     ccErrorNo = 5;
	 alert("Escriba su apellido.");
     return false; 
  }    
	  
 
  	 var elcorreo = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;	 
	 if (!elcorreo.exec(email)){
alert("Ingrese un correo electrónico válido.")
return (false);
}	
 // The credit card is in the required format.
  return true;
    
}
/*============================================================================*/
