var x = setTimeout("clearTimeout(x);document.location=document.location", 300000);
document.onselectstart=new Function("return false");
document.oncontextmenu=new Function("return false");
document.onkeydown = catchKey;

function catchKey(){
	if(window.event && isDisabled(window.event.keyCode)){
		window.event.keyCode = 505;
		window.event.returnValue=false;
	}
	if(window.event && window.event.keyCode == 505){return false;}
}

function isDisabled(kc){
	if(window.event.ctrlKey){
		if(kc==67||kc==86){return false;}
		else if(kc > 64 && kc < 91){return true;}
	}
	if(kc==116||kc==115||kc==117){return true;}
}
