
var ft, Ver, NS, IE;

Ver = parseInt (navigator.appVersion)

NS  = navigator.appName == "Netscape"

IE  = navigator.appName == "Microsoft Internet Explorer"

ft = ["textarea", "input", "select"]

ft = ft.join("|")

function NOclick(ptr)
  {
    if (ft.indexOf(ptr.target.tagName.toLowerCase()) == -1)
  
    return false
  }

function OKclick()
  {
    return true
  }

if (typeof document.onselectstart != "undefined")
  {
    document.onselectstart = new Function ("return false")
  }

else
  {
    document.onmousedown = NOclick
    
    document.onmouseup = OKclick
  }

function StopRC (e)
  {
   if (NS && e.which > 1)
     {
       alert("Function disabled!")
       
       return false
     } 

   else 

   if (IE && (event.button >1))
     {
       alert("Function disabled!")

       return false;
     }
  }

document.onmousedown = StopRC;

if (document.layers) window.captureEvents (Event.MOUSEDOWN);

if (NS && Ver<5) window.onmousedown = StopRC;


