// Page generated by: ps-b-01.oc.careercast.com function fillRegions( ddRegion ) { ddRegion[ ddRegion.length ] = new Option( 'All', '', false ); for( var i = 0; i < regionList.length; i++ ) { display = unescape( regionList[ i ][ 1 ].replace( /\+/g, ' ' ) ); ddRegion[ ddRegion.length ] = new Option( display, display, false ); } } function fillCommunities( ddRegion, ddCommunity ) { clearCommunities( ddCommunity ); // if no region is selected, display prompt // otherwise, display list of communities for selected region regionid = ddRegion.selectedIndex; //Removed if condition and set the clearCommunities function to leave the first select element in place TSG /*if( regionid < 1 ) { ddCommunity[ ddCommunity.length ] = new Option( 'All', '', false ); } else {*/ ddCommunity.disabled = false; // normalize regionid to account for the 'Select a Region' prompt in the region dropdown regionid--; if( ddCommunity.type == 'select-one' ) { ddCommunity[ 0 ] = new Option( 'Select a Community', '', false ); } else if( ddCommunity.type == 'select-multiple' ) { ddCommunity[ 0 ] = new Option( 'All', '', false ); } for( var i = 0; i < comList.length; i++ ) { if( regionid == comList[ i ][ 0 ] ) { display = unescape( comList[ i ][ 1 ].replace( /\+/g, ' ' ) ); ddCommunity[ ddCommunity.length ] = new Option( display, display, false ); } } //} return( true ); /*clearCommunities( ddCommunity ); // if no region is selected, display prompt // otherwise, display list of communities for selected region regionid = ddRegion.selectedIndex; if( regionid < 1 ) { ddCommunity[ ddCommunity.length ] = new Option( 'All', '', false ); } else { ddCommunity.disabled = false; // normalize regionid to account for the 'Select a Region' prompt in the region dropdown regionid--; if( ddCommunity.type == 'select-one' ) { ddCommunity[ 0 ] = new Option( 'Select a Community', '', false ); } else if( ddCommunity.type == 'select-multiple' ) { ddCommunity[ 0 ] = new Option( 'All', '', false ); } for( var i = 0; i < comList.length; i++ ) { if( regionid == comList[ i ][ 0 ] ) { display = unescape( comList[ i ][ 1 ].replace( /\+/g, ' ' ) ); ddCommunity[ ddCommunity.length ] = new Option( display, display, false ); } } } return( true );*/ } function clearCommunities( ddCommunities ) { for( var j = ddCommunities.options.length; j > 0; j-- ) { ddCommunities.options[j] = null; } /*for( var j = ddCommunities.options.length; j >= 0; j-- ) { ddCommunities.remove( j ); }*/ } function setCommunityAllOption( ddCommunities ) { ddCommunities.options[ 0 ].selected = true; } var regionList=[ [0,"Bledsoe"], [1,"Bradley"], [2,"Catoosa"], [3,"Chattooga"], [4,"Dade"], [5,"DeKalb"], [6,"Franklin"], [7,"Grundy"], [8,"Hamilton"], [9,"Jackson"], [10,"Marion"], [11,"McMinn"], [12,"Meigs"], [13,"Monroe"], [14,"Polk"], [15,"Rhea"], [16,"Roane"], [17,"Sequatchie"], [18,"Walker"], [19,"Warren"], [20,"Whitfield"] ]; var comList=[ [0,"Pikeville+%28Area+30%29"], [1,"Bradley%2FMcDonald+%28Area+22%29"], [1,"Charleston%2FRed+Hill+%28Area+22%29"], [1,"Cleveland%2FFlint+Springs+%28Area+22%29"], [2,"Fort+Oglethorpe+%28Area+11%29"], [2,"Ringgold%2FEast+Boynton+%28Area+11%29"], [3,"Summerville+%28Area+27%29"], [3,"Trion+%28Area+27%29"], [4,"Rising+Fawn+%28Area+20%29"], [4,"Trenton%2FHooker+%28Area+20%29"], [4,"Wildwood+%28Area+20%29"], [5,"Fort+Payne+%28Area+25%29"], [5,"Henagar+%28Area+25%29"], [5,"Ider+%28Area+25%29"], [5,"Mahans+Cross+%28Area+25%29"], [5,"Valley+Head+%28Area+25%29"], [6,"Estill+Springs+%28Area+14%29"], [6,"Sewanee+%28Area+14%29"], [6,"Sherwood+%28Area+14%29"], [6,"Winchester+%28Area+14%29"], [7,"+Tracy+City+%28Area+14%29"], [7,"Beersheba+Springs+%28Area+14%29"], [7,"Coalmont+%28Area+14%29"], [7,"Gruetli+Laager+%28Area+14%29"], [7,"Monteagle+%28Area+14%29"], [7,"Palmer+%28Area+14%29"], [7,"Pelham+%28Area+14%29"], [8,"Alton+Park+%28Area+2%29"], [8,"Birchwood%2FGrasshopper+%28Area+12%29"], [8,"Brainerd%2FRidgeside+%28Area+4%29"], [8,"Chattanooga+%28Area+2%29"], [8,"East+Brainerd%2FRyall+Springs+%28Area+4%29"], [8,"East+Chattanooga%2FAvondale+%28Area+2%29"], [8,"East+Lake+%28Area+2%29"], [8,"East+Ridge%2FRiverview+%28Area+3%29"], [8,"Georgetown%2FMeadow+View+%28Area+12%29"], [8,"Harrison+%28Area+12%29"], [8,"Highland+Park%2FMissionary+Ridge+%28Area+2%29"], [8,"Hixson%2FMiddle+Valley+%28Area+8%29"], [8,"Lookout+Mountain+%2810%29"], [8,"Lookout+Valley+%28Area+1%29"], [8,"North+Chattanooga%2FSignal+Hills+%28Area+6%29"], [8,"Ooltewah-Collegedale%2FTyner%2FSummit+%28Area+16+and+18%29"], [8,"Red+Bank%2FLupton+City+%28Area+7%29"], [8,"Sale+Creek%2FCoulterville+%28Area+13%29"], [8,"Signal+Mountain%2FSherwood%2FWalden+%28Area+9%29"], [8,"Soddy+Daisy%2FLakesite+%28Area+13%29"], [8,"St.+Elmo+%28Area+2%29"], [9,"Bridgeport+%28Area+25%29"], [9,"Bryant+%28Area+25%29"], [9,"Flat+Rock+%28Area+25%29"], [9,"Higdon+%28Area+14%29"], [9,"Pisgah+%28Area+25%29"], [9,"Scottsboro+%28Area+25%29"], [9,"Stevenson+%28Area+14%29"], [10,"Haletown%2FGuild+%28Area+29%29"], [10,"Jasper%2FSequatchie+%28Area+29%29"], [10,"South+Pittsburg+%28Area+29%29"], [10,"Whiteside+%28Area+29%29"], [10,"Whitwell+%28Area+29%29"], [11,"Athens+%28Area+23%29"], [11,"Englewood+%28Area+23%29"], [11,"Etowah+%28Area+23%29"], [11,"McMinnville+%28Area+14%29"], [12,"Decatur+%28Area+32%29"], [13,"Monroe+County+%28Area+14%29"], [14,"Benton+%28Area+32%29"], [14,"Copperhill+%28Area+32%29"], [14,"Ducktown+%28Area+31%29"], [14,"Ocoee+%28Area+32%29"], [14,"Turtletown+%28Area+32%29"], [15,"Dayton+%28Area+24%29"], [15,"Evensville+%28Area+23%29"], [15,"Grandview+%28Area+24%29"], [15,"Graysville+%28Area+24%29"], [15,"Spring+City+%28Area+24%29"], [16,"Harriman+%28Area+14%29"], [16,"Rockwood+%28Area+14%29"], [17,"Dunlap+%28Area+28%29"], [18,"Chickamauga+%28Area+19%29"], [18,"Flintstone%2FEagle+Cliff+%28Area+19%29"], [18,"LaFayette+%28Area+19%29"], [18,"Lookout+Mountain+%28Area+19%29"], [18,"Rock+Springs+%28Area+19%29"], [18,"Rossville%2FWallaceville+%28Area+19%29"], [19,"McMinnville+%28Area+14%29"], [20,"Cohutta+%28area+26%29"], [20,"Dalton+%28Area+26%29"], [20,"Keith%2FTunnel+Hill+%28Area+26%29"], [20,"Rocky+Face+%28Area+26%29"] ];