/*
// File: disableRightClick.js
// Description: Disables Right Click from User on the WebPage
// Author: Ronnie Depp 
		
		My eMailbox: 	mr.salman.ahmad@gmail.com 
		Twitter: 		@RonnyDepp
		Personal Blog: 	http://ronnydepp.blogspot.com 
		Personal Site: 	http://ronniedepp.co.cc 
		Tech Blog: 		http://techbytes-from-ronnie.blogspot.com 
		Voice: 			+92 313 407 0856 (my cell phone number)
		Snail Mail: 	43, block K, Model Town Co-operative Society, Lahore, 54700, Punjab, Pakistan.
		
// Dated: Monday, June 28, 2010.
// PLEASE RETAIN THE ABOVE MENTIONED ATTRIBUTIONS | If you want to use this file for your own implementations, please retain the commented attribution and ask me before the use of this code via my emailbox: mr.salman.ahmad@gmail.com
*/

/*
---------------------------------------------
© Copyright www.theboxerring.com 2010.

Christa Cook
The Boxer Ring - www.TheBoxerRing.com
P.O. Box 128
Edwardsville, IL 62025
Phone:  (+1) 618-960-6316
Email:  theboxerring@earthlink.net
---------------------------------------------
*/

// Settings Variables
var message  = "--------------------------------------------------------------------------------" 	+ "\n\n";
	message += "Copyright www.theboxerring.com 2010. All Rights Reserved." 			+"\n\n";
	message += "Christa Cook" 														+"\n";
	message += "The Boxer Ring - www.TheBoxerRing.com" 								+"\n";
	message += "P.O. Box 128" 														+"\n";
	message += "Edwardsville, IL 62025" 											+"\n";
	message += "Phone:  (+1) 618-960-6316" 											+"\n";
	message += "Email:  theboxerring@earthlink.net" 								+"\n\n";
	message += "--------------------------------------------------------------------------------" 	+ "\n";

var showMessageAlert = document.showMessageAlert = true;
/////////////////////////////////// functions follow
function clickIE()

{
	if (document.all)// if Browser is: "IE"
	{
		alert("IE");
		if(showMessageAlert) alert(message);
			return false;
	}
}// END : function clickIE()

function clickNS(e) {//if Browser is: "Firefox, Safari, Google Chrome, IE, Opera, etc..."
	if (document.layers||(document.getElementById&&!document.all))
	{
		if (e.which==2||e.which==3) { if(showMessageAlert) alert(message); return false; }
	}
}// END : function clickNS()

if (document.layers)// if Browser is: "Netscape"
{document.captureEvents(Event.MOUSEDOWN); document.onmousedown = clickNS;}
else //if Browser is: "Other than Netscape" i.e: Firefox, Safari, Google Chrome, IE, Opera, etc...
{document.onmouseup = clickNS;document.oncontextmenu = clickIE;}

// Fallback for to | Return False
document.oncontextmenu = new Function("if (document.all && showMessageAlert) alert(message); return false");
