else { // Case when enough options for a select field
|
top.fred.document.writeln('<select name="' + groupname + '" onChange="' + onprocess + '(this,this.options[this.selectedIndex],(1+this.selectedIndex))" >');
-
for( var i=1; i <= number ; i++) {
-
var ifselected = ' ';
-
if( i == indexselected )
-
ifselected = ' SELECTED ';
-
top.fred.document.writeln('<option ' + ifselected + 'value="' + indname[i] + '" >' + indname[i]);
-
} // End for loop
|
top.fred.document.writeln('</select>');
|
} // End else for generating select field
|
} // End of flexbuttons
|