function right(e)
{
     var msg = "This function has been blocked - Please do not try to Download.";

     if (document.all)
     {
          if (event.button == 2 || event.button == 3)
          {
               alert(msg);
               return false;
          }
     }

     if (document.layers)
     {
          if (e.which == 3 || e.which == 2)
          {
               alert(msg);
               return false;
          }
     }
}

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

document.onmousedown=right;