// public function for use my design
function SwitchState() {
	var i = window.location.pathname.indexOf("/ClearText/");
	if (i>=0) {
		document.location.href = window.location.pathname.replace('/ClearText','') + window.location.search;
	} else {
		document.location.href = '/ClearText' + window.location.pathname + window.location.search;
	}	
}

// register key pressed event
document.onkeydown = keyHit;

function keyHit(evt) {
	
	altPressed  = event.altKey;
	ctrlPressed = event.ctrlKey;
	
	var CKeybool = false;
	thiskey = window.event.keyCode;
	if (thiskey == 67) {CKeybool = true;}
	
	if (ctrlPressed == true && altPressed == true && CKeybool == true) {
		SwitchState();
	}
}
