[ PHPXref.com ] [ Generated: Sun Jul 20 20:12:55 2008 ] [ Scout Tracker 0.13 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/includes/ -> rank_verify.js (source)

   1  <!-- Original:  Wayne Nolting (w.nolting@home.com) -->
   2  
   3  <!-- This script and many more are available free online at -->
   4  <!-- The JavaScript Source!! http://javascript.internet.com -->
   5  
   6  <!-- Begin
   7  function rank_verify() {
   8  var themessage = "Please date the following fields to complete rank of " + document.form.rank_name.value + " for this scout:\n";
   9  if (document.form.rank.value=="") {
  10  themessage = themessage + " - First Name";
  11  }
  12  if (document.form.last.value=="") {
  13  themessage = themessage + " -  Last Name";
  14  }
  15  if (document.form.email.value=="") {
  16  themessage = themessage + " -  E-mail";
  17  }
  18  //alert if fields are empty and cancel form submit

  19  if (themessage == "You are required to complete the following fields: ") {
  20  document.form.submit();
  21  }
  22  else {
  23  alert(themessage);
  24  return false;
  25     }
  26  }
  27  //  End -->

  28  </script>
  29  


[ Powered by PHPXref - Served by Debian GNU/Linux ]