/*
 *
 * Disable CTRL + key
 *
 */
document.onkeydown=function DisableCTRL(e)
{
	var val=(document.all)?event.keyCode:event.which; 
	if(parseInt(val)==17)//CTRL
{
	alert('This functionality has been disabled on the BSF website');
	window.event.returnValue=false;
}
}

if (typeof document.onselectstart!="undefined") {
  document.onselectstart=new Function ("return false");
}
else{
  document.onmousedown=new Function ("return false");
  document.onmouseup=new Function ("return true");
}

function disableSelection(target){
	if (typeof target.onselectstart!="undefined") //IE route
		target.onselectstart=function(){return false}
	else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
		target.style.MozUserSelect="none"
	else //All other route (ie: Opera)
		target.onmousedown=function(){return false}
	target.style.cursor = "default"
}

//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"
