<?php $PageSecurity = 11;
include('includes/session.inc');
//include('includes/header.inc');
include('includes/SQL_CommonFunctions.inc');
if($_REQUEST['taxId']!=''){
$discounted=$_REQUEST['discounted'];
//echo "select def_rate from excise_tax where id='".$_REQUEST['taxId']."'";
$sql=DB_query("select def_rate from excise_tax where id='".$_REQUEST['taxId']."'",$db);
$row=DB_fetch_array($sql);
$rate=$row['def_rate'];
$exciseValue=$discounted*($rate/100);
?>
<input name="excise_perc" id="ExcisePercentageTot" type="text" value="<?php echo $rate;?>" readonly style="width:35px;;"  /> 
<input name="exciseValue" id="exciseValueTot" type="text" value="<?php echo $exciseValue;?>" readonly style="width:70px;" />
<?php
}
?>