A STRUCTURE THEOREM FOR QUASI-HOPF