window.onbeforeunload = null;
window.onunload = null;
//window.opener.top.location.href = "/login/login.aspx"; //location
window.opener.location.href = window.opener.location.href;
window.opener = null;
window.close();