//----------------------------------------------

function disableselect(e){
	return false
}

function reEnable(){
	return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if(window.sidebar){
	document.onmousedown = disableselect
	document.onclick     = reEnable
}

//----------------------------------------------

if(window.Event)
	document.captureEvents(Event.MOUSEUP);

	function nocontextmenu(){

		event.cancelBubble = true
		event.returnValue  = false;
		return false;

	}

	document.oncontextmenu = nocontextmenu;

//----------------------------------------------