
var debug = true;

var Nav4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
var dialog = new Object()

function popup(width, height, url)
{
	if (dialog.win && !dialog.win.closed) dialog.win.close();
       
  if ((typeof url)=='undefined') url = "";
	dialog.width = width;
	dialog.height = height;

	if (Nav4)
	{
		dialog.left = window.screenX + (window.outerWidth-dialog.width)/2;
		dialog.top = window.screenY + (window.outerHeight-dialog.height)/2;
		var sz = "screenX=" + dialog.left + ",screenY=" + dialog.top + ",width=" + dialog.width + ",height=" + dialog.height;
	}
	else
	{
		dialog.left = (screen.availWidth-dialog.width)/2;
		dialog.top = (screen.availHeight-dialog.height)/2;
		var sz = "top=" + dialog.top + ",left=" + dialog.left + ",width=" + dialog.width + ",height=" + dialog.height;
	}
  attr = "" + sz + ",resizable=yes,toolbar=no,location=no,directories=no,scrollbars=yes,copyhistory=no,status=";
  attr += (debug) ? "yes": "no";

	dialog.win = window.open(url, "popup", attr)
	if (url=="") dialog.win.document.write("<html><body bgcolor=#FFFFFF></body></html>");
	dialog.win.focus()
}

function exlnk(url)
{
	var w = window.open(url, "", "resizable=yes,toolbar=yes,location=yes,menubar=yes,scrollbars=yes,copyhistory=no,status=yes")
	w.focus()
}
