// JavaScript Document
/*
Include in the head of the document.
Prevents right-click and ctrl-a selection of text and graphics.
To use, also include the following meta tag in the head of the document -
<META HTTP-EQUIV="imagetoolbar" CONTENT="no"> 
*/

var message="Sorry, that function is disabled."; 
function click(e) {
	if (document.all) {
	if (event.button == 2) {
	alert(message);
	return false;
	}
	}
	if (document.layers) {
	if (e.which == 3) {
	alert(message);
	return false;
	}
	}
	if (window.sidebar) {	//Netscape 7
		if (e.which == 3) {
	alert(message);
	return false;
	}
	}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
function disableselect(e){
return false;
} 
function reEnable(){
return true;
} 
//if IE4+
document.onselectstart=new Function ("return false;") 
//if NS6
if (window.sidebar){  //Netscape 7
document.onmousedown=disableselect
document.onclick=reEnable
window.captureEvents(Event.KEYPRESS);
window.onkeypress=pressed;
window.captureEvents(Event.Click);
window.onclick=click;
} 
function pressed() { //reload location on ctrl+a
window.location="";
}
