function showElement(A){document.getElementById(A).style.display=""}function hideElement(A){document.getElementById(A).style.display="none"}function actionWarning(A){if(confirm("Really delete entry?")){window.location=A}}function showEditBox(A){$("news"+A).empty();$("news"+A).innerHTML='<div id="loading" style="margin-top:45px">Aguarde...</div>';new Ajax(url+"../../AjaxRequests/News_Edit.php",{postBody:"id="+A+"&action=show",update:$("news"+A)}).request()}function hideEditBox(A){$("news"+A).empty();$("news"+A).innerHTML='<div id="loading" style="margin-top:45px">Aguarde...</div>';new Ajax(url+"../../AjaxRequests/News_Edit.php",{postBody:"id="+A+"&action=hide",update:$("news"+A)}).request()}function editNews(id){var atitle;var abody;var aauthor;var adate;var asource;var aid;with(document.getElementById("editBox"+id)){aid=id.value;atitle=title.value;atitle=atitle.replace(/\+/g,"&#43");atitle=atitle.replace(/\\/g,"&#92");atitle=atitle.replace(/\'/g,"`");atitle=escape(atitle);abody=body.value;abody=abody.replace(/\+/g,"&#43");abody=abody.replace(/\\/g,"&#92");abody=abody.replace(/\'/g,"`");abody=escape(abody);aauthor=author.value;aauthor=aauthor.replace(/\+/g,"&#43");aauthor=aauthor.replace(/\\/g,"&#92");aauthor=aauthor.replace(/\'/g,"`");aauthor=escape(aauthor);adate=date.value;asource=source.value;asource=asource.replace(/\+/g,"&#43");asource=asource.replace(/\\/g,"&#92");asource=asource.replace(/\'/g,"`");asource=escape(asource)}$("news"+id).empty();$("news"+id).innerHTML='<div id="loading" style="margin-top:45px">Salvar...</div>';new Ajax(url+"../../AjaxRequests/News_Edit.php",{postBody:"id="+aid+"&action=edit&title="+atitle+"&body="+abody+"&author="+aauthor+"&date="+adate+"&source="+asource,update:$("news"+aid)}).request()};
