top.opener.top.location.href = file;

se la popup non contiene un frameset il primo top è inutile,
potresti usare self.opener.top.location... o window.opener.top.location...
ciao