function trim(c){var a=0,b=c.length-1;while(c.charAt(a)==" "){a++}while(c.charAt(b)==" "){b--}if(a>b){return""}return c.substring(a,b+1)}function clickOnce(a){a.disabled=true}function showhide(a){if(document.getElementById(a)){obj=document.getElementById(a);if(obj.style.display=="none"){obj.style.display=""}else{obj.style.display="none"}}}function show(a){if(document.getElementById(a)){obj=document.getElementById(a);obj.style.display=""}else{alert("function show(): Nao foi encontrado o objecto com ID = "+a)}}function hide(a){if(document.getElementById(a)){obj=document.getElementById(a);obj.style.display="none"}else{alert("function hide(): Nao foi encontrado o objecto com ID = "+a)}}function show_block(a){if(document.getElementById(a)){obj=document.getElementById(a);obj.style.display="block"}else{alert("function show_block(): Nao foi encontrado o objecto com ID = "+a)}}function copyValueComboToInput(b,a){a.value=b[b.selectedIndex].value}function copyTextComboToInput(b,a){a.value=b[b.selectedIndex].text}function getDataDoDia(){new Ajax.Updater("datadodia","/geral/index/getdatadodia")};