var LS_Cities = new Array("Ada",
"Addison",
"Adrian",
"Albion",
"Allegan",
"Allen",
"Allendale",
"Athens",
"Augusta",
"Bailey",
"Baldwin",
"Bangor",
"Baroda",
"Battle Creek",
"Bear Lake",
"Bedford",
"Bellevue",
"Belmont",
"Benton Harbor",
"Berrien Center",
"Berrien Springs",
"Big Rapids",
"Bitely",
"Bloomingdale",
"Bradley",
"Branch",
"Breedsville",
"Bridgman",
"Broman",
"Bronson",
"Buchanan",
"Burlington",
"Burr Oak",
"Byron Center",
"Caledonia",
"Camden",
"Cassopolis",
"Cedar Springs",
"Cement City",
"Centreville",
"Ceresco",
"Charlotte",
"Chikaming",
"Climax",
"Coldwater",
"Coloma",
"Colon",
"Comstock",
"Conklin",
"Constantine",
"Coopersville",
"Covert",
"Decatur",
"Deerfield",
"Delton",
"Dorr",
"Douglas",
"Dowagiac",
"Dowling",
"Drummond Island",
"East Leroy",
"Eaton Rapids",
"Eau Claire",
"Edwardsburg",
"Elkhart",
"Emmett",
"Evart",
"Fennville",
"Ferrysburg",
"Fountain",
"Free Soil",
"Freeport",
"Fremont",
"Frontier",
"Fruitport",
"Fulton",
"Galesburg",
"Galien",
"Ganges",
"Georgetown Twsp",
"Glenn",
"Gobles",
"Goshen",
"Grand Haven",
"Grand Junction",
"Grand Rapids",
"Grandville",
"Granger",
"Grant",
"Greenville",
"Hamilton",
"Hanover",
"Harbert",
"Harrison",
"Hart",
"Hartford",
"Hastings",
"Hesperia",
"Hickory Corners",
"Hillsdale",
"Holland",
"Holton",
"Homer",
"Hope",
"Hopkins",
"Horton",
"Howard City",
"Hudson",
"Hudsonville",
"Ionia",
"Irons",
"Jackson",
"Jenison",
"Jerome",
"Jones",
"Jonesville",
"Kalamazoo",
"Kent City",
"Kentwood",
"La Porte",
"Lacota",
"Lakeside",
"Lawrence",
"Lawton",
"Leonidas",
"Leroy",
"Levering",
"Litchfield",
"Long Beach",
"Ludington",
"Luther",
"Macatawa",
"Manistee",
"Manitou Beach",
"Marcellus",
"Marne",
"Marshall",
"Martin",
"Mattawan",
"Mears",
"Mendon",
"Mesick",
"Michiana Shores",
"Michigan City",
"Middlebury",
"Middleville",
"Midland",
"Montague",
"Montgomery",
"Morenci",
"Mosherville",
"Muskegon",
"Muskegon Heights",
"Nashville",
"New Buffalo",
"New Carlisle",
"New Era",
"New Troy",
"Newaygo",
"Niles",
"North Adams",
"North Muskegon",
"Nottawa",
"Nunica",
"Olivet",
"Oshtemo",
"Osseo",
"Otsego",
"Out of Area",
"Parchment",
"Parma",
"Paw Paw",
"Pennfield",
"Pentwater",
"Pierson",
"Pittsford",
"Plainwell",
"Portage",
"Pullman",
"Quincy",
"Ravenna",
"Reading",
"Richland",
"Rockford",
"Rolling Prairie",
"Rothbury",
"Sand Lake",
"Sanford",
"Saugatuck",
"Sawyer",
"Schoolcraft",
"Scotts",
"Shelby",
"Shelbyville",
"Sherwood",
"Six Lakes",
"Sodus",
"Somerset",
"Somerset Center",
"South Bend",
"South Haven",
"Spring Lake",
"Springfield",
"Springport",
"St. Joseph",
"Stevensville",
"Sturgis",
"Tekonsha",
"Three Oaks",
"Three Rivers",
"Traverse City",
"Twin Lake",
"Union",
"Union City",
"Union Pier",
"Vandalia",
"Vermontville",
"Vicksburg",
"Waldron",
"Watervliet",
"Wayland",
"Weidman",
"West Olive",
"Westville",
"White Cloud",
"White Pigeon",
"Whitehall",
"Woodland",
"Wyoming",
"Zeeland");

