function shortCuts() {
	if (event.ctrlKey != true) return;
	strSelection = document.selection.createRange().text;
	if (event.keyCode == 1) ahrefThis();
	if (event.keyCode == 2) boldThis(2);
	if (event.keyCode == 9) italicThis(2);
	if (event.keyCode == 18) hardReturnThis(2);
	if (event.keyCode == 14) indentThis(2);
}

function ahrefThis() {
	strSelection = document.selection.createRange().text
	if (strSelection == "") document.myForm.fullDescription.focus()
	strHref = prompt("Enter the URL you want to link to:","http://")
	if (strHref == null) return;
	document.selection.createRange().text = "<a href=\"#\" onClick=\"MM_openBrWindow('" + strHref + "','newWindow','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')\">" + strSelection + "</a>"
	return;
}

function boldThis(from) {
	strSelection = document.selection.createRange().text
	if (strSelection == "") {
		document.myForm.fullDescription.focus()
		if (from == 2) document.myForm.fullDescription.select()
		strSelection = document.selection.createRange().text
		document.selection.createRange().text = strSelection + "<b></b>"
	}	
	else document.selection.createRange().text = "<b>" + strSelection + "</b>"
	return;
}

function italicThis(from) {
	strSelection = document.selection.createRange().text
	if (strSelection == "") {
		document.myForm.fullDescription.focus()
		if (from == 2) document.myForm.fullDescription.select()
		strSelection = document.selection.createRange().text
		document.selection.createRange().text = strSelection + "<i></i>"
	}
	else document.selection.createRange().text = "<i>" + strSelection + "</i>"
	return;
}

function hardReturnThis(from) {
	strSelection = document.selection.createRange().text
	if (strSelection == "") {
		document.myForm.fullDescription.focus()
		if (from == 2) document.myForm.fullDescription.select()
		strSelection = document.selection.createRange().text
		document.selection.createRange().text = strSelection + "<br><br>"
	}
	else document.selection.createRange().text = "" + strSelection + "<br><br>"
	return;
}

function indentThis(from) {
	strSelection = document.selection.createRange().text
	if (strSelection == "") {
		document.myForm.fullDescription.focus()
		if (from == 2) document.myForm.fullDescription.select()
		strSelection = document.selection.createRange().text
		document.selection.createRange().text = strSelection + "<tab>"
	}
	else document.selection.createRange().text = "<tab>" + strSelection + ""
	return;
}

function quoteThis(from) {
	strSelection = document.selection.createRange().text
	if (strSelection == "") {
		document.myForm.fullDescription.focus()
		if (from == 2) document.myForm.fullDescription.select()
		strSelection = document.selection.createRange().text
		document.selection.createRange().text = strSelection + "<quote></quote>"
	}
	else document.selection.createRange().text = "<quote>" + strSelection + "</quote>"
	return;
}

