      <?
      echo "<option value='' selected>--Select Sub Trade--</option>";
      $mytradequery="Select * from settings_trades where tradelevel=4 order by tradecode, tradedescription"; 
      $mytraderesult =& $db_pms->query($mytradequery);
      $mytradecount=$mytraderesult->numRows();
      if ($mytradecount!=0) {
        while($mytraderow=$mytraderesult->fetchRow()) {
          echo "<option value='".$mytraderow['tradepkey']."' ";
          if ($mytraderow['tradepkey']==$objtradepkey4) { echo "selected"; }
          echo ">";
          //echo $mytraderow['tradecode']." - ".$mytraderow['tradedescription'];
		  echo $mytraderow['tradedescription'];
          echo "</option>";
        }
      }
      ?>
