// 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,"Carroll+County"], [1,"Columbiana+County"], [2,"Coshocton+County"], [3,"Harrison+County"], [4,"Holmes+County"], [5,"Mahoning+County"], [6,"Medina+County"], [7,"Portage+County"], [8,"Stark+County"], [9,"Summit+County"], [10,"Tuscarawas+County"], [11,"Wayne+County"] ]; var comList=[ [0,"Atwood+Lake"], [0,"Carrollton"], [0,"Leesville"], [0,"Leesville+Lake"], [0,"Sherrodsville"], [2,"Coshocton"], [2,"West+Layette"], [3,"Bowerston"], [3,"Cadiz"], [3,"Clendening+Lake"], [3,"Freeport"], [3,"Jewett"], [3,"Scio"], [3,"Tappan+Lake"], [3,"Tippecanoe"], [4,"Millersburg"], [6,"Medina"], [6,"Wadsworth"], [7,"Kent"], [7,"Mogadore"], [7,"Ravenna"], [8,"Alliance"], [8,"Canal+Fulton"], [8,"Canton"], [8,"East+Canton"], [8,"Hartville"], [8,"Louisville"], [8,"Massillon"], [8,"Minerva"], [8,"Navarre"], [8,"North+Canton"], [8,"Uniontown"], [8,"Waynesburg"], [9,"Akron"], [9,"Green"], [10,"Bolivar"], [10,"Dennison"], [10,"Dover"], [10,"Midvale"], [10,"Mineral+City"], [10,"New+Philadelphia"], [10,"Newcomerstown"], [10,"Strasburg"], [10,"Sugarcreek"], [10,"Uhrichsville"], [10,"Zoar"], [11,"Orrville"], [11,"Wooster"] ];