function init() {
        if (self.parent.frames.length != 0) {
                self.parent.location = document.location;
        }
        if (document.getElementById) {
                document.onkeydown = register;
        }
}

function register(e) {
        var code;
        if (!e) var e = window.event;
        if (e.keyCode) code = e.keyCode;
        else if (e.which) code = e.which;

		// shift + ctrl + E
		// ------------------
		// edit current page
		if((code == 69) && (e.ctrlKey == true) && (e.shiftKey == true)) {
			window.open('/hotkey.php?cmd=editpage&r='+escape(window.location.href),'hotkey');
		}
}
