<SCRIPT LANGUAGE="JavaScript">
<!--
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 == 20) italicThis(2);
        if (event.keyCode == 19) post(1);
        if (event.keyCode == 10) post(0);
        if (event.keyCode == 17) deleteMe();
}

function ahrefThis(textareabox) {
        strSelection = document.selection.createRange().text
        if (strSelection == "") eval('document.mainform.' + textareabox + '.focus()')
        strHref = prompt("Enter the URL you want to link to:","http://")
        if (strHref == null) return;
        document.selection.createRange().text = "<a href=\"" + strHref + "\">" + strSelection + "</a>"
        return;
}

function boldThis(textareabox) {
        strSelection = document.selection.createRange().text
        if (strSelection == "") {
                eval('document.mainform.' + textareabox + '.focus()')
                strSelection = document.selection.createRange().text
                document.selection.createRange().text = strSelection + "<strong></strong>"
        }       
        else document.selection.createRange().text = "<strong>" + strSelection + "</strong>"
        return;
}

function italicThis(textareabox) {
        strSelection = document.selection.createRange().text
        if (strSelection == "") {
                eval('document.mainform.' + textareabox + '.focus()')
                strSelection = document.selection.createRange().text
                document.selection.createRange().text = strSelection + "<cite></cite>"
        }
        else document.selection.createRange().text = "<cite>" + strSelection + "</cite>"
        return;
}

// -->
</SCRIPT>