var GR_Cities = new Array("Ada Twp",
"Aetna Twp",
"Alamo Twp",
"Algoma Twp",
"Allegan Twp",
"Allendale Twp",
"Alpine Twp",
"Arcadia Twp",
"Ashland Twp",
"Assyria Twp",
"Austin Twp",
"Baltimore Twp",
"Bangor Twp",
"Barry Twp",
"Barton Twp",
"Beaugrand Twp",
"Beaver Twp",
"Bellevue Twp",
"Belvidere Twp",
"Benona Twp",
"Benton Twp",
"Berlin Twp",
"Big Prairie Twp",
"Big Rapids Twp",
"Blendon Twp",
"Bloomer Twp",
"Blue Lake Twp",
"Boston Twp",
"Bowne Twp",
"Branch Twp",
"Bridgeton Twp",
"Brooks Twp",
"Burdell Twp",
"Bushnell Twp",
"Byron Twp",
"Caledonia Twp",
"Campbell Twp",
"Cannon Twp",
"Carlton Twp",
"Carp Lake Twp",
"Cascade Twp",
"Casnovia Twp",
"Castleton Twp",
"Cato Twp",
"Cedar Creek Twp",
"Cedar Twp",
"Chase Twp",
"Cherry Grove Twp",
"Cherry Valley Twp",
"Cheshire Twp",
"Chester Twp",
"Chippewa Twp",
"City of Allegan",
"City of Alma",
"City of Bailey",
"City of Baldwin",
"City of Battle Creek",
"City of Belding",
"City of Big Rapids",
"City of Bitely",
"City of Boyne",
"City of Cedar Sprngs",
"City of Conklin",
"City of Coopersville",
"City of Edmore",
"City of Fennville",
"City of Ferrysburg",
"City of Fremont",
"City of Grand Haven",
"City of Grand Rapids",
"City of Grandville",
"City of Grant",
"City of Greenville",
"City of Harrison",
"City of Hastings",
"City of Holland",
"City of Houghton Lk",
"City of Hudsonville",
"City of Ionia",
"City of Ithaca",
"City of Kalamazoo",
"City of Keego Harbor",
"City of Kentwood",
"City of Lansing",
"City of Lowell",
"City of Ludington",
"City of Montague",
"City of Muskegon",
"City of N Muskegon",
"City of Newaygo",
"City of Norton Sh",
"City of Otsego",
"City of Plainwell",
"City of Portage",
"City of Portland",
"City of Reed City",
"City of Remus",
"City of Rockford",
"City of Roosevelt Pk",
"City of Saint Louis",
"City of Saugatuck",
"City of Stanton",
"City of Walker",
"City of Wayland",
"City of White Cloud",
"City of Whitehall",
"City of Wyoming",
"City of Zeeland",
"Clare Twp",
"Clay Banks Twp",
"Clyde Twp",
"Colfax Twp",
"Columbia Twp",
"Comstock Twp",
"Corwith Twp",
"Courtland Twp",
"Crockery Twp",
"Croton Twp",
"Crystal Twp",
"Custer Twp",
"Dalton Twp",
"Danby Twp",
"Day Twp",
"Dayton Twp",
"Deerfield Twp",
"Delta Twp",
"Denver Twp",
"Dorr Twp",
"Douglas Twp",
"Doyle Twp",
"Drummond Twp",
"East Bay Twp",
"East Grand Rapids",
"Easton Twp",
"Eden Twp",
"Egelston Twp",
"Elk Twp",
"Ellsworth Twp",
"Elm River Twp",
"Emmett Twp",
"Empire Twp",
"Ensley Twp",
"Eureka Twp",
"Evart Twp",
"Everett Twp",
"Evergreen Twp",
"Fairplain Twp",
"Ferris Twp",
"Ferry Twp",
"Ferrysburg Twp",
"Fillmore Twp",
"Forest Twp",
"Fork Twp",
"Freesoil Twp",
"Fremont Twp",
"Fruitland Twp",
"Fruitport Twp",
"Gaines Twp",
"Ganges Twp",
"Garden Twp",
"Garfield Twp",
"Georgetown Twp",
"Golden Twp",
"Goodwell Twp",
"Grand Haven Twp",
"Grand Rapids Twp",
"Grand Traverse Twp",
"Grant Twp",
"Grattan Twp",
"Green Twp",
"Greenwood Twp",
"Gun Plain Twp",
"Hale, Vil of",
"Hanover Twp",
"Haring Twp",
"Hastings Twp",
"Hayes Twp",
"Heath Twp",
"Henrietta Twp",
"Hersey Twp",
"Highland Twp",
"Hinton Twp",
"Holland Twp",
"Holton Twp",
"Home Twp",
"Hope Twp",
"Hopkins Twp",
"Ionia Twp",
"Irving Twp",
"Isabella Twp",
"Jamestown Twp",
"Johnstown Twp",
"Kalamazoo Twp",
"Kearney Twp",
"Keene Twp",
"L'Anse Twp",
"Lake Town Twp",
"Lake Twp",
"Laketon Twp",
"Leavitt Twp",
"Lee Twp",
"Leelanau Twp",
"Leighton Twp",
"Lilley Twp",
"Lincoln Twp",
"Logan Twp",
"Long Lake Twp",
"Lowell Twp",
"Lyons Twp",
"Manlius Twp",
"Maple Grove Twp",
"Maple Valley Twp",
"Marshall Twp",
"Martin Twp",
"Martiny Twp",
"McMillan Twp",
"Meade Twp",
"Mecosta Twp",
"Meridian Twp",
"Merrill Twp",
"Middle Branch Twp",
"Millbrook Twp",
"Monroe Twp",
"Montague Twp",
"Montcalm Twp",
"Monterey Twp",
"Moorland Twp",
"Morton Twp",
"Muskegon Twp",
"Nelson Twp",
"Newfield Twp",
"Newkirk Twp",
"Norman Twp",
"Norton Shores Twp",
"Norwich Twp",
"Oakfield Twp",
"Odessa Twp",
"Olive Twp",
"Onekama Twp",
"Orange Twp",
"Orangeville Twp",
"Orient Twp",
"Orleans Twp",
"Otisco Twp",
"Otsego Twp",
"Otto Twp",
"Overisel Twp",
"Park Twp",
"Pennfield Twp",
"Pentwater Twp",
"Pierson Twp",
"Pine Grove Twp",
"Pine Twp",
"Pinora Twp",
"Plainfield Twp",
"Pleasant Plains Twp",
"Pleasanton Twp",
"Pokagon Twp",
"Polkton Twp",
"Port Sheldon Twp",
"Portage Twp",
"Portland Twp",
"Prairieville Twp",
"Rapid River Twp",
"Ravenna Twp",
"Reynolds Twp",
"Richfield Twp",
"Richland Twp",
"Richmond Twp",
"Robinson Twp",
"Ronald Twp",
"Rose Lake Twp",
"Rutland Twp",
"Salem Twp",
"Sandstone Twp",
"Sauble Twp",
"Saugatuck Twp",
"Sebewa Twp",
"Selma Twp",
"Seville Twp",
"Shelby Twp",
"Sheridan Twp",
"Sherman Twp",
"Sidney Twp",
"Solon Twp",
"South Branch Twp",
"South Haven Twp",
"Sparta Twp",
"Spencer Twp",
"Spring Lake Twp",
"Springfield Twp",
"Stambaugh Twp",
"Sullivan Twp",
"Summit Twp",
"Sunfield Twp",
"Sylvan Twp",
"Tallmadge Twp",
"Texas Twp",
"Thompson Twp",
"Thornapple Twp",
"Trowbridge Twp",
"Troy Twp",
"Tyrone Twp",
"Valley Twp",
"Vergennes Twp",
"Vermontville Twp",
"Victory Twp",
"Vil of Caledonia",
"Vil of Casnovia",
"Vil of Clarksville",
"Vil of Coral",
"Vil of Delton",
"Vil of Edmore",
"Vil of Elm Hall",
"Vil of Fenwick",
"Vil of Freeport",
"Vil of Fruitport",
"Vil of Gowen",
"Vil of Hesperia",
"Vil of Hopkins",
"Vil of Howard City",
"Vil of Hubbardston",
"Vil of Kent City",
"Vil of Lake Odessa",
"Vil of Lakeview",
"Vil of Lyons",
"Vil of Middleville",
"Vil of Moline",
"Vil of Morley",
"Vil of Muir",
"Vil of Nashville",
"Vil of Palo",
"Vil of Pierson",
"Vil of Pullman",
"Vil of Ravenna",
"Vil of Riverdale",
"Vil of Sand Lake",
"Vil of Saranac",
"Vil of Sheridan",
"Vil of Sparta",
"Vil of Spring Lake",
"Vil of Stanwood",
"Vil of Trufant",
"Vil of Weidman",
"Vil of Winn",
"Vil of Woodland",
"Walker Twp",
"Watson Twp",
"Waverly Twp",
"Wayland Twp",
"Webber Twp",
"Westphalia Twp",
"White River Twp",
"Whitefish Twp",
"Whitehall Twp",
"Wilcox Twp",
"Winfield Twp",
"Woodland Twp",
"Wright Twp",
"Yankee Springs Twp",
"Yates Twp",
"Zeeland Twp");




