my_couse.js 888 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. function lesson_validate_required(field,alerttxt)
  2. {
  3. with (field)
  4. {
  5. if (value==null || value==""){
  6. $("#error_"+id).html(alerttxt);
  7. return false
  8. }
  9. else {return true}
  10. }
  11. }
  12. function lesson_validate_form(thisform)
  13. {
  14. with (thisform)
  15. {
  16. if (lesson_validate_required(title,"Title must be filled out!")==false)
  17. {title.focus();return false}
  18. }
  19. }
  20. function course_list(){
  21. }
  22. function course_validate_required(field,alerttxt)
  23. {
  24. with (field)
  25. {
  26. if (value==null || value==""){
  27. $("#error_"+id).html(alerttxt);
  28. return false;
  29. }
  30. else {return true}
  31. }
  32. }
  33. function course_validate_form(thisform)
  34. {
  35. with (thisform)
  36. {
  37. if (course_validate_required(title,"Title must be filled out!")==false){
  38. title.focus();
  39. return false;
  40. }
  41. }
  42. }
  43. function course_list(){
  44. }