function chp(url) {
if (opener.closed){
newwin=window.open("","nwin");
newwin.location.href = url;
newwin = window.focus();
}else {
opener.location.href = url;
opener.focus();
}
}