/*****************************************************************************/
/*                                                                           */
/* File Name: disable_right_click.js                                         */
/* Page Version: 1.0                                                         */
/* Creation Date: 10/7/2002                                                  */
/* Created By: Joshua Wolfe <jwolfe@wolfecomputers.com>                      */
/*                                                                           */
/*****************************************************************************/
/*                                                                           */
/* Use this script to disable users from right clicking on the page. This    */
/* will provide some copywrite security. This script should be called from   */
/* the <head> section of the the page.                                       */
/* <SCRIPT language="JavaScript" src="disable_right_click.js"></SCRIPT>      */
/*                                                                           */
/*****************************************************************************/
/*                                                                           */
/* This script may only be used with permission from WolfeComputers.com!     */
/*                                                                           */
/*****************************************************************************/

function right(e) {
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) 
		{
		alert("This function has been disabled!\n");
		return false;
		}
	return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;