




function bodyrclickIE() {
	if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
		//alert('Welcome');
		//return false;
	}
}
function bodyrclickNS(e) {
	if ((document.layers||document.getElementById&&!document.all) && (e.which==2||e.which==3)) {
		//alert('Welcome');
		return false;
	}
}
function blockbodyrclick() {
	if (document.layers) {
		document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown=bodyrclickNS;
	}
	else if (document.all&&!document.getElementById) {
		document.onmousedown=bodyrclickIE;
	}
	//document.oncontextmenu=new Function("alert('Welcome');return false")
	document.oncontextmenu=new Function("return false")
}





<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
function imgrclick(e) {
	var msg = "Welcome";
	if (navigator.appName == 'Netscape' && e.which == 3) {
		//window.location.reload( false );
		alert(msg);
		return false;
	}
	if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
		//window.location.reload( false );
		alert(msg);
		return false;
	}
	else return true;
}
function blockimgrclick() {
	if(document.images) {
		for(i=0;i<document.images.length;i++) {
			document.images[i].onmousedown = imgrclick;
			document.images[i].onmouseup = imgrclick;
		}
	}
}





/** This is high-level function; REPLACE IT WITH YOUR CODE.
* It must react to delta being more/less than zero.
*/
function mwheelhandle(delta) {
	if (delta < 0) { // wheel down
		/* something. */;
	} else { // wheel up
		/* something. */;
	}
}
/** Event handler for mouse wheel event.
 */
function mwheel(event) {
        var delta = 0;
        if (!event) /* For IE. */
                event = window.event;
        if (event.wheelDelta) { /* IE/Opera. */
                delta = event.wheelDelta/120;
                /** In Opera 9, delta differs in sign as compared to IE.
                 */
                if (window.opera)
                        delta = -delta;
        } else if (event.detail) { /** Mozilla case. */
                /** In Mozilla, sign of delta is different than in IE.
                 * Also, delta is multiple of 3.
                 */
                delta = -event.detail/3;
        }
        /** If delta is nonzero, handle it.
         * Basically, delta is now positive if wheel was scrolled up,
         * and negative, if wheel was scrolled down.
         */
        if (delta)
                mwheelhandle(delta);
        /** Prevent default actions caused by mouse wheel.
         * That might be ugly, but we handle scrolls somehow
         * anyway, so don't bother here..
         */
        if (event.preventDefault)
                event.preventDefault();
	event.returnValue = false;
}
/** Initialization code. 
 * If you use your own event management code, change it as required.
 */
function mwheelinit() {
    if (window.addEventListener) window.addEventListener('DOMMouseScroll', mwheel, false); // DOMMouseScroll is for mozilla.
    window.onmousewheel = document.onmousewheel = mwheel; // IE/Opera
}





