-replaced 'top.window' with 'window.parent'