
if (is_nav4up){
	document.captureEvents(Event.KeyPress);
	}
document.onkeypress = capturekey;

var keyCode="";
function capturekey(e){ 
	var pressedkey="";
	if (is_nav4up){pressedkey=e.which;}
	else {pressedkey=event.keyCode;}	
	//alert(pressedkey);
	if (parseInt(pressedkey)==13){
		var x = login(0);
		}
	if (parseInt(pressedkey)==27){
		keyCode += pressedkey;
		}
	if (keyCode == "272727"){
		if (!editmode){
			//alert("Enter Edit-mode");
			showDialog(0,'login');
			}
		else {
			logout(0);
			}
		keyCode = "";
		}
	}

