Assign value to filter in script report on change of other filter's value

Hello,
Can anyone suggest me How to set filter value dynamically when value of some other filter is changed. For example in general ledger report if i select party-type filter as “customer” then filter Account should be assigned value “debtors” dynamically. when I again change party-type to “Supplier” then account type should be change to “Creditor” automatically.