<!--
function x () {
return;
}

function submitonce(theform){
if (document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=true
}}}  // end fn

function send(how){
oForm = how.form;
oForm.subtype.value = how.value;
oForm.submit();
submitonce(oForm);
}  // end fn


function smilieWin() {
	var winTop = (screen.height / 2) - 150;
	var winLeft = (screen.width / 2) - 125;
	var winF = "width=250,height=300,scrollbars=yes,directories=no,status=no,location=no,resizable=yes,toolbar=no,";
	winF = winF + "top=" + winTop + ",left=" + winLeft;
	newWin = window.open("smilies/fd_smilies.html","smilies",winF);
} // end fn

function catWin() {
	var winTop = (screen.height / 2) - 150;
	var winLeft = (screen.width / 2) - 125;
	var winF = "width=250,height=380,scrollbars=yes,directories=no,status=no,location=no,resizable=yes,toolbar=no,";
	winF = winF + "top=" + winTop + ",left=" + winLeft;
	newWin = window.open("smilies/fd_catsmilies.html","smilies",winF);
} // end fn

function matuscaWin() {
	var winTop = (screen.height / 2) - 240;
	var winLeft = (screen.width / 2) - 125;
	var winF = "width=250,height=485,scrollbars=yes,directories=no,status=no,location=no,resizable=yes,toolbar=no,";
	winF = winF + "top=" + winTop + ",left=" + winLeft;
	newWin = window.open("smilies/fd_matusmilies.html","smilies",winF);
} // end fn


function storeCaret (textEl) {
	if (textEl.createTextRange)
		textEl.caretPos = document.selection.createRange().duplicate();
} // end fn

function insertAtCaret (textEl, text) {

	if (textEl.createTextRange && textEl.caretPos) {
		var caretPos = textEl.caretPos;
		caretPos.text =
			caretPos.text.charAt(caretPos.text.length - 1) == ' ' ?
			text + ' ' : text;
	} else {
		textEl.value  = textEl.value + text; // for non MSIE browsers just append it
	}

	return true;
}// fn



function DoSmilie(addSmilie) {
	var revisedComment;
	var currentComment = document.frmComment.txtComment.value;
	revisedComment = currentComment+addSmilie;
	document.frmComment.txtComment.value=revisedComment;
	document.frmComment.txtComment.focus();
	return;
}

function DoPrompt(action) {
	var currentComment = document.frmComment.txtComment.value;
	if (action == "url") {
		var thisURL = prompt("Digite o endereço URL para o link que você quer adicionar ao comentário.", "http://");
		if (thisURL == null){return;}
			var thisTitle = prompt("Agora entre com o texto do link.", "Link");
		if (thisTitle == null){return;}
			insertAtCaret(document.frmComment.txtComment, ' ' + "<a href='" + thisURL + "' target='_blank' class='one'>" + thisTitle + "</a>" + ' ');
		document.frmComment.txtComment.focus();
		return;
	}

	if (action == "bold") {
		var thisBold = prompt("Entre o texto que você deseja colocar em negrito.", "");
		if (thisBold == null){return;}
			insertAtCaret(document.frmComment.txtComment, ' ' + "<b>" + thisBold + "</b>" + ' ' );
		document.frmComment.txtComment.focus();
		return;
	}
	if (action == "italics") {
		var thisItal = prompt("Entre o texto que você deseja colocar em itálico.", "");
		if (thisItal == null){return;}
			insertAtCaret(document.frmComment.txtComment, ' ' + "<i>" + thisItal + "</i>" + ' ' );
		document.frmComment.txtComment.focus();
		return;
	}

}

//-->