



        incluidos = 0;
        var limit = 6; // a, b o c parseado en el cgi

        function write_relacionados(ts_a_excluir) {

          document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
          document.writeln('  <tr>');
          document.writeln('    <td align="left"><img src="../../../../../imag2004/cont/t_relac.gif" alt="Art&iacute;culos Relacionados"></td>');
          document.writeln('  </tr>');
          document.writeln('  <tr align="center">');
          document.writeln('    <td>');







          

          if (ts_a_excluir != '20080523182931') {
            document.writeln('<TABLE width="134" cellpadding="0" cellspacing="0" border="0" >');
            document.writeln('  <TR>    <TD valign="middle">');
            // document.write('<span class="fec">');
            // print_date_or_time('20080523','1829', 'c', '');
            // document.write('</span>');
            
            document.write(' <span class="GralRel"><a href="/prontus4_nots/site/artic/20080523/pags/20080523182931.html">Desborde del río Tinguiririca (Video)</a></span>');
            

            

            document.writeln('</TD>  </TR>');
            document.writeln('  <TR>');
            document.writeln('    <td background="../../../../../imag2004/cont/ph.gif"><img src="../../../../../imag2004/cont/b.gif" width="1" height="5"></td>');
            document.writeln('  </TR>');
            document.writeln('  </TABLE>');
            incluidos = incluidos + 1;

          };

          if (incluidos >= limit) {
            display_vermas();
            document.writeln('<br></td></tr></TABLE>');
            return true;
          };
          

          if (ts_a_excluir != '20070704071528') {
            document.writeln('<TABLE width="134" cellpadding="0" cellspacing="0" border="0" >');
            document.writeln('  <TR>    <TD valign="middle">');
            // document.write('<span class="fec">');
            // print_date_or_time('20070704','0714', 'c', '');
            // document.write('</span>');
            
            document.write(' <span class="GralRel"><a href="/prontus4_nots/site/artic/20070704/pags/20070704071528.html">Militares en talleres de desarrollo personal</a></span>');
            

            

            document.writeln('</TD>  </TR>');
            document.writeln('  <TR>');
            document.writeln('    <td background="../../../../../imag2004/cont/ph.gif"><img src="../../../../../imag2004/cont/b.gif" width="1" height="5"></td>');
            document.writeln('  </TR>');
            document.writeln('  </TABLE>');
            incluidos = incluidos + 1;

          };

          if (incluidos >= limit) {
            display_vermas();
            document.writeln('<br></td></tr></TABLE>');
            return true;
          };
          

          if (ts_a_excluir != '20070628040448') {
            document.writeln('<TABLE width="134" cellpadding="0" cellspacing="0" border="0" >');
            document.writeln('  <TR>    <TD valign="middle">');
            // document.write('<span class="fec">');
            // print_date_or_time('20070628','0403', 'c', '');
            // document.write('</span>');
            
            document.write(' <span class="GralRel"><a href="/prontus4_nots/site/artic/20070628/pags/20070628040448.html">Con escándalo terminó Concejo</a></span>');
            

            

            document.writeln('</TD>  </TR>');
            document.writeln('  <TR>');
            document.writeln('    <td background="../../../../../imag2004/cont/ph.gif"><img src="../../../../../imag2004/cont/b.gif" width="1" height="5"></td>');
            document.writeln('  </TR>');
            document.writeln('  </TABLE>');
            incluidos = incluidos + 1;

          };

          if (incluidos >= limit) {
            display_vermas();
            document.writeln('<br></td></tr></TABLE>');
            return true;
          };
          

          if (ts_a_excluir != '20070622045740') {
            document.writeln('<TABLE width="134" cellpadding="0" cellspacing="0" border="0" >');
            document.writeln('  <TR>    <TD valign="middle">');
            // document.write('<span class="fec">');
            // print_date_or_time('20070622','0456', 'c', '');
            // document.write('</span>');
            
            document.write(' <span class="GralRel"><a href="/prontus4_nots/site/artic/20070622/pags/20070622045740.html">Más de 300 inscritos para Encuentro Ciudadano</a></span>');
            

            

            document.writeln('</TD>  </TR>');
            document.writeln('  <TR>');
            document.writeln('    <td background="../../../../../imag2004/cont/ph.gif"><img src="../../../../../imag2004/cont/b.gif" width="1" height="5"></td>');
            document.writeln('  </TR>');
            document.writeln('  </TABLE>');
            incluidos = incluidos + 1;

          };

          if (incluidos >= limit) {
            display_vermas();
            document.writeln('<br></td></tr></TABLE>');
            return true;
          };
          

          if (ts_a_excluir != '20070620070312') {
            document.writeln('<TABLE width="134" cellpadding="0" cellspacing="0" border="0" >');
            document.writeln('  <TR>    <TD valign="middle">');
            // document.write('<span class="fec">');
            // print_date_or_time('20070620','0701', 'c', '');
            // document.write('</span>');
            
            document.write(' <span class="GralRel"><a href="/prontus4_nots/site/artic/20070620/pags/20070620070312.html">Obispo consagrará templo del poblado de Chitita</a></span>');
            

            

            document.writeln('</TD>  </TR>');
            document.writeln('  <TR>');
            document.writeln('    <td background="../../../../../imag2004/cont/ph.gif"><img src="../../../../../imag2004/cont/b.gif" width="1" height="5"></td>');
            document.writeln('  </TR>');
            document.writeln('  </TABLE>');
            incluidos = incluidos + 1;

          };

          if (incluidos >= limit) {
            display_vermas();
            document.writeln('<br></td></tr></TABLE>');
            return true;
          };
          

          if (ts_a_excluir != '20070609075541') {
            document.writeln('<TABLE width="134" cellpadding="0" cellspacing="0" border="0" >');
            document.writeln('  <TR>    <TD valign="middle">');
            // document.write('<span class="fec">');
            // print_date_or_time('20070609','0754', 'c', '');
            // document.write('</span>');
            
            document.write(' <span class="GralRel"><a href="/prontus4_nots/site/artic/20070609/pags/20070609075541.html">Falleció conocido hombre de radio</a></span>');
            

            

            document.writeln('</TD>  </TR>');
            document.writeln('  <TR>');
            document.writeln('    <td background="../../../../../imag2004/cont/ph.gif"><img src="../../../../../imag2004/cont/b.gif" width="1" height="5"></td>');
            document.writeln('  </TR>');
            document.writeln('  </TABLE>');
            incluidos = incluidos + 1;

          };

          if (incluidos >= limit) {
            display_vermas();
            document.writeln('<br></td></tr></TABLE>');
            return true;
          };
          

          if (ts_a_excluir != '20070516070828') {
            document.writeln('<TABLE width="134" cellpadding="0" cellspacing="0" border="0" >');
            document.writeln('  <TR>    <TD valign="middle">');
            // document.write('<span class="fec">');
            // print_date_or_time('20070516','0707', 'c', '');
            // document.write('</span>');
            
            document.write(' <span class="GralRel"><a href="/prontus4_nots/site/artic/20070516/pags/20070516070828.html">De negro apoyaron a juez Vargas</a></span>');
            

            

            document.writeln('</TD>  </TR>');
            document.writeln('  <TR>');
            document.writeln('    <td background="../../../../../imag2004/cont/ph.gif"><img src="../../../../../imag2004/cont/b.gif" width="1" height="5"></td>');
            document.writeln('  </TR>');
            document.writeln('  </TABLE>');
            incluidos = incluidos + 1;

          };

          if (incluidos >= limit) {
            display_vermas();
            document.writeln('<br></td></tr></TABLE>');
            return true;
          };
          

          if (incluidos == 0) {
            display_sinrel();
          }
          else {
            display_vermas();
          };
          document.writeln('<br></td></tr></TABLE>');
          return true;
        };




function display_vermas() {
  if (incluidos > 0) {
		document.writeln('  <table width="134" border="0" cellspacing="0" cellpadding="0">');
    document.writeln('  <TR align="right">');
    document.writeln('    <TD><span class="footlink"><img src="../../../../../imag2004/cont/a.gif" width="11" height="11" > <a href="/cgi-bin/dr_ptema_lista.cgi?seccion=2&tema=48&subtema=113">Ver');
    document.writeln('      m&aacute;s</a></span></TD>');
    document.writeln('  </TR>');
    document.writeln('  </TABLE>');
  };
};

function display_sinrel() {
	document.writeln('  <table width="134" border="0" cellspacing="0" cellpadding="0">');
  document.writeln('  <TR align="left">');
  document.writeln('    <TD align="left"><span class="footlink">Sin artículos relacionados.</span></TD>');
  document.writeln('  </TR>');
  document.writeln('  </TABLE>');
};

