// BioTracker JavaScript Document

/*
Description:	disables the context menu
Author:			E Van Veen
Created:		1 June 2006
DISABLED DURING DEVELOPMENT
*/
var message="Function Disabled!";
function clickIE()
{
	if (document.all)
	{
		alert(message);
		return false;
	}
}
function clickNS(e)
{
	if (document.layers||(document.getElementById&&!document.all))
	{
		if (e.which==2||e.which==3)
		{
			alert(message);
			return false;
		}
	}
}
if (document.layers)
{
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
}
else
{
	document.onmouseup=clickNS;
	document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")

/*
Description:	creates a popup window in which to display a file
Author:			from ITR
Created:		29 May 2006
*/
function open_window(url,windowname)
{
	var mywin = window.open(url,windowname,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=780,height=500,top='+((screen.height - 500) / 2)+',left='+((screen.width - 780) / 2));
	mywin.focus();															
}			
