Code for maximizing new frames, pop-ups etc