// JavaScript Document

var _nwWnd
function go(url, features) {
	closeWin();
	_nwWnd = window.open(url, "title", features);
	_nwWnd.focus();
}

function closeWin(){
	if(_nwWnd && !_nwWnd.closed && _nwWnd.open) {
		_nwWnd.close();
		_nwWnd=null;
	}
}