// (C) Y.Zadorozhny, 1999
//

var remote=null;
var pictName="";
var tableName="";
var histBack=-1;

function closeRemote() {
  if ((remote != null) && !remote.closed) remote.close();
}

function openImgWindow(imgURL,features) { //v2.0
	histBack--;
  pictName=imgURL;

  if ((remote != null) && !remote.closed) remote.close();
  remote=window.open('imgWin.htm', "remoteWin", features);

	if (!remote.opener) remote.opener=self;
}

function openDBWindow(tableURL,features) { //v2.0
  histBack--;
  if (document.layers) features+=',scrollbars=yes';
  if (document.all) features+=',scrollbars=no';
  tableName=tableURL;

  if ((remote != null) && !remote.closed) remote.close();
  remote=window.open('dbWin.htm', "remoteWin2", features);

  if (!remote.opener) remote.opener=self;
}
