function ahrefThis() {
	if (document.selection)
		strSelection = document.selection.createRange().text;
	else
		strSelection = '';

	strHref = prompt("Create a link to:","http://");
	if (strHref == null) return;

var myDomain=document.domain;
i = strHref.indexOf(myDomain);
if (i == -1)
strTarget = " target=\"_blank\"";
else
strTarget = "";

	var textpre = "<a href=\"" + strHref.replace(/&/g,'&amp;') + "\"" + strTarget + ">";
	insertAroundCaret(textpre, "</a>");
}
