function ValidaForm(form){for(i=0;i<form.length;i++){var obg=form[i].className;if(obg.indexOf("obrigatorio")>-1){if(form[i].value==""){form[i].style.border='2px solid red';form[i].focus();return false;}else{form[i].style.border='';}}}
return true;}
function getDate(){document.getElementById("DataSaida").value=document.getElementById("dia").value+"/"+document.getElementById("mes").value+"/"+document.getElementById("ano").value;}
function ShowDivHid(id){if(document.getElementById(id)!=null){if(document.getElementById(id).style.display=="none"||document.getElementById(id).className.indexOf("sumir")>-1){document.getElementById(id).className="";document.getElementById(id).style.display='block';}else{document.getElementById(id).style.display='none';}}}
function ShowDiv(id){if(document.getElementById(id)!=null){document.getElementById(id).style.display='block';}}
