<!-- Javascript for IntelNexus
function BButton(x) {
   document.write('  <td width="12%" align="center">\n');
   document.write('    <table border=3 bgcolor="gray" cellpadding="5" width="100%">\n');
   document.write('    <tr><td style="border: 3px solid black;" bgcolor=#0050A0><A href="' + x + '.php">\n');
   document.write('       <p class="bbutton">' + x + '<\/p><\/A><\/td><\/tr>\n');
   document.write('    <\/table>\n');
   document.write('  <\/td>\n');
}
function HButton(x) {
   document.write('  <td width="12%" align="center">\n');
   document.write('    <table border=3 bgcolor="gray" cellpadding="5" width="100%">\n');
   document.write('    <tr><td style="border: 3px solid black;" bgcolor=#0050A0>\n');
   document.write('       <p class="hbutton">' + x + '<\/p><\/td><\/tr>\n');
   document.write('    <\/table>\n');
   document.write('  <\/td>\n');
}
function requiredField(x) {
   if ((x.value == null) || (x.value == "") || (isBlank(x.value))) {
      return (x.name + ' is a required field.\n');
   }
   return '';
}
function requiredSelection(x) {
   if (x.value == '000') {
      return ('Please select a ' + x.name + ' from the pull-down menu.\n');
   }
   return '';
}
function isBlank(s) {
   for (var i = 0; i < s.length; i++) {
      var c = s.charAt(i);
      if ((c != ' ') || (c != '\n') || (c != '\t')) return false;
   }
   return true;
}
function isDigit(s) {
   if ((s < '0') || (s > '9')) return false;
   return true;
}
function zipOk(s) {
   // length may be five (nnnnn) or ten (nnnnn-nnnn)
   if ((s.length != 5) && (s.length != 10)) return false;

   // verify that it begins with five digits
   if ((isDigit(s.charAt(0))) && (isDigit(s.charAt(1))) && (isDigit(s.charAt(2))) && (isDigit(s.charAt(3))) && (isDigit(s.charAt(4)))) {
      if (s.length == 5) return true;
      if (s.charAt(5) != '-') return false;
      if ((isDigit(s.charAt(6))) && (isDigit(s.charAt(7))) && (isDigit(s.charAt(8))) && (isDigit(s.charAt(9)))) return true;
   }
   return false;
}
function zipValidation(s) {   // call with field.value
   if (!zipOk(s))
   {
      return('ZIP code must be five digits, or five digits followed by a hyphen and four more digits.\n');
   }
   return '';
}
-->
