// ==============================================
// Desenha uma página com Imagem e 3 tipos de texto
// ==============================================
function jImgTxtRecEx( graf, txt, rec, exemplo )
{
	if( graf != "" )
		document.write( '<center><br /><img src="', graf, '.gif" /></center>' );
		
	if( txt != "" )
		document.write( '<div class="TxtAux">', txt, '</div>' );

	if( rec != "" )
		document.write( '<div class="TxtCinza">', rec, '</div>' );

 	if( exemplo != "" )
		document.write( '<div class="TxtAux">', exemplo, '</div>' );
}

// ==============================================
// Desenha uma página de auxílio
// ==============================================
function jIniPagAux( corF, gifF, tit, txtAux, links )
{
	document.write( '<a name="topo">' );
	jIniPag( corF, gifF );
	document.write( '<td width="4%">&nbsp;</td>' );
	expande( "", "JANESQ", false );
	jMeioPag( tit, "", "", "", "" );
	if( links != "" )
	{
		document.write( '<div class="TxtCinza">', txtAux, '<ul>' );
		for( var i = 0; i < links.length; i+=2 )
			document.write( '<li><a href="#', links[ i ], '">', links[ i+1 ], '</a><br /></li>' );
		document.write( '</ul></div>' );
	}
}

function jTxtAux( cab, graf, txt, rec, exemplo )
{
	document.write( '<center><a name="', ( ( graf=='' ) ? cab : graf ), ' /"><br /><hr width="50%" /><br /></center>' );
	grupo( graf, 'as explicações', '<span style="font-weight:bolder;color:darkblue"> ' + cab + '</span>', false, 'center' );
	jImgTxtRecEx( graf, txt, rec, exemplo );
	fimGrupo();
	document.write( '<a href="#topo" style="font-size:7pt">Voltar ao topo</a><br />' );
}

function jFimPagAux()
{
	document.write( '<br />' );
	jFimPag( true, "", "" );
}

// ==============================================
// Desenha uma tabela com quadro de avisos
// ==============================================

function jtAviso()
{
	document.write( '<table cellpadding="5" border="1"><tr><td class="FundoAm">Data</td><td class="FundoAm">Ocorrência</td></tr>' );
}

function jtAvisoFim()
{
	document.write( '</table>' );
}

function jAviso( data, txt )
{
	document.write( '<tr>',
		'<td class="Questao1" style="text-align:center">', data, '</td>',
		'<td class="Questao1" style="text-align:justify">', txt, '</td>',
		'</tr>' );
}
