344 VisualAge for Java Version 3: Persistence Builder with GUIs, Servlets, and JSPs
we named SelectionScript (below the push buttons). Define a function for
each of the three lists. Each function accepts a parameter, the name of the
form that contains the list.
function selectAccountListFunc(s){
s.AccountID.options[s.AccountID.selectedIndex].selected =true;
s.AccountType.options[s.AccountID.selectedIndex].selected =true;
}
function selectAccountIDFunc(s){
s.AccountList.options[s.AccountList.selectedIndex].selected =true;
s.AccountType.options[s.AccountList.selectedIndex].selected =true;
}
function selectAccountTypeFunc(s){
s.AccountList.options[s.AccountType.selectedIndex].selected =true;
s.AccountID.options[s.AccountType.selectedIndex].selected =true; ...