window.history.forward(1); 
document.attachEvent("onkeydown", my_onkeydown_handler); 
document.attachEvent("oncontextmenu", my_onmousedown_handler);

function my_onmousedown_handler() 
{
	return false;
}

function my_onkeydown_handler() 
{ 
	switch (event.keyCode) 
	{ 

		case 0: // opera's control key
			event.returnValue = false; 
			event.keyCode = 0; 
			window.status = "Sorry, this is not allowed"; 
			alert("Sorry, this is not allowed");
			break; 	

		case 8: // backspace
			event.returnValue = false; 
			event.keyCode = 0; 
			window.status = "We have disabled Backspace"; 
			alert("Sorry, this is not allowed");
			break; 
			
		case 17: // default control key
			event.returnValue = false; 
			event.keyCode = 0; 
			window.status = "Sorry, this is not allowed"; 
			alert("Sorry, this is not allowed");
			break; 

		case 40: // onscreen keyboard mouse down
			event.returnValue = false; 
			event.keyCode = 0; 
			window.status = "We have disabled onscreen keyboard mouse down"; 
			alert("Sorry, this is not allowed");
			break; 

		case 116: // 'F5' 
			event.returnValue = false; 
			event.keyCode = 0; 
			window.status = "We have disabled F5"; 
			alert("Sorry, this is not allowed");
			break; 

	} 
} 
	
