sh.target = "window.opener.top.framemain";

oppure (se la popup e` stata aperta da framemain):

sh.target = "window.opener";