  <table border=1 cellspacing=1 cellpadding=2 width=760 style="border: 1px inset;">
  <form action="controllers/inputController.php" method="post" name="userform" id="userform">
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Div Code</td>
  <td valign=top width=610 class=formvalue>
  <input name="div_pkey" id="div_pkey" type="hidden" value="<?=$div_data['div_pkey'];?>">
  <input name="div_code" id="div_code" type="text" value="<?=$div_data['div_code'];?>" style="width: 180px;">
  </td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Div Name</td>
  <td valign=top width=610 class=formvalue>
  <input name="div_name" id="div_name" type="text" value="<?=$div_data['div_name'];?>" style="width: 580px;">
  </td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Description</td>
  <td valign=top width=610 class=formvalue>
  <input name="div_description" id="div_description" type="text" value="<?=$div_data['div_description'];?>" style="width: 580px;">&nbsp;
  </td>
  </tr>
  <input name="job" id="job" type="hidden" value="">
  </form>
  </table>

  <script type="text/javascript">

  function validateForm() {

    var isvalid=true;
    var errmsg="";
    var divcode=document.getElementById('div_code');
    var divname=document.getElementById('div_name');

    if ((divcode.value=="")||(divname.value=="")) {
      errmsg='Division Code and Name must be specified!\n';
      isvalid=false;
    }
    if (isvalid==false) alert('Error:\n'+errmsg);
    return isvalid;

  }

  </script>
