While a coalition of the two main opposition parties has agreed to work with Musharraf , it has also said it would reinstate ousted Supreme Court justices within 30 days of parliament 's first session .