function valida_filtro_linhas_maritimas() {

	str_erro = "";
	k = document.frmFiltro;

	if (k.destino.value == "0" && k.frequencia.value == "0"){
		str_erro = str_erro + "Select destination or frequency.\n"; 
	}	
		
	if (str_erro != "")	{
		alert(str_erro);		
	}else{
		document.frmFiltro.submit();
	}
}

function valida_filtro_noticias() {
	
	str_erro = "";
	k = document.frmFiltro;
	
	if (k.mes.value == "0" && k.ano.value == "0" && k.palavrachave.value == "palavra chave"){
		str_erro = str_erro + "Choose a filter.\n"; 
	}	
		
	if (str_erro != "")	{
		alert(str_erro);		
	}else{
		document.frmFiltro.submit();
	}
}


$(function() {
	$(".limpa_input").focus(function() {
	if( this.value == this.defaultValue ) {
			this.value = "";
		}
		}).blur(function() {
	if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});	   
});	  