')
for (var j = 1; j <= table.cols.value; j++) {
tabdoc.write('' +(j*i)+ '<\/TD>')
}
tabdoc.write('<\/TR>')
}
tabdoc.write('<\/TABLE><\/HTML><\/BODY>')
tabdoc.close()
}
function showSource() {
var opts = 'width=450,height=350,scrollbars=yes,directories=no,status=no,location=no,toolbar=no,resizable=yes';
var ltag = '<'
var gtag = '>'
var sourcewin = window.open('','source',opts)
sourcewin= window.open('','source')
sourcewin.status="Cut and paste this info into your web page"
sourcewin.document.write('source code for html table<\/TITLE><\/HEAD>')
sourcewin.document.write('')
sourcewin.document.writeln(ltag + 'TABLE ')
if (myTable.alignment.out != '')
sourcewin.document.writeln(myTable.alignment.out)
sourcewin.document.writeln(myTable.border.out)
sourcewin.document.writeln(myTable.cellspacing.out)
sourcewin.document.writeln(myTable.cellpadding.out + gtag)
for (var i=1; i <= myTable.rows.value; i++) {
sourcewin.document.writeln(ltag+ 'TR' + gtag)
for (var j = 1; j <= myTable.cols.value; j++) {
sourcewin.document.writeln(' ' +ltag+ 'TD' +myTable.cvalign.out+ ' ' +myTable.calign.out +gtag +(j*i)+ ltag+ '/TD' +gtag)
}
sourcewin.document.writeln(ltag+ '/TR' +gtag)
}
sourcewin.document.writeln(ltag+ '/TABLE' +gtag)
sourcewin.document.write('<\/XMP><\/PRE>')
sourcewin.document.write('
')
sourcewin.document.write(' |