function checkEdit() {
	if (window.event.ctrlKey) {
		var sL = window.location.toString();
		if (window.event.keyCode == 85) {
			var i = sL.search(/[\?\&]id\=/i);
			if (i > -1) {
				var sID = new String();
				i += 4;
				var j = sL.indexOf("&",i);
				if (j == -1) {
					sID = sL.substr(i);
				} else {
					sID = sL.substr(i,j-i);
				}
				window.location = "CMPEdit/Default.asp?PageID=" + sID;
			} else {
				window.location = "CMPEdit/Default.asp";
			}
		} else if (window.event.keyCode == 48) {
			if (sL.indexOf("cache=clear") == -1) {
				if (sL.indexOf("?") == -1) {
					window.location = sL + "?cache=clear";
				} else {
					window.location = sL + "&cache=clear";
				}
			} else {
				window.location = sL;
			}
		}
	}
}
document.onkeydown = checkEdit;
