Hi,
If you using same release class for PO and Contract, then refer segment purchase order release strategy enhancement but you need to involve ABAPer for your requirement.
Purchasing Release Strategy - an expanded explanation and a GPS through SCN and SAP notes
Regards,
Biju K