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