window.parent.location.reload(); var index = parent.layer.getFrameIndex(window.name); parent.layer.close(index);