From JavaScript Tutorial for Certificate Course UC Web applications Certificate -- Summer 97. byGeoffrey C. Fox, Tom Scavo
function flexbuttons(maxradio, groupname, number, indname, indexselected, onprocess) {
if( number <= maxradio) { // radio buttons
for( var i=1; i <= number ; i++ ) {
top.fred.document.writeln('<input' +
'type="radio" name="' + groupname +
'" value="' + indname[i] + '"');
if( i == indexselected )
top.fred.document.writeln(' CHECKED');
top.fred.document.writeln(' onClick="' +
onprocess + '(self,this,' + i + ')">');
} // end for loop
} // end if block
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.