<script type="text/javascript">
function culation(value,transac_id) {
document.form1.org_name_f.value = document.form1.sporg_code_f.value;
}
</script>
<%
Set rstemp = Server.CreateObject("ADODB.Recordset")
sql = "SELECT transac_id,product_name,station,used_date,liter,price_per_unit,cost,cost_center,s.cost_name,o.sporg_code,o.org_name,*FROM dbo.spemp AS e RIGHT OUTER JOIN dbo.wshell_bbl AS s ON e.spemp_code = s.spemp_id RIGHT OUTER JOIN dbo.wshell_transaction AS t ON s.card_id = t.card_id RIGHT OUTER JOIN dbo.sporg AS o ON o.sporg_code = t.cost_center WHERE s.card_type = '11' AND month(invoice_date)='"&mon_split(0)&"' AND year(invoice_date)='"&mon_split(1)&"' AND (t.remark<>'OOB' or t.remark IS NULL) AND t.card_id='"&card_id&"' ORDER BY used_date"