var autoTimeout = 27000000;
// Change request to 15 minutes - 2004-08-25
var autoTimeout = 900000;
var checkTimout = 60000;

setCookie("AUTO", (new Date()).getTime(), null, "/");
document.onselectstart=new Function("return false");
document.onkeydown = catchKey;

function setCookie(name, value, expires, path, domain, secure) {
	var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
	document.cookie = curCookie;
}

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;
	}
}

function showIt(val){
	if(document.all[val].style.overflow=="auto")
		document.all[val].style.overflow="visible"
	else
		document.all[val].style.overflow="auto"
}

