  function validateOnSubmit() {
    var elem;
    var errs=0;
    // execute all element validations in reverse order, so focus gets
    // set to the first one in error.
    if (!validatePresent(document.forms.registration.body,  'inf_body'))        errs += 1;
    if (!validateEmail  (document.forms.registration.email, 'inf_email', true)) errs += 1;
    if (!validateAlpha(document.forms.registration.name,  'inf_name', true))        errs += 1;

    if (errs>0)  alert(f_err_formcheck);

    return (errs==0);
  };