function valida_foto(theForm)
{
  if (theForm.Nombre.value == "")
  {
    alert("Por favor Inserte un Valor para el campo \"Nombre\" ");
    theForm.Nombre.focus();
    return (false);
  }
  if (theForm.Titulo.value == "")
  {
    alert("Por favor inserta un valor en el campo \"Titulo\".");
    theForm.Titulo.focus();
    return (false);
  }
  if (theForm.Mensaje.value == "")
  {
    alert("Introduce un valor en el campo \"Mensaje\".");
    theForm.Mensaje.focus();
    return (false);
  }
  if (theForm.Archivo.value == "")
  {
    alert("Elije un archivo .JPG");
    theForm.Archivo.focus();
    return (false);
  }
  return (true);
}
function valida_felicita(theForm){
  if (theForm.Nombre.value == ""){
    alert("Por favor Inserte un Valor para el campo \"Festejad@\" ");
    theForm.Nombre.focus();
    return (false);
  }
  if (theForm.Titulo.value == ""){
    alert("Por favor inserta un valor en el campo \"Titulo\".");
    theForm.Titulo.focus();
    return (false);
  }
  if (theForm.Mensaje.anio == "" || theForm.Mensaje.mes == "" || theForm.Mensaje.dia == ""){
    alert("La fecha del evento no es válida.");
    theForm.anio.focus();
    return (false);
  }
  if (theForm.Mensaje.value == ""){
    alert("Introduce un valor en el campo \"Mensaje\".");
    theForm.Mensaje.focus();
    return (false);
  }
  if (theForm.Archivo.value == ""){
    alert("Elije un archivo .JPG");
    theForm.Archivo.focus();
    return (false);
  }
  return (true);
}

