window.name="mainwindow"; // will not work in Netscape Navigator 2 as name is read only


function window_open(filename, x, y)
{
  windowops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=" + x + ",height=" + y + "'");
  window.open(filename, 'New1', windowops);
  return;
}

function popup(url, name, width, height, resizable)
{
	var popwin;
	var opts = "toolbar=no,status=no,location=no,menubar=no,scrollbars=yes";
	opts += ",height=" + height + ",width=" + width + ",resizable=" + resizable;
	popwin = window.open("", name, opts);
	popwin.focus();
	popwin.location = url;
	popwin.opener = self;
}
