function acao( isToc, index ){
	document.formHidden.toc.value = isToc;
	document.formHidden.docIndex.value = index;
	document.formHidden.submit();
}

function goSearch( page ){
   document.formHidden.action = page;
	document.formHidden.docIndex.value = 0;
   document.formHidden.submit();
}

function irDocCompleto( index ){
	document.formHidden.docIndex.value = index;
   document.formHidden.sectionNameString.value = "completo";
	document.formHidden.toc.value = 'false';
	document.formHidden.submit()
}

function irDocSimples( index ){
	document.formHidden.docIndex.value = index;
   document.formHidden.sectionNameString.value = "resumo";
	document.formHidden.toc.value = 'false';
	document.formHidden.submit()
}

function showLegislacao( query ){
   document.formHiddenVide.livre.value = query.replace( /\+/g, " " ) ;
   document.formHiddenVide.docIndex.value = '0';
   document.formHiddenVide.submit();
}

function validaForm(){
   form = document.pesquisa
   if( form.bases.value == "" ){
      alert( "Escolha a base de dados!" );
      //showBases();
      return false;
   }else return true;
}

function showBases(){
   showWindowValue( 'bases.jsp?bases=' + document.pesquisa.bases.value, 'base', 640, 480 )
}

function ordenar( field ){
	document.formHidden.searchSortParagraph.value = field
	document.formHidden.submit();
	return false;
}


