// Name: SVGEN.JS
// Author: Mike Howell
// Last Update: August 2005
// Purpose:  SvGen is a Javascript that generates a table containing
//           the currently open student positions for Personnel department.
//
  var outStr = '';
  var posCnt = 0;

  document.write('        <ul style="margin-left: 25px">');


  for (var i=0; i<stuVac.length; i++) {
    if (stuVac[i][0]) {
      posCnt++;
      if (stuVac[i][2] != null)
        outStr = '        <li><a href="' + stuVac[i][2] + '">' + stuVac[i][1] + '</a></li><br />'
      else
        outStr = '        <li>' + stuVac[i][1] + '</li><br />';

      document.write(outStr);
     }
   }

   if (posCnt == 0)
     document.write('<h3>Sorry, No student positions are currently open.</h3>');



  document.write('        </ul>');

