
function open_win(_url, _popup)
{
	//var _popup = null;
	// first check to see if the window already exists
	if (_popup != null)
	{
	// the window has already been created, but did the user close it?
	// if so, then reopen it. Otherwise make it the active window.
		if (!_popup.closed) {
		  _popup.focus();
		  _popup.location = _url;
		  _popup.self.window.moveTo(431,0);
		  return _popup;
		}
	// otherwise fall through to the code below to re-open the window
	} else {
		_popup = null;
		_popup = window.open(_url,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=582, height=675");
		_popup.self.window.moveTo(431,0);
		return _popup;
	}
}

function close_win(_popObj){
	if (_popObj != null)
	{
		if (!_popObj.closed) {
		  //_popObj.self.window.parent.focus();
		  _popObj.self.window.close();
		  _popObj = null;
		}
	}
}

function open_news(_url, _popObj)
{
	 // this will hold our opened window
	//var _popup = null;
	// first check to see if the window already exists
	if (_popObj != null)
	{
	// the window has already been created, but did the user close it?
	// if so, then reopen it. Otherwise make it the active window.
		if (!_popObj.closed) {
		  _popObj.focus();
		  _popObj.location = _url;
		  _popObj.self.window.moveTo(431,0);
		  return _popObj;
		}
	// otherwise fall through to the code below to re-open the window
	} else {
		_popup = window.open(_url,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=508, height=675");
		_popup.self.window.moveTo(431,0);
		//return _popup;
	}
	// if we get here, then the window hasn't been created yet, or it
	// was closed by the user.
}

