// Support Macros ---------------------
var lastCaret = null;

function showWord(word) {
	document.write("<a href=\"javascript:insertWord('" + word + "');void(0);\">" + word + "</a>");
}

function insertWord(word) {
	if(lastCaret != null) {
		insertText(lastCaret, word);
	}
}

function storeCaret(element) { 
	if (document.selection && document.selection.createRange) {
		element.caretPos=document.selection.createRange().duplicate(); 
	}

	lastCaret = element;
} 

function insertText(element,text) {
	if (element && element.caretPos) {
		element.caretPos.text=text; 
	} else if (element && element.selectionStart+1 && element.selectionEnd+1) {
		element.value=element.value.substring(0,element.selectionStart)+text+element.value.substring(element.selectionEnd,element.value.length);
	} else if (element) {
		element.value+=text; 
	}
}

function setDefault(element) {
	lastCaret = element;				
}
// Support Macros -----------------end-
<!-- 
 --------------------- 
 -->  