/*
Disable Right-click
*/
function noway(go) 
{
  var popup="Sorry! Mouse right-click is disabled.";
  if (document.all) 
  {
    if (event.button == 2) 
    {
      alert(popup);
      return false;
    }
  }
  if(document.layers) 
  {
    if (go.which == 3) 
    {
      alert(popup);
      return false;
    }
  }
}

if (document.layers) 
{
  document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=noway;

/*
Disable Select
*/
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 
}