function checkValue()
{

var area_field = document.quick_search['area'];
	if (area_field.options[area_field.selectedIndex].value != '') {
		document.getElementById('City').disabled = false;
		document.getElementById('MaxPrice').disabled = false;
		document.getElementById('MinBed').disabled = false;
		document.getElementById('search_button').disabled = false;
	}
	else {
		document.getElementById('City').disabled = true;
		document.getElementById('MaxPrice').disabled = true;
		document.getElementById('MinBed').disabled = true;
		document.getElementById('search_button').disabled = true;
	}

}





function fillOther()
{

var good_count = 1;

var Form_Area = document.getElementById('area');
var Form_City = document.getElementById('City');

if (Form_Area.options[Form_Area.selectedIndex].value == 'GR') {
   var Cities = GR_Cities;
   document.quick_search.action = 'http://grar.tpbr.com/search_res.idx';
   document.getElementById('MoreInfoSpot').innerHTML = "<a href='property-search-gr.html' class='search-link'>More Options &gt;</a>";
}
else if (Form_Area.options[Form_Area.selectedIndex].value == 'LS') {
   var Cities = LS_Cities;
   document.quick_search.action = 'http://swmich.tpbr.com/search_res.idx';
   document.getElementById('MoreInfoSpot').innerHTML = "<a href='property-search-lakeshore.html' class='search-link'>More Options &gt;</a>";
}
else {
   var Cities = new Array(0);
   document.quick_search.action = '';
   document.getElementById('MoreInfoSpot').innerHTML = "";
}

for(j=0; j<LS_Cities.length; j++)
{
	Form_City.remove(Form_City, j);
}

var newOpt = new Option("All Cities", "");
Form_City.options[0] = newOpt;
Form_City.options[0].selected = true;

for(i=0; i<Cities.length; i++)
{
	var tempVar = Form_Area.options[Form_Area.selectedIndex].value;

	if(Cities[i]) {

			var newOpt = new Option(Cities[i], Cities[i]);
			Form_City.options[good_count] = newOpt;

			good_count++;
	}

}




checkValue();

}


