function countDatabases( checkbox, maxDbNum ) {
  if( numCheckedDatabases() > maxDbNum ) {
    alert( "Sorry - No more than " + maxDbNum + " databases can be searched at one time." );
    checkbox.checked = false;
  }
}
/*
 * Only allow a certain number of DBs to be checked.  If number of checked DBs
 * is larger than maxDbNum, alert the user.
 */
Only allow a certain number of DBs to be checked.  If number of checked DBs
is larger than maxDbNum, alert the user.
Only allow a certain number of DBs to be checked . If number of checked DBs is larger than maxDbNum alert the user .
function countDatabases( checkbox, maxDbNum ) {
  if( numCheckedDatabases() > maxDbNum ) {
    alert( "Sorry - No more than " + maxDbNum + " databases can be searched at one time." );
    checkbox.checked = false;
  }
}
function countDatabases ( checkbox , maxDbNum ) { if ( numCheckedDatabases ( ) > maxDbNum ) { alert ( "Sorry - No more than " + maxDbNum + " databases can be searched at one time." ) ; checkbox . checked = false ; } }
Only allow a certain number of DBs to be checked.
Only allow a certain number of DBs to be checked .