$(document).ready(function(){
$("#muraladd2").click(function(){
var nome = $("#nome").val();
var para = $("#para").val();
var email = $("#email").val();
var cidade = $("#cidade").val();
var mensagem = $("#mensagem").val()
var dataString = 'nome1='+ nome + '¶1='+ para + '&email1='+ email + '&cidade1='+ cidade + '&mensagem1='+ mensagem;
if(nome==''||para==''||email==''||cidade==''||mensagem=='')
{
alert("Preencha todos os campos");
}
else
{
$("#muraladd").removeAttr("style").hide();
$('#muralresultado').html("
");
$.ajax({
type: "POST",
url: "http://ps.srvsite.com/2664/enviarrecado2",
data: dataString,
cache: false,
success: function(newContent){
$('#muralresultado').html(newContent);
$("#muraladd").removeAttr("style").hide();
setTimeout(function(){
location.reload();
}, 2000);
}
});
}
return false;
});
});
function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; }
function aud_play_pause(id,img) { var myAudio = document.getElementById(id); if (myAudio.paused) { $(img).removeClass('fa fa-play-circle-o'); $(img).addClass('fa fa-pause-circle-o'); myAudio.play(); } else { $(img).removeClass('fa fa-pause-circle-o'); $(img).addClass('fa fa-play-circle-o'); myAudio.pause(); }
}
function target_popup(form) {
window.open('', 'formpopup', 'width=400,height=400,resizeable,scrollbars');
form.target = 'formpopup';
location.reload();
}