  <br>
  <table border=1 cellspacing=1 cellpadding=2 width=760 style="border: 1px inset;">
  <form action="controllers/inputController.php" method="post" name="projectform" id="projectform">
  <input name="projectpkey" id="projectpkey" type="hidden" value="<?=$project_data['projectpkey'];?>">
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Project ID</td>
  <td valign=top width=610 class=formvalue><?=$project_data['projectid'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Project Name</td>
  <td valign=top width=610 class=formvalue><?=$project_data['projectname'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Project Description</td>
  <td valign=top width=610 class=formvalue><?=$project_data['projectdescription'];?>&nbsp;</td>
  </tr>
  </table>
  <br>
  <table border=1 cellspacing=1 cellpadding=2 width=760 style="border: 1px inset;">
  <tr valign=top>
  <td valign=top width=150 class=formlabel>In-House Project</td>
  <td valign=top width=610 class=formvalue>
  <select name="projectinhouse" id="projectinhouse" style="width: 60px;">
  <option value="1" <? if ($project_data['projectinhouse']==1) echo "selected"; ?>>Yes</option>
  <option value="0" <? if ($project_data['projectinhouse']==0) echo "selected"; ?>>No</option>
  </select>
  </td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>C/O</td>
  <td valign=top width=610 class=formvalue>
  <input name="projectco" id="projectco" type="text" value="<?=$project_data['projectco'];?>" maxlength=200 style="width: 360px;">
  </td>
  </tr>
  </table>

  <br>
  <table border=1 cellspacing=1 cellpadding=2 width=760 style="border: 1px inset;">
  <tr valign=top>
  <td valign=top width=50 class=formlabel>No.</td>
  <td valign=top width=500 class=formlabel>Personnel Name</td>
  <td valign=top width=210 class=formlabel>Contact No</td>
  </tr>
  <? $cindex=0; ?>
  <? foreach ($personnel_list as $mypersonnel) { ?>
    <? $cindex++; ?>
    <tr valign=top>
    <input name="personnelpkey<?=$cindex;?>" id="personnelpkey<?=$cindex;?>" type="hidden" value="<?=$mypersonnel['personnelpkey'];?>">
    <td valign=top width=50 class=listnumber><?=$cindex;?>&nbsp;</td>
    <td valign=top width=500 class=formvalue><input name="personnelname<?=$cindex;?>" id="personnelname<?=$cindex;?>" type="text" value="<?=$mypersonnel['personnelname'];?>" maxlength=200 style="width: 460px;"></td>
    <td valign=top width=210 class=formvalue><input name="personnelphone<?=$cindex;?>" id="personnelphone<?=$cindex;?>" type="text" value="<?=$mypersonnel['personnelphone'];?>" maxlength=40 style="width: 180px;"></td>
    </tr>
  <? } ?>
  <? for ($i=$cindex+1;$i<=10;$i++) { ?>
    <tr valign=top>
    <input name="personnelpkey<?=$i;?>" id="personnelpkey<?=$i;?>" type="hidden" value="">
    <td valign=top width=50 class=listnumber><?=$i;?>&nbsp;</td>
    <td valign=top width=500 class=formvalue><input name="personnelname<?=$i;?>" id="personnelname<?=$i;?>" type="text" value="" maxlength=200 style="width: 460px;"></td>
    <td valign=top width=210 class=formvalue><input name="personnelphone<?=$i;?>" id="personnelphone<?=$i;?>" type="text" value="" maxlength=40 style="width: 180px;"></td>
    </tr>
  <? } ?>
  <input name="job" id="job" type="hidden" value="">
  </form>
  </table>

  <script type="text/javascript">

  function validateForm() {

    var isvalid=true;
    /*
    var errmsg="";
    var supplierregid=document.getElementById('supplier_regid');
    var suppliername=document.getElementById('supplier_name');

    if ((supplierregid.value=="")||(suppliername.value=="")) {
      errmsg='Supplier Registration No and Name must be specified!\n';
      isvalid=false;
    }
    if (isvalid==false) alert('Error:\n'+errmsg);
    */
    return isvalid;

  }

  </script>
