// 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,"East"],
[1,"Metro%2FDowntown"],
[2,"North"],
[3,"Northeast"],
[4,"Northwest"],
[5,"OSU"],
[6,"South"],
[7,"Southeast"],
[8,"Southwest"],
[9,"Suburban+NE%2FEast"],
[10,"Suburban+NW%2FNorth"],
[11,"Suburban+SE%2FSouth"],
[12,"Suburban+SW%2FWest"],
[13,"West"]
];
var comList=[
[0,"Bexley"],
[0,"Blacklick"],
[0,"Brice"],
[0,"Columbus+East"],
[0,"Pataskala"],
[0,"Pickerington"],
[0,"Reynoldsburg"],
[0,"Whitehall"],
[1,"Columbus+Downtown"],
[1,"German+Village"],
[1,"Italian+Village"],
[1,"Olde+Town+East"],
[1,"Short+North"],
[1,"Victorian+Village"],
[2,"Beechwold"],
[2,"Clintonville"],
[2,"Columbus+North"],
[2,"Riverlea"],
[2,"Worthington"],
[3,"Columbus+NE"],
[3,"Forest+Park"],
[3,"Gahanna"],
[3,"Huber+Ridge"],
[3,"Minerva+Park"],
[3,"New+Albany"],
[3,"Northland"],
[3,"Polaris"],
[3,"Sharon+Woods"],
[3,"Westerville"],
[4,"Columbus+NW"],
[4,"Dublin"],
[4,"Grandview+Heights"],
[4,"Hilliard"],
[4,"Marble+Cliff"],
[4,"Muirfield"],
[4,"Powell"],
[4,"Shawnee+Hills"],
[4,"Upper+Arlington"],
[5,"Campus"],
[5,"OSU"],
[6,"Columbus+South"],
[6,"Lockbourne"],
[6,"Obetz"],
[7,"Canal+Winchester"],
[7,"Columbus+SE"],
[7,"Groveport"],
[8,"Columbus+SW"],
[8,"Darbydale"],
[8,"Galloway"],
[8,"Grove+City"],
[8,"Harrisburg"],
[8,"Orient"],
[8,"Urbancrest"],
[9,"Alexandria"],
[9,"Beechwood+Trails"],
[9,"Buckeye+Lake"],
[9,"Centerburg"],
[9,"Croton"],
[9,"Galena"],
[9,"Granville"],
[9,"Hanover"],
[9,"Harbor+Hills"],
[9,"Heath"],
[9,"Hebron"],
[9,"Johnstown"],
[9,"Kirkersville"],
[9,"Newark"],
[9,"St.+Louisville"],
[9,"Summit+Station"],
[9,"Sunbury"],
[9,"Utica"],
[10,"Catawba"],
[10,"Delaware"],
[10,"Lewis+Center"],
[10,"Magnetic+Springs"],
[10,"Marysville"],
[10,"Milford+Center"],
[10,"Ostrander"],
[10,"Plain+City"],
[10,"Richwood"],
[10,"Unionville+Center"],
[11,"Amanda"],
[11,"Ashville"],
[11,"Baltimore"],
[11,"Bremen"],
[11,"Carroll"],
[11,"Circleville"],
[11,"Fairfield+Beach"],
[11,"Lancaster"],
[11,"Lithopolis"],
[11,"Logan+Elm+Village"],
[11,"Millersport"],
[11,"Pleasantville"],
[11,"South+Bloomfield"],
[11,"Stoutsville"],
[11,"Sugar+Grove"],
[11,"Thurston"],
[12,"Choctaw+Lake"],
[12,"Commercial+Point"],
[12,"Darbyville"],
[12,"London"],
[12,"Midway"],
[12,"Mt.+Sterling"],
[12,"New+Holland"],
[12,"South+Solon"],
[12,"Williamsport"],
[13,"Alton"],
[13,"Columbus+West"],
[13,"Darby"],
[13,"Franklinton"],
[13,"Hilltop"],
[13,"Lincoln+Village"],
[13,"New+Rome"],
[13,"Valleyview"],
[13,"West+Jefferson"]
];