//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script 
  

var message = "Sorry, that function is disabled.\n\n";
message += "This page is copyrighted by the Loss Prevention Foundation, and all content is protected. ";

function disableselect(e){
	return false;
} 
  
function reEnable(){
	return true;
} 


function displaySelectMessage(){
	alert(message);		
	return false;
}
 
//if IE4+
//document.onselectstart=new Function ("return false") 
document.onselectstart=displaySelectMessage; 
  
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

function click(e)
{
  if (document.all)
  {
    if (event.button==2||event.button==3)
    {
      alert(message);
      return false;
    }
  }
  else
  {
    if (e.button==2||e.button==3)
    {
      e.preventDefault();
      e.stopPropagation();
      alert(message);
      return false;
    }
  }

}

if (document.all) // for IE
{
  document.onmousedown=click;
}
else // for FF
{
  document.onclick=click;
}


