  <br>
  <table border=1 cellspacing=1 cellpadding=2 width=760 style="border: 1px inset;">
  <form action="controllers/inputController.php" method="post" name="subconform" id="subconform">
  <input name="subconmasterpkey" id="subconmasterpkey" type="hidden" value="<?=$subcon_data['subconmasterpkey'];?>">
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Sub-contractor Name</td>
  <td valign=top width=610 class=formvalue><input name="subconname" id="subconname" type="text" value="<?=$subcon_data['subconname'];?>" maxlength=100 style="width: 180px;"></td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Address</td>
  <td valign=top width=610 class=formvalue>
  <textarea name="subconaddress" id="subconaddress" rows="5" cols="55"><?=$subcon_data['subconaddress'];?></textarea>
  &nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Phone No #1</td>
  <td valign=top width=610 class=formvalue><input name="subconphone1" id="subconphone1" type="text" value="<?=$subcon_data['subconphone1'];?>" maxlength=20 style="width: 180px;">&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Phone No #2</td>
  <td valign=top width=610 class=formvalue><input name="subconphone2" id="subconphone2" type="text" value="<?=$subcon_data['subconphone2'];?>" maxlength=20 style="width: 180px;">&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Fax No</td>
  <td valign=top width=610 class=formvalue><input name="subconfax" id="subconfax" type="text" value="<?=$subcon_data['subconfax'];?>" maxlength=20 style="width: 180px;">&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>Contact Person</td>
  <td valign=top width=610 class=formvalue><input name="subconpic" id="subconpic" type="text" value="<?=$subcon_data['subconpic'];?>" maxlength=20 style="width: 180px;">&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Designation</td>
  <td valign=top width=610 class=formvalue><input name="subconpicdesignation" id="subconpicdesignation" type="text" value="<?=$subcon_data['subconpicdesignation'];?>" maxlength=20 style="width: 180px;">&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Phone No</td>
  <td valign=top width=610 class=formvalue><input name="subconpicphone" id="subconpicphone" type="text" value="<?=$subcon_data['subconpicphone'];?>" maxlength=20 style="width: 180px;">&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Extension</td>
  <td valign=top width=610 class=formvalue><input name="subconpicext" id="subconpicext" type="text" value="<?=$subcon_data['subconpicext'];?>" maxlength=20 style="width: 180px;">&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Mobile No</td>
  <td valign=top width=610 class=formvalue><input name="subconpicmobile" id="subconpicmobile" type="text" value="<?=$subcon_data['subconpicmobile'];?>" maxlength=20 style="width: 180px;">&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 subconname=document.getElementById('subconname').value;

    if (subconname=="") {
      errmsg='Sub Contractor Name must be specified!\n';
      isvalid=false;
    }
  
    if (isvalid==false) alert('Error:\n'+errmsg);
    return isvalid;

  }

//-->
</script>
  