function SelectDist(){ removeAllOptions(document.foSelect.districtID); removeAllOptions(document.foSelect.page); // addOption(document.foSelect.districtID, "", "Select district", ""); // added below switch(document.foSelect.year.value) { case '1841': addOption(document.foSelect.districtID,"1","Village centre"); addOption(document.foSelect.districtID,"2","Tathall End"); addOption(document.foSelect.districtID,"3","Long Street"); break; case '1851': addOption(document.foSelect.districtID,"4","Village Centre"); addOption(document.foSelect.districtID,"5","Tathall End"); addOption(document.foSelect.districtID,"6","Long Street"); addOption(document.foSelect.districtID,"25","Strays"); break; case '1861': addOption(document.foSelect.districtID,"7","Village Centre"); addOption(document.foSelect.districtID,"8","Tathall End"); addOption(document.foSelect.districtID,"9","Long Street"); break; case '1871': addOption(document.foSelect.districtID,"10","Village Centre"); addOption(document.foSelect.districtID,"11","Tathall End"); addOption(document.foSelect.districtID,"12","Long Street"); break; case '1881': addOption(document.foSelect.districtID,"13","Village Centre"); addOption(document.foSelect.districtID,"14","Tathall End"); addOption(document.foSelect.districtID,"15","Long Street"); break; case '1891': addOption(document.foSelect.districtID,"16","Village Centre"); addOption(document.foSelect.districtID,"17","Tathall End"); addOption(document.foSelect.districtID,"18","Long Street"); break; case '1901': addOption(document.foSelect.districtID,"19","Village Centre"); addOption(document.foSelect.districtID,"20","Tathall End"); addOption(document.foSelect.districtID,"21","Long Street"); break; case '1911': addOption(document.foSelect.districtID,"22","Village Centre"); addOption(document.foSelect.districtID,"23","Tathall End"); addOption(document.foSelect.districtID,"24","Long Street"); break; } // end of JS switch } // end of JS function SelectDist() function SelectPage(){ removeAllOptions(document.foSelect.page); switch(document.foSelect.districtID.value) { case '1': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); addOption(document.foSelect.page,"23","23"); addOption(document.foSelect.page,"24","24"); addOption(document.foSelect.page,"25","25"); addOption(document.foSelect.page,"26","26"); addOption(document.foSelect.page,"27","27"); break; case '22': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); addOption(document.foSelect.page,"23","23"); addOption(document.foSelect.page,"24","24"); addOption(document.foSelect.page,"25","25"); addOption(document.foSelect.page,"26","26"); addOption(document.foSelect.page,"27","27"); addOption(document.foSelect.page,"28","28"); addOption(document.foSelect.page,"29","29"); addOption(document.foSelect.page,"30","30"); addOption(document.foSelect.page,"31","31"); addOption(document.foSelect.page,"32","32"); addOption(document.foSelect.page,"33","33"); addOption(document.foSelect.page,"34","34"); addOption(document.foSelect.page,"35","35"); addOption(document.foSelect.page,"36","36"); addOption(document.foSelect.page,"37","37"); addOption(document.foSelect.page,"38","38"); addOption(document.foSelect.page,"39","39"); addOption(document.foSelect.page,"40","40"); addOption(document.foSelect.page,"41","41"); addOption(document.foSelect.page,"42","42"); addOption(document.foSelect.page,"43","43"); addOption(document.foSelect.page,"44","44"); addOption(document.foSelect.page,"45","45"); addOption(document.foSelect.page,"46","46"); addOption(document.foSelect.page,"47","47"); addOption(document.foSelect.page,"48","48"); addOption(document.foSelect.page,"49","49"); addOption(document.foSelect.page,"50","50"); addOption(document.foSelect.page,"51","51"); addOption(document.foSelect.page,"52","52"); addOption(document.foSelect.page,"53","53"); addOption(document.foSelect.page,"54","54"); addOption(document.foSelect.page,"55","55"); addOption(document.foSelect.page,"56","56"); addOption(document.foSelect.page,"57","57"); addOption(document.foSelect.page,"58","58"); addOption(document.foSelect.page,"59","59"); addOption(document.foSelect.page,"60","60"); addOption(document.foSelect.page,"61","61"); addOption(document.foSelect.page,"62","62"); addOption(document.foSelect.page,"63","63"); addOption(document.foSelect.page,"64","64"); addOption(document.foSelect.page,"65","65"); addOption(document.foSelect.page,"66","66"); addOption(document.foSelect.page,"67","67"); addOption(document.foSelect.page,"68","68"); addOption(document.foSelect.page,"69","69"); addOption(document.foSelect.page,"70","70"); addOption(document.foSelect.page,"71","71"); addOption(document.foSelect.page,"72","72"); addOption(document.foSelect.page,"73","73"); addOption(document.foSelect.page,"74","74"); addOption(document.foSelect.page,"75","75"); addOption(document.foSelect.page,"76","76"); addOption(document.foSelect.page,"77","77"); addOption(document.foSelect.page,"78","78"); addOption(document.foSelect.page,"79","79"); addOption(document.foSelect.page,"80","80"); addOption(document.foSelect.page,"81","81"); addOption(document.foSelect.page,"82","82"); addOption(document.foSelect.page,"83","83"); addOption(document.foSelect.page,"84","84"); addOption(document.foSelect.page,"85","85"); addOption(document.foSelect.page,"86","86"); addOption(document.foSelect.page,"87","87"); addOption(document.foSelect.page,"88","88"); addOption(document.foSelect.page,"89","89"); addOption(document.foSelect.page,"90","90"); addOption(document.foSelect.page,"91","91"); addOption(document.foSelect.page,"92","92"); addOption(document.foSelect.page,"93","93"); addOption(document.foSelect.page,"94","94"); addOption(document.foSelect.page,"95","95"); addOption(document.foSelect.page,"96","96"); addOption(document.foSelect.page,"97","97"); addOption(document.foSelect.page,"98","98"); addOption(document.foSelect.page,"99","99"); addOption(document.foSelect.page,"100","100"); addOption(document.foSelect.page,"101","101"); addOption(document.foSelect.page,"102","102"); addOption(document.foSelect.page,"103","103"); addOption(document.foSelect.page,"104","104"); addOption(document.foSelect.page,"105","105"); addOption(document.foSelect.page,"106","106"); addOption(document.foSelect.page,"107","107"); addOption(document.foSelect.page,"108","108"); addOption(document.foSelect.page,"109","109"); addOption(document.foSelect.page,"110","110"); addOption(document.foSelect.page,"111","111"); addOption(document.foSelect.page,"112","112"); addOption(document.foSelect.page,"113","113"); addOption(document.foSelect.page,"114","114"); addOption(document.foSelect.page,"115","115"); addOption(document.foSelect.page,"116","116"); addOption(document.foSelect.page,"117","117"); addOption(document.foSelect.page,"118","118"); addOption(document.foSelect.page,"119","119"); addOption(document.foSelect.page,"120","120"); addOption(document.foSelect.page,"121","121"); addOption(document.foSelect.page,"122","122"); addOption(document.foSelect.page,"123","123"); addOption(document.foSelect.page,"124","124"); addOption(document.foSelect.page,"125","125"); addOption(document.foSelect.page,"126","126"); addOption(document.foSelect.page,"127","127"); addOption(document.foSelect.page,"128","128"); addOption(document.foSelect.page,"129","129"); addOption(document.foSelect.page,"130","130"); addOption(document.foSelect.page,"131","131"); addOption(document.foSelect.page,"132","132"); addOption(document.foSelect.page,"133","133"); addOption(document.foSelect.page,"134","134"); addOption(document.foSelect.page,"135","135"); addOption(document.foSelect.page,"136","136"); addOption(document.foSelect.page,"137","137"); addOption(document.foSelect.page,"138","138"); addOption(document.foSelect.page,"139","139"); addOption(document.foSelect.page,"140","140"); addOption(document.foSelect.page,"141","141"); addOption(document.foSelect.page,"142","142"); addOption(document.foSelect.page,"143","143"); addOption(document.foSelect.page,"144","144"); addOption(document.foSelect.page,"145","145"); addOption(document.foSelect.page,"146","146"); addOption(document.foSelect.page,"147","147"); addOption(document.foSelect.page,"148","148"); addOption(document.foSelect.page,"149","149"); addOption(document.foSelect.page,"150","150"); addOption(document.foSelect.page,"151","151"); addOption(document.foSelect.page,"152","152"); addOption(document.foSelect.page,"153","153"); addOption(document.foSelect.page,"154","154"); addOption(document.foSelect.page,"155","155"); addOption(document.foSelect.page,"156","156"); addOption(document.foSelect.page,"157","157"); addOption(document.foSelect.page,"158","158"); addOption(document.foSelect.page,"159","159"); addOption(document.foSelect.page,"160","160"); addOption(document.foSelect.page,"161","161"); break; case '19': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); break; case '16': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); addOption(document.foSelect.page,"23","23"); addOption(document.foSelect.page,"24","24"); break; case '13': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); addOption(document.foSelect.page,"23","23"); addOption(document.foSelect.page,"24","24"); addOption(document.foSelect.page,"25","25"); addOption(document.foSelect.page,"26","26"); addOption(document.foSelect.page,"27","27"); addOption(document.foSelect.page,"28","28"); addOption(document.foSelect.page,"29","29"); addOption(document.foSelect.page,"30","30"); addOption(document.foSelect.page,"31","31"); addOption(document.foSelect.page,"32","32"); break; case '10': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); addOption(document.foSelect.page,"23","23"); addOption(document.foSelect.page,"24","24"); addOption(document.foSelect.page,"25","25"); addOption(document.foSelect.page,"26","26"); addOption(document.foSelect.page,"27","27"); addOption(document.foSelect.page,"28","28"); addOption(document.foSelect.page,"29","29"); addOption(document.foSelect.page,"30","30"); addOption(document.foSelect.page,"31","31"); addOption(document.foSelect.page,"32","32"); addOption(document.foSelect.page,"33","33"); addOption(document.foSelect.page,"34","34"); addOption(document.foSelect.page,"35","35"); break; case '7': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); addOption(document.foSelect.page,"23","23"); addOption(document.foSelect.page,"24","24"); addOption(document.foSelect.page,"25","25"); addOption(document.foSelect.page,"26","26"); addOption(document.foSelect.page,"27","27"); addOption(document.foSelect.page,"28","28"); addOption(document.foSelect.page,"29","29"); addOption(document.foSelect.page,"30","30"); addOption(document.foSelect.page,"31","31"); addOption(document.foSelect.page,"32","32"); addOption(document.foSelect.page,"33","33"); addOption(document.foSelect.page,"34","34"); addOption(document.foSelect.page,"35","35"); addOption(document.foSelect.page,"36","36"); break; case '4': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); addOption(document.foSelect.page,"23","23"); addOption(document.foSelect.page,"24","24"); addOption(document.foSelect.page,"25","25"); addOption(document.foSelect.page,"26","26"); addOption(document.foSelect.page,"27","27"); addOption(document.foSelect.page,"28","28"); addOption(document.foSelect.page,"29","29"); addOption(document.foSelect.page,"30","30"); addOption(document.foSelect.page,"31","31"); addOption(document.foSelect.page,"32","32"); addOption(document.foSelect.page,"33","33"); addOption(document.foSelect.page,"34","34"); break; case '8': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); break; case '23': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); addOption(document.foSelect.page,"23","23"); addOption(document.foSelect.page,"24","24"); addOption(document.foSelect.page,"25","25"); addOption(document.foSelect.page,"26","26"); addOption(document.foSelect.page,"27","27"); addOption(document.foSelect.page,"28","28"); addOption(document.foSelect.page,"29","29"); addOption(document.foSelect.page,"30","30"); addOption(document.foSelect.page,"31","31"); addOption(document.foSelect.page,"32","32"); addOption(document.foSelect.page,"33","33"); addOption(document.foSelect.page,"34","34"); addOption(document.foSelect.page,"35","35"); addOption(document.foSelect.page,"36","36"); addOption(document.foSelect.page,"37","37"); addOption(document.foSelect.page,"38","38"); addOption(document.foSelect.page,"39","39"); addOption(document.foSelect.page,"40","40"); addOption(document.foSelect.page,"41","41"); addOption(document.foSelect.page,"42","42"); addOption(document.foSelect.page,"43","43"); addOption(document.foSelect.page,"44","44"); addOption(document.foSelect.page,"45","45"); addOption(document.foSelect.page,"46","46"); addOption(document.foSelect.page,"47","47"); addOption(document.foSelect.page,"48","48"); addOption(document.foSelect.page,"49","49"); addOption(document.foSelect.page,"50","50"); addOption(document.foSelect.page,"51","51"); addOption(document.foSelect.page,"52","52"); addOption(document.foSelect.page,"53","53"); addOption(document.foSelect.page,"54","54"); addOption(document.foSelect.page,"55","55"); addOption(document.foSelect.page,"56","56"); addOption(document.foSelect.page,"57","57"); addOption(document.foSelect.page,"58","58"); addOption(document.foSelect.page,"59","59"); addOption(document.foSelect.page,"60","60"); addOption(document.foSelect.page,"61","61"); addOption(document.foSelect.page,"62","62"); addOption(document.foSelect.page,"63","63"); addOption(document.foSelect.page,"64","64"); addOption(document.foSelect.page,"65","65"); addOption(document.foSelect.page,"66","66"); addOption(document.foSelect.page,"67","67"); addOption(document.foSelect.page,"68","68"); addOption(document.foSelect.page,"69","69"); addOption(document.foSelect.page,"70","70"); addOption(document.foSelect.page,"71","71"); addOption(document.foSelect.page,"72","72"); addOption(document.foSelect.page,"73","73"); addOption(document.foSelect.page,"74","74"); addOption(document.foSelect.page,"75","75"); addOption(document.foSelect.page,"76","76"); addOption(document.foSelect.page,"77","77"); addOption(document.foSelect.page,"78","78"); addOption(document.foSelect.page,"79","79"); addOption(document.foSelect.page,"81","81"); addOption(document.foSelect.page,"82","82"); addOption(document.foSelect.page,"83","83"); addOption(document.foSelect.page,"84","84"); addOption(document.foSelect.page,"85","85"); addOption(document.foSelect.page,"86","86"); addOption(document.foSelect.page,"87","87"); addOption(document.foSelect.page,"88","88"); addOption(document.foSelect.page,"89","89"); addOption(document.foSelect.page,"90","90"); addOption(document.foSelect.page,"91","91"); addOption(document.foSelect.page,"92","92"); addOption(document.foSelect.page,"93","93"); addOption(document.foSelect.page,"94","94"); addOption(document.foSelect.page,"95","95"); addOption(document.foSelect.page,"96","96"); addOption(document.foSelect.page,"97","97"); addOption(document.foSelect.page,"98","98"); addOption(document.foSelect.page,"99","99"); addOption(document.foSelect.page,"100","100"); addOption(document.foSelect.page,"101","101"); addOption(document.foSelect.page,"102","102"); addOption(document.foSelect.page,"103","103"); addOption(document.foSelect.page,"104","104"); addOption(document.foSelect.page,"105","105"); addOption(document.foSelect.page,"106","106"); addOption(document.foSelect.page,"107","107"); break; case '2': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); break; case '20': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); break; case '17': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); break; case '14': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); break; case '11': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); break; case '5': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); break; case '24': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); addOption(document.foSelect.page,"23","23"); addOption(document.foSelect.page,"24","24"); addOption(document.foSelect.page,"25","25"); addOption(document.foSelect.page,"26","26"); addOption(document.foSelect.page,"27","27"); addOption(document.foSelect.page,"28","28"); addOption(document.foSelect.page,"29","29"); addOption(document.foSelect.page,"30","30"); addOption(document.foSelect.page,"31","31"); addOption(document.foSelect.page,"32","32"); addOption(document.foSelect.page,"33","33"); addOption(document.foSelect.page,"34","34"); addOption(document.foSelect.page,"35","35"); addOption(document.foSelect.page,"36","36"); addOption(document.foSelect.page,"37","37"); addOption(document.foSelect.page,"38","38"); addOption(document.foSelect.page,"39","39"); addOption(document.foSelect.page,"40","40"); addOption(document.foSelect.page,"41","41"); addOption(document.foSelect.page,"42","42"); addOption(document.foSelect.page,"43","43"); addOption(document.foSelect.page,"44","44"); addOption(document.foSelect.page,"45","45"); addOption(document.foSelect.page,"46","46"); addOption(document.foSelect.page,"47","47"); addOption(document.foSelect.page,"48","48"); addOption(document.foSelect.page,"49","49"); addOption(document.foSelect.page,"50","50"); addOption(document.foSelect.page,"51","51"); addOption(document.foSelect.page,"52","52"); addOption(document.foSelect.page,"53","53"); addOption(document.foSelect.page,"54","54"); addOption(document.foSelect.page,"55","55"); addOption(document.foSelect.page,"56","56"); addOption(document.foSelect.page,"57","57"); addOption(document.foSelect.page,"58","58"); addOption(document.foSelect.page,"59","59"); addOption(document.foSelect.page,"60","60"); addOption(document.foSelect.page,"61","61"); addOption(document.foSelect.page,"62","62"); addOption(document.foSelect.page,"63","63"); addOption(document.foSelect.page,"64","64"); addOption(document.foSelect.page,"65","65"); addOption(document.foSelect.page,"66","66"); addOption(document.foSelect.page,"67","67"); addOption(document.foSelect.page,"68","68"); addOption(document.foSelect.page,"69","69"); addOption(document.foSelect.page,"70","70"); addOption(document.foSelect.page,"71","71"); addOption(document.foSelect.page,"72","72"); addOption(document.foSelect.page,"73","73"); addOption(document.foSelect.page,"74","74"); addOption(document.foSelect.page,"75","75"); addOption(document.foSelect.page,"76","76"); addOption(document.foSelect.page,"77","77"); addOption(document.foSelect.page,"78","78"); addOption(document.foSelect.page,"79","79"); addOption(document.foSelect.page,"80","80"); addOption(document.foSelect.page,"81","81"); addOption(document.foSelect.page,"82","82"); addOption(document.foSelect.page,"83","83"); addOption(document.foSelect.page,"84","84"); addOption(document.foSelect.page,"85","85"); addOption(document.foSelect.page,"86","86"); addOption(document.foSelect.page,"87","87"); break; case '9': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); break; case '6': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); addOption(document.foSelect.page,"23","23"); addOption(document.foSelect.page,"24","24"); addOption(document.foSelect.page,"25","25"); addOption(document.foSelect.page,"26","26"); addOption(document.foSelect.page,"27","27"); addOption(document.foSelect.page,"28","28"); addOption(document.foSelect.page,"29","29"); addOption(document.foSelect.page,"30","30"); addOption(document.foSelect.page,"31","31"); addOption(document.foSelect.page,"32","32"); addOption(document.foSelect.page,"33","33"); addOption(document.foSelect.page,"34","34"); addOption(document.foSelect.page,"35","35"); addOption(document.foSelect.page,"36","36"); addOption(document.foSelect.page,"37","37"); break; case '21': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); break; case '15': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); break; case '3': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); addOption(document.foSelect.page,"23","23"); addOption(document.foSelect.page,"24","24"); break; case '18': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); break; case '12': addOption(document.foSelect.page,"1","1"); addOption(document.foSelect.page,"2","2"); addOption(document.foSelect.page,"3","3"); addOption(document.foSelect.page,"4","4"); addOption(document.foSelect.page,"5","5"); addOption(document.foSelect.page,"6","6"); addOption(document.foSelect.page,"7","7"); addOption(document.foSelect.page,"8","8"); addOption(document.foSelect.page,"9","9"); addOption(document.foSelect.page,"10","10"); addOption(document.foSelect.page,"11","11"); addOption(document.foSelect.page,"12","12"); addOption(document.foSelect.page,"13","13"); addOption(document.foSelect.page,"14","14"); addOption(document.foSelect.page,"15","15"); addOption(document.foSelect.page,"16","16"); addOption(document.foSelect.page,"17","17"); addOption(document.foSelect.page,"18","18"); addOption(document.foSelect.page,"19","19"); addOption(document.foSelect.page,"20","20"); addOption(document.foSelect.page,"21","21"); addOption(document.foSelect.page,"22","22"); break; case '25': addOption(document.foSelect.page,"1","1"); break; } // end of JS switch } // end of JS function SelectPage() function removeAllOptions(selectbox) { var i; for(i=selectbox.options.length-1;i>=0;i--) { //selectbox.options.remove(i); selectbox.remove(i); } } function addOption(selectbox, value, text ) { var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; selectbox.options.add(optn); }