/**********************************************************
 *  
 *  AntiClick v1.04
 *  -----------------------------------------------------
 *  
 *  This file can be taken from any site you find it on as
 *  long as you leave this info.
 *  
 *  Website: http://TheExCon.CJB.net
 *  Email:   TheExCon@TheExCon.CJB.NET
 *  ICQ UIN: 18435790
 *  
 *  To use the script copy it into the same folder as the
 *  web page and insert the code:
 *  
 *      <SCRIPT src="anticlick.js"></SCRIPT>
 *  
 *********************************************************/
  
//--- Defined Variables -----------------------------------
  
  // The about info will be shown on the message box
     var AboutInfo     = true

  // Keys are disabled 
     var KeyDisabled   = false
  
  // Right-Click is disabled
     var MouseDisabled = true
  
  // Show an error box if required event is disabled
     var ShowMessage   = ''
  
  // The error message
     var ErrorMessage  = 'Right-Click has been disabled by AntiClick'
  
  // Always show the same text in the status bar
     var StatusLock    = false
  
  // Text to show in the status bar
     var StatusMessage = 'Status Text has been locked by AntiClick'
//---------------------------------------------------------


//--- Capture Mouse Events --------------------------------
  if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    document.captureEvents(Event.MOUSEMOVE);
  }
  if (KeyDisabled) {
    document.onkeydown = Null
  }
  if (StatusLock) {
    document.onmousemove = StatusSet;
    setInterval('StatusSet()', 1)
  }
  if (MouseDisabled) {
    document.onmousedown = mouseMove
    document.oncontextmenu = Null
  }
//---------------------------------------------------------


//--- Null Function ---------------------------------------
function Null() {
  return false;
}
//---------------------------------------------------------


//--- Mouse Callback Function -----------------------------
  function mouseMove(e) {
  var Buttons
  var nInfo
  
    if (document.all)    { Buttons = event.button; }
    if (document.layers) { Buttons = e.which; }
    if (((Buttons > 1) & (MouseDisabled == true))) {     
      nInfo = ErrorMessage;
      if (ShowMessage == true) {
        if (AboutInfo == true) { nInfo += "\n\nGet your own copy of AntiClick from 'http://TheExCon.CJB.net'" }
        alert(nInfo);
      }
    }
  }
//---------------------------------------------------------


//--- Status Set ------------------------------------------
  function StatusSet() {
    window.status = StatusMessage
  } 
//---------------------------------------------------------