// JavaScript Document
function validaMural()
{
	if (document.mural.de.value=="") {
		alert("Informe seu nome ou nick");
		document.mural.de.focus();
		return false;
	}
	if (document.mural.para.value=="") {
		alert("Informe para quem é este recado");
		document.mural.para.focus();
		return false;
	}
	
	if (document.mural.mensagem.value=="") {
		alert("Deixe uma mensagem");
		document.mural.mensagem.focus();
		return false;
	}
	
	document.mural.submit();
	
	document.mural.de.value="";
	document.mural.para.value="";
	document.mural.mensagem.value=""
	
}

function limite(fr,limite,obj) {
	var digitado;
	digitado = obj.value.length;
	fr.num_carac.value = (limite - digitado);
	if (digitado >= limite) {
		alert("O limite de caracaters foi atingido!");
		obj.value = obj.value.substring(0,limite);
		return false;
	}
}

function inHTML(strTexto){
	var objmsg = document.mural.msg;
	objmsg.value += strTexto;
	objmsg.focus();
}
