function deixarRecado(){
	$("#recadoList").hide();
	$("#recados").fadeIn();
	$("#recados").empty().append(
			"<table width='100%' cellpadding='0' cellspacing='0' style='color: #FFF;'>"+
			"<tr>"+
			"<td width='20%'><div style='text-align: right; font-size: 11px;'>Nome:</div></td>"+
			"<td width='80%'><input id='nome' type='text' style='font-size: 11px;' /></td>"+
			"</tr><tr>"+
			"<td><div style='text-align: right; font-size: 11px;'>Email:</div></td> <td><input id='email' type='text' style='font-size: 11px;' /></td>"+
			"</tr><tr>"+
			"<td><div style='text-align: right; font-size: 11px;'>Cidade/Estado:</div></td> <td><input id='cidadeEstado' type='text' style='font-size: 11px;' /></td>"+
			"</tr><tr>"+
			"<td valign='top'><div style='text-align: right; font-size: 11px;'>Recado:</div></td> <td><textarea id='recado' rows='2' cols='50' style='font-size: 11px;'></textarea></td>"+
			"</tr>"+
			"</table>"+
			"<br style='line-height: 8px;' /><center><a style='cursor: pointer; color: rgb(133, 194, 38); letter-spacing: 1px;' onclick='enviarRecado();'><b>ENVIAR</b></a></center>"
		);
}

function enviarRecado(){
	var bool = false;
	$(".muralRecados input:text").each(function(){
		if($(this).val() != ""){
				bool = true;
		}
	});
	if(bool){
		$.ajax({
		type: "POST",
		url: "inserirRecado.php",
		data: "nome="+$("#nome").val()+"&email="+$("#email").val()+"&cidadeEstado="+$("#cidadeEstado").val()+"&recado="+$("#recado").val(),
		success: function(res){
			if( res != null ){
				$("#recados").empty().append("<br /><br /><br /><br /><center>Aguardando Aprova&ccedil;&atilde;o!</center>");
				setTimeout(function() { $("#recados").fadeOut(); $("#recadoList").fadeIn(); }, 5000);
			}else{
				$("#status").empty().append("<center><b style='font-size:14px; color:red;'>Login ou Senha Inv&aacute;lido(s)!</b></center>");
				setTimeout(function() { $("#status").empty(); }, 5000);
			}
		}
	});
  }else{
	  alert('Preencha todos os campos corretamente!');
  }
}