<!--
function ahrefThis() {
strSelection = document.selection.createRange().text
if (strSelection == "") document.text.text.focus()
strHref = prompt("Enter the URL of the site you want to link:","http://")
if (strHref == null) return;
document.selection.createRange().text = "<a href=\"" + strHref + "\" target=\"_blank\">" + strSelection + "</a>"
return;
}

function boldThis(from) {
strSelection = document.selection.createRange().text
if (strSelection == "") {
document.text.text.focus()
if (from == 2) document.text.text.select()
strSelection = document.selection.createRange().text
document.selection.createRange().text = strSelection + "<b></b>"
}
else document.selection.createRange().text = "<b>" + strSelection + "</b>"
return;
}

function clipThis(from) {
strSelection = document.selection.createRange().text;
document.text.text.focus();
var dummy = document.text.text.value;
document.text.text.value = "";
if (dummy) {
document.selection.createRange().text = dummy + "\n\n<em>" + strSelection + "</em>";
}
else {
document.selection.createRange().text = "<em>" + strSelection + "</em>";
}
return;
}

function italicThis(from) {
strSelection = document.selection.createRange().text
if (strSelection == "") {
document.text.text.focus()
if (from == 2) document.text.text.select()
strSelection = document.selection.createRange().text
document.selection.createRange().text = strSelection + "<em></em>"
}
else document.selection.createRange().text = "<em>" + strSelection + "</em>"
return;
}
//-->


