function boldThis(from) {strSelection = document.selection.createRange().text
if (strSelection == "") {document.AddEntry.Content.value += "<b></b>"} 
else document.selection.createRange().text = "<b>" + strSelection + "</b>"}

function italicsThis(from) {strSelection = document.selection.createRange().text
if (strSelection == "") {document.AddEntry.Content.value += "<i></i>"} 
else document.selection.createRange().text = "<i>" + strSelection + "</i>"}

function underlineThis(from) {strSelection = document.selection.createRange().text
if (strSelection == "") {document.AddEntry.Content.value += "<u></u>"} 
else document.selection.createRange().text = "<u>" + strSelection + "</u>"}

function crossThis(from) {strSelection = document.selection.createRange().text
if (strSelection == "") {document.AddEntry.Content.value += "<s></s>"} 
else document.selection.createRange().text = "<s>" + strSelection + "</s>"}

function lineThis(from) {document.AddEntry.Content.value += " <hr>"}

function linkThis(from) {txt=prompt("URL for the link.","http://");
			if (txt!=null) { document.AddEntry.Content.value += " <a href=\""+txt+"\">"+txt+"</a>"}}

function imageThis(from) {if (from == "") {popupWin = window.open('UploadPicture.asp','new_page','width=400,height=200,scrollbars=no')} 
else popupWin = window.open('UploadPicture.asp?'+from,'new_page','width=400,height=200,scrollbars=no')}
