﻿//***********************************************
// Disable Right Click
//
// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
//***********************************************

// Set the message for the alert box
am = "PAR Copyright 2009";

bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false;
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;

//***********************************************




//***********************************************
// No right click
// distributed by http://hypergurl.com 
//***********************************************
// No right click for images
<!-- 
var popup="PAR Copyright 2009"; 
function noway(go) 
	{ 
	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; 
	// --> 

// No right click for text
<!-- 
var debug = true; 
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('PAR Copyright 2009'); 
		return false; 
		} 
	return true; 
	} 

document.onmousedown=right; 
if (document.layers) 
window.captureEvents(Event.MOUSEDOWN); 
window.onmousedown=right; 

//-->
//***********************************************