Some basic JavaScript functions with form.