function right(e) {
var msg = "(c) Troon.ORG";
if ((navigator.appName.indexOf('Netscape')>-1) && (e.which == 3 || e.which == 2)) {
alert(msg); return false; }
if (navigator.appName == 'Microsoft Internet Explorer' && (event.button%3)==2) {
alert(msg); return false; } else return true; }
function rightCtxt() { return false;  }
function trap() { 
document.onmousedown = right; 
if ((!document.all) && (document.getElementById)) { document.oncontextmenu = rightCtxt; }
if (document.layers) { window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right; } }
function grabFocus() { this.window.focus(); }
function closeWindow() { self.close(); }
// function closeWindow() { this.window.close(); }
function closeWindow2() { var i = setTimeout("closeWindow();",1000); }
function stat(txt) { window.status = txt; }
function sstat(txt) { var i = window.setTimeout('window.status="' + txt + '"', 1); return true; }
function getUrlPrefix(url) { url = url.toString(); var i = url.indexOf('?'); var j = url.indexOf('#');
if ((i > -1) && (j > -1)) { if (j < i) i = j; } else { if (i < 0) i = j; } if (i > 0) { url = url.substring(0,i); } return url; }
function checkList() { if (this.window.opener) { if (this.window.opener.opener) { if (getUrlPrefix(this.window.opener.opener.location) == getUrlPrefix(this.window.location)) {
this.window.opener.opener.focus(); this.window.close(); } } } }


