  //////////////////////////////////////
 // (C) 2002, Copyright by F.Cardoza //
//////////////////////////////////////

function ShowTable (PicName, PicLen) {
     var tTempVar;
     var tCurPic = 1;
     var tTemp = '"';

     document.write("<TABLE width=500 cellspacing=1 cellpadding=1 border=0>");
     for (var y = 0; y < PicLen / 7; y++) { 
          document.write("<TR>");

          for (var x = 0; x < 7; x++) { 
               tTempVar = tCurPic.toString();
               for (var z = tTempVar.length; z < 4; z++) { tTempVar = "0" + tTempVar}

               if (tCurPic <= PicLen) {
                    document.write("<TD ALIGN=CENTER VALIGN=CENTER><A href='javascript:ShowPicture(" + tTemp + PicName.substring(0, PicName.length - 8) + tTempVar + PicName.substring(PicName.length - 4, PicName.length) + tTemp + ", " + PicLen + ")'><img src='" + PicName.substring(0, PicName.length - 8) + tTempVar + PicName.substring(PicName.length - 4, PicName.length) + "' width=100 height=80 border=0></A></TD>");
               }

               tCurPic++
          }

          document.write("</TR>");
     }

     document.write("</TABLE>");
}

