// History:
//          10 July 2006. Initial File By Mohammad Fard. mohammad_2002fa@yahoo.com
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
if(navigator.appName == "Netscape") 
	document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
	return false;
}
function mousehandler(e){
	var myevent = (isNS) ? e : event;
	var eventbutton = (isNS) ? myevent.which : myevent.button;
	
	if((eventbutton==2)||(eventbutton==3)) 
		return false;
}

document.oncontextmenu = mischandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler




function disabletext(e){
	return false
}

function reEnable(){
	return true
}

//if the browser is IE4+
document.onselectstart=new Function ("return false")

//if the browser is NS6
if (window.sidebar){
	document.onmousedown=disabletext
	document.onclick=reEnable
}
