	$(document).ready(function(){
		
		$("#Dt_ini").mask('99/99/99');
		$("#Dt_fim").mask('99/99/99');	
		
	});
	
	function boxShare(id){
		var bloco = document.getElementById('share-'+id);
		
		if(bloco.style.display == 'block')
			bloco.style.display = 'none';
		else
			bloco.style.display = 'block';
	}


	function validaForm(){		
		var sucesso = true;
		
		$("#frm [required='true']").each(function(){
			$(this).css('border-style','solid');
			if(!this.value || this.value == ''){
				$(this).css('border-color','#FF0000');
				sucesso = false;					
			}
			else{				
				$(this).css('border-color','');
			}	
		});	
			if(sucesso){
				document.getElementById("frm").submit();
			}
			else
				alert("Existem campos de preenchimento obrigatorio");

	}
	
	
