function buildTable(nRows, nCols) {
   var idx = 0, idx2 = 0;
   var oTable = document.createElement("TABLE");
   var oTBody = document.createElement("TBODY");
   var oTRow = null;
   var oTCol = null;

   for (idx; idx < nRows; idx++) {
      oTRow = document.createElement("TR");
      for (idx2 = 0; idx2 < nCols; idx2++) {
         oTCol = document.createElement("TD");
         oTCol.innerText = nRow + ", " + nCol;
         oTCol.style.fontSize = "12px";
         oTCol.style.fontWeight = 700;
         oTCol.style.fontFamily = "tahoma";
         oTRow.appendChild(oTCol);
      };
      oTBody.appendChild(oTRow);
   };
   oTable.appendChild(oTBody);
   document.body.appendChild(oTable);
};
