  <br>
  <table border=1 cellspacing=1 cellpadding=2 width=760 style="border: 1px inset;">
  <form action="controllers/inputController.php" method="post" name="supplierform" id="supplierform">
  <input name="bg_pkey" id="bg_pkey" type="hidden" value="<?=$bg_data['bg_pkey'];?>">
  <input name="bg_supplierpkey" id="bg_supplierpkey" type="hidden" value="<?=$bg_data['bg_supplierpkey'];?>">
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Project Name</td>
  <td valign=top width=610 class=formvalue>
  <input name="bg_projectname" id="bg_projectname" type="text" value="<?=$bg_data['bg_projectname'];?>" maxlength=200 style="width: 360px;">
  </td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Bank Guarantee</td>
  <td valign=top width=610 class=formvalue>
  <input name="bg_bankamount" id="bg_bankamount" type="text" value="<?=number_format($bg_data['bg_bankamount'],2);?>" maxlength=21 style="width: 180px;" onkeypress="decimalOnly();">
  </td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Start Date</td>
  <td valign=top width=610 class=formvalue>
  <input name="bg_startdate" id="bg_startdate" type="text" value="<?=unconverttounixslash($bg_data['bg_startdate']);?>" maxlength=10 style="width: 180px;" onkeypress="dateOnly();">&nbsp;&nbsp;<i>(dd/mm/yyyy)</i>
  </td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>End Date</td>
  <td valign=top width=610 class=formvalue>
  <input name="bg_enddate" id="bg_enddate" type="text" value="<?=unconverttounixslash($bg_data['bg_enddate']);?>" maxlength=10 style="width: 180px;" onkeypress="dateOnly();">&nbsp;&nbsp;<i>(dd/mm/yyyy)</i>
  </td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Bank Name</td>
  <td valign=top width=610 class=formvalue>
  <input name="bg_bankname" id="bg_bankname" type="text" value="<?=$bg_data['bg_bankname'];?>" maxlength=200 style="width: 360px;">
  </td>
  </tr>
  <input name="job" id="job" type="hidden" value="">
  </form>
  </table>

  <script type="text/javascript">

  function validateForm() {

    var isvalid=true;
    var errmsg="";
    var bgproject=document.getElementById('bg_projectname');
    var bgstartdate=document.getElementById('bg_startdate');
    var bgenddate=document.getElementById('bg_enddate');

    if ((bgproject.value=="")||(bgstartdate.value=="")||(bgenddate.value=="")) {
      errmsg='Project, Start Date and End Date must be specified!\n';
      isvalid=false;
    }
    if (isvalid==false) alert('Error:\n'+errmsg);
    return isvalid;

  }

  </script>
