
var bDisable = 0;

function clickdisable(n){
bDisable = n;
}
function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

// Detect Chrome
var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
var is_firefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;

function right(e) {
	if (bDisable)
	{
		alert("Please support us by using our e-commerce facility to purchase downloadable and printable versions of the information on this site");

		if( is_chrome ) 
		{
			bDisable = 0;	
		}
		return false;
	} 
	else 
	{
//		if ( (document.all && e.button == 2) || (document.layers && e.button == 3) )
//		{
//			alert("Please support us by using our e-commerce facility to purchase downloadable and printable versions of the information on this site");
//			return false;
//		}
//		else
//		{
			return true;
//		}
	}
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

