style.zIndex = i.toString();
		}
	}

	const curFrame = citFrames[frameName];

	if (curFrame) {
		// set our z index to topmost
		curFrame.style.zIndex = 99999;

		// register blur event for unintentional tab escapes
		curFrame.contentWindow.addEventListener("blur", frameEscapeFunctions[frameName]);
		// and focus the frame itself
		curFrame.contentWindow.focus();
	}
};

blurFrame = function(frameName)
{
	const curFrame = citFrames[frameName];
	focusStack = focusStack.filter(val => val !== frameName);

	if (