var AdamsArray = new Array("('Select city','',true,true)",
"('Adams')",
"('Friendship')",
"('Wisconsin Dells')",
"('Other')");
var AshlandArray = new Array("('Select city','',true,true)",
"('Ashland')",
"('Butternut')",
"('Mellen')",
"('Other')");
var BarronArray = new Array("('Select city','',true,true)",
"('Almena')",
"('Barron')",
"('Cameron')",
"('Chetek')",
"('Cumberland')",
"('Dallas')",
"('Haugen')",
"('New Auburn')",
"('Prairie Farm')",
"('Rice Lake')",
"('Turtle Lake')",
"('Other')");
var BayfieldArray = new Array("('Select city','',true,true)",
"('Bayfield')",
"('Mason')",
"('Washburn')",
"('Other')");
var BrownArray = new Array("('Select city','',true,true)",
"('Allouez')",
"('Ashwaubenon')",
"('De Pere')",
"('Denmark')",
"('Green Bay')",
"('Howard')",
"('Pulaski')",
"('Wrightstown')",
"('Other')");
var BuffaloArray = new Array("('Select city','',true,true)",
"('Alma')",
"('Buffalo')",
"('Cochrane')",
"('Fountain City')",
"('Mondovi')",
"('Nelson')",
"('Other')");
var BurnettArray = new Array("('Select city','',true,true)",
"('Grantsburg')",
"('Siren')",
"('Webster')",
"('Other')");
var CalumetArray = new Array("('Select city','',true,true)",
"('Appleton')",
"('Brillion')",
"('Chilton')",
"('Hilbert')",
"('Kiel')",
"('Menasha')",
"('New Holstein')",
"('Potter')",
"('Sherwood')",
"('Stockbridge')",
"('Other')");
var ChippewaArray = new Array("('Select city','',true,true)",
"('Bloomer')",
"('Boyd')",
"('Cadott')",
"('Chippewa Falls')",
"('Cornell')",
"('Eau Claire')",
"('New Auburn')",
"('Stanley')",
"('Other')");

var ClarkArray = new Array("('Select city','',true,true)",
"('Abbotsford')",
"('Colby')",
"('Curtiss')",
"('Dorchester')",
"('Granton')",
"('Greenwood')",
"('Loyal')",
"('Neillsville')",
"('Owen')",
"('Thorp')",
"('Unity')",
"('Withee')",
"('Other')");
var ColumbiaArray = new Array("('Select city','',true,true)",
"('Arlington')",
"('Cambria')",
"('Columbus')",
"('Doylestown')",
"('Fall River')",
"('Friesland')",
"('Lodi')",
"('Pardeeville')",
"('Portage')",
"('Poynette')",
"('Randolph')",
"('Rio')",
"('Wisconsin Dells')",
"('Wyocena')",
"('Other')");
var CrawfordArray = new Array("('Select city','',true,true)",
"('Bell Center')",
"('De Soto')",
"('Eastman')",
"('Ferryville')",
"('Gays Mills')",
"('Lynxville')",
"('Mount Sterling')",
"('Prairie du Chien')",
"('Soldiers Grove')",
"('Steuben')",
"('Wauzeka')",
"('Other')");
var DaneArray = new Array("('Select city','',true,true)",
"('Belleville')",
"('Black Earth')",
"('Blue Mounds')",
"('Brooklyn')",
"('Cambridge')",
"('Cottage Grove')",
"('Cross Plains')",
"('Dane')",
"('Deerfield')",
"('Deforest')",
"('Fitchburg')",
"('Madison')",
"('Maple Bluff')",
"('Marshall')",
"('Mazomanie')",
"('McFarland')",
"('Middleton')",
"('Monona')",
"('Mount Horeb')",
"('Oregon')",
"('Rockdale')",
"('Shorewood Hills')",
"('Stoughton')",
"('Sun Prairie')",
"('Verona')",
"('Waunakee')",
"('Other')");
var DodgeArray = new Array("('Select city','',true,true)",
"('Beaver Dam')",
"('Brownsville')",
"('Clyman')",
"('Columbus')",
"('Fox Lake')",
"('Hartford')",
"('Horicon')",
"('Hustisford')",
"('Iron Ridge')",
"('Juneau')",
"('Kekoskee')",
"('Lomira')",
"('Lowell')",
"('Mayville')",
"('Neosho')",
"('Randolph')",
"('Reeseville')",
"('Theresa')",
"('Watertown')",
"('Waupun')",
"('Other')");
var DoorArray = new Array("('Select city','',true,true)",
"('Egg Harbor')",
"('Ephraim')",
"('Forestville')",
"('Sister Bay')",
"('Sturgeon Bay')",
"('Other')");
var DouglasArray = new Array("('Select city','',true,true)",
"('Lake Nebagamon')",
"('Oliver')",
"('Poplar')",
"('Solon Springs')",
"('Superior City')",
"('Superior Village')",
"('Other')");
var DunnArray = new Array("('Select city','',true,true)",
"('Boyceville')",
"('Colfax')",
"('Downing')",
"('Elk Mound')",
"('Knapp')",
"('Menomonie')",
"('Ridgeland')",
"('Wheeler')",
"('Other')");
var EauClaireArray = new Array("('Select city','',true,true)",
"('Altoona')",
"('Augusta')",
"('Eau Claire')",
"('Fairchild')",
"('Fall Creek')",
"('Other')");
var FlorenceArray = new Array("('Select city','',true,true)",
"('Other')");
var FondDuLacArray = new Array("('Select city','',true,true)",
"('Brandon')",
"('Campbellsport')",
"('Eden')",
"('Fairwater')",
"('Fond du Lac')",
"('Kewaskum')",
"('Mount Calvary')",
"('North Fond du Lac')",
"('Oakfield')",
"('Ripon')",
"('Rosendale')",
"('Saint Cloud')",
"('Waupun')",
"('Other')");
var ForestArray = new Array("('Select city','',true,true)",
"('Crandon')",
"('Other')");
var GrantArray = new Array("('Select city','',true,true)",
"('Bagley')",
"('Bloomington')",
"('Blue River')",
"('Boscobel')",
"('Cassville')",
"('Cuba City')",
"('Dickeyville')",
"('Fennimore')",
"('Hazel Green')",
"('Lancaster')",
"('Livingston')",
"('Montfort')",
"('Mount Hope')",
"('Muscoda')",
"('Patch Grove')",
"('Platteville')",
"('Potosi')",
"('Tennyson')",
"('Woodman')",
"('Other')");
var GreenArray = new Array("('Select city','',true,true)",
"('Albany')",
"('Belleville')",
"('Brodhead')",
"('Brooklyn')",
"('Browntown')",
"('Monroe')",
"('Monticello')",
"('New Glarus')",
"('Other')");
var GreenLakeArray = new Array("('Select city','',true,true)",
"('Berlin')",
"('Green Lake')",
"('Kingston')",
"('Markesan')",
"('Marquette')",
"('Princeton')",
"('Other')");
var IowaArray = new Array("('Select city','',true,true)",
"('Arena')",
"('Avoca')",
"('Barneveld')",
"('Blanchardville')",
"('Cobb')",
"('Dodgeville')",
"('Highland')",
"('Hollandale')",
"('Linden')",
"('Livingston')",
"('Mineral Point')",
"('Montfort')",
"('Muscoda')",
"('Rewey')",
"('Ridgeway')",
"('Other')");
var IronArray = new Array("('Select city','',true,true)",
"('Hurley')",
"('Montreal')",
"('Other')");
var JacksonArray = new Array("('Select city','',true,true)",
"('Alma center')",
"('Black River Falls')",
"('Hixton')",
"('Melrose')",
"('Merrillan')",
"('Taylor')",
"('Other')");
var JeffersonArray = new Array("('Select city','',true,true)",
"('Cambridge')",
"('Fort Atkinson')",
"('Jefferson')",
"('Johnson Creek')",
"('Lake Mills')",
"('Palmyra')",
"('Sullivan')",
"('Waterloo')",
"('Watertown')",
"('Whitewater')",
"('Other')");
var JuneauArray = new Array("('Select city','',true,true)",
"('Camp Douglas')",
"('Elroy')",
"('Hustler')",
"('Lyndon Station')",
"('Mauston')",
"('Necedah')",
"('New Lisbon')",
"('Union Center')",
"('Wonewoc')",
"('Other')");
var KenoshaArray = new Array("('Select city','',true,true)",
"('Genoa City')",
"('Kenosha')",
"('Paddock Lake')",
"('Pleasant Prairie')",
"('Silver Lake')",
"('Twin Lakes')",
"('Other')");
var KewauneeArray = new Array("('Select city','',true,true)",
"('Algoma')",
"('Casco')",
"('Kewaunee')",
"('Luxemburg')",
"('Other')");
var LaCrosseArray = new Array("('Select city','',true,true)",
"('Bangor')",
"('Holmen')",
"('La Crosse')",
"('Onalaska')",
"('Rockland')",
"('West Salem')",
"('Other')");
var LafayetteArray = new Array("('Select city','',true,true)",
"('Argyle')",
"('Belmont')",
"('Benton')",
"('Blanchardville')",
"('Cuba City')",
"('Darlington')",
"('Gratiot')",
"('Hazel Green')",
"('Shullsburg')",
"('South Wayne')",
"('Other')");
var LangladeArray = new Array("('Select city','',true,true)",
"('Antigo')",
"('White Lake')",
"('Other')");
var LincolnArray = new Array("('Select city','',true,true)",
"('Merrill')",
"('Tomahawk')",
"('Other')");
var ManitowocArray = new Array("('Select city','',true,true)",
"('Cleveland')",
"('Francis Creek')",
"('Kellnersville')",
"('Kiel')",
"('Manitowoc')",
"('Maribel')",
"('Mishicot')",
"('Reedsville')",
"('Saint Nazianz')",
"('Two Rivers')",
"('Valders')",
"('Whitelaw')",
"('Other')");
var MarathonArray = new Array("('Select city','',true,true)",
"('Abbotsford')",
"('Athens')",
"('Birnamwood')",
"('Brokaw')",
"('Colby')",
"('Edgar')",
"('Elderon')",
"('Fenwood')",
"('Hatley')",
"('Marathon City')",
"('Marshfield')",
"('Mosinee')",
"('Rothschild')",
"('Schofield')",
"('Spencer')",
"('Stratford')",
"('Unity')",
"('Wausau')",
"('Other')");
var MarinetteArray = new Array("('Select city','',true,true)",
"('Coleman')",
"('Crivitz')",
"('Marinette')",
"('Niagara')",
"('Peshtigo')",
"('Pound')",
"('Wausaukee')",
"('Other')");
var MarquetteArray = new Array("('Select city','',true,true)",
"('Endeavor')",
"('Montello')",
"('Neshkoro')",
"('Oxford')",
"('Westfield')",
"('Other')");
var MilwaukeeArray = new Array("('Select city','',true,true)",
"('Bayside')",
"('Brown Deer')",
"('Cudahy')",
"('Fox Point')",
"('Franklin')",
"('Glendale')",
"('Greendale')",
"('Greenfield')",
"('Hales Corners')",
"('Milwaukee')",
"('Oak Creek')",
"('River Hills')",
"('Saint Francis')",
"('Shorewood')",
"('South Milwaukee')",
"('Wauwatosa')",
"('West Allis')",
"('West Milwaukee')",
"('Whitefish Bay')",
"('Other')");
var MonroeArray = new Array("('Select city','',true,true)",
"('Cashton')",
"('Kendall')",
"('Melvina')",
"('Norwalk')",
"('Oakdale')",
"('Sparta')",
"('Tomah')",
"('Warrens')",
"('Wilton')",
"('Wyeville')",
"('Other')");
var OcontoArray = new Array("('Select city','',true,true)",
"('Gillett')",
"('Lena')",
"('Oconto')",
"('Oconto Falls')",
"('Pulaski')",
"('Suring')",
"('Other')");
var OneidaArray = new Array("('Select city','',true,true)",
"('Rhinelander')",
"('Other')");
var OutagamieArray = new Array("('Select city','',true,true)",
"('Appleton')",
"('Bear Creek')",
"('Black Creek')",
"('Combined Locks')",
"('Hortonville')",
"('Kaukauna')",
"('Kimberly')",
"('Little Chute')",
"('New London')",
"('Nichols')",
"('Seymour')",
"('Shiocton')",
"('Other')");
var OzaukeeArray = new Array("('Select city','',true,true)",
"('Bayside')",
"('Belgium')",
"('Cedarburg')",
"('Fredonia')",
"('Grafton')",
"('Mequon')",
"('Newburg')",
"('Port Washington')",
"('Saukville')",
"('Thiensville')",
"('Other')");
var PepinArray = new Array("('Select city','',true,true)",
"('Durand')",
"('Pepin')",
"('Stockholm')",
"('Other')");
var PierceArray = new Array("('Select city','',true,true)",
"('Bay City')",
"('Ellsworth')",
"('Elmwood')",
"('Maiden Rock')",
"('Plum City')",
"('Prescott')",
"('River Falls')",
"('Spring Valley')",
"('Other')");
var PolkArray = new Array("('Select city','',true,true)",
"('Amery')",
"('Balsam Lake')",
"('Centuria')",
"('Clayton')",
"('Clear Lake')",
"('Dresser')",
"('Frederic')",
"('Luck')",
"('Milltown')",
"('Osceola')",
"('Saint Croix Falls')",
"('Turtle Lake')",
"('Other')");
var PortageArray = new Array("('Select city','',true,true)",
"('Almond')",
"('Amherst')",
"('Amherst Junction')",
"('Junction City')",
"('Milladore')",
"('Nelsonville')",
"('Park Ridge')",
"('Plover')",
"('Rosholt')",
"('Stevens Point')",
"('Whiting')",
"('Other')");
var PriceArray = new Array("('Select city','',true,true)",
"('Catawba')",
"('Kennan')",
"('Park Falls')",
"('Phillips')",
"('Prentice')",
"('Other')");
var RacineArray = new Array("('Select city','',true,true)",
"('Burlington')",
"('Elmwood Park')",
"('North Bay')",
"('Racine')",
"('Rochester')",
"('Sturtevant')",
"('Union Grove')",
"('Waterford')",
"('Wind Point')",
"('Other')");
var RichlandArray = new Array("('Select city','',true,true)",
"('Boaz')",
"('Cazenovia')",
"('Lone Rock')",
"('Richland Center')",
"('Viola')",
"('Yuba')",
"('Other')");
var RockArray = new Array("('Select city','',true,true)",
"('Beloit')",
"('Clinton')",
"('Edgerton')",
"('Evansville')",
"('Footville')",
"('Janesville')",
"('Milton')",
"('Orfordville')",
"('Other')");
var RuskArray = new Array("('Select city','',true,true)",
"('Bruce')",
"('Conrath')",
"('Glen Flora')",
"('Hawkins')",
"('Ingram')",
"('Ladysmith')",
"('Sheldon')",
"('Tony')",
"('Weyerhaeuser')",
"('Other')");
var StCroixArray = new Array("('Select city','',true,true)",
"('Baldwin')",
"('Deer Park')",
"('Glenwood City')",
"('Hammond')",
"('Hudson')",
"('New Richmond')",
"('North Hudson')",
"('River Falls')",
"('Roberts')",
"('Somerset')",
"('Spring Valley')",
"('Star Prairie')",
"('Wilson')",
"('Woodville')",
"('Other')");
var SaukArray = new Array("('Select city','',true,true)",
"('Baraboo')",
"('Cazenovia')",
"('Ironton')",
"('La Valle')",
"('Lake Delton')",
"('Lime Ridge')",
"('Loganville')",
"('Merrimac')",
"('North Freedom')",
"('Plain')",
"('Prairie du Sac')",
"('Reedsburg')",
"('Rock Springs')",
"('Sauk City')",
"('Spring Green')",
"('West Baraboo')",
"('Wisconsin Dells')",
"('Other')");
var SawyerArray = new Array("('Select city','',true,true)",
"('Couderay')",
"('Exeland')",
"('Hayward')",
"('Radisson')",
"('Winter')",
"('Other')");
var ShawanoArray = new Array("('Select city','',true,true)",
"('Aniwa')",
"('Birnamwood')",
"('Bonduel')",
"('Bowler')",
"('Cecil')",
"('Eland')",
"('Gresham')",
"('Marion')",
"('Mattoon')",
"('Pulaski')",
"('Shawano')",
"('Tigerton')",
"('Wittenberg')",
"('Other')");
var SheboyganArray = new Array("('Select city','',true,true)",
"('Adell')",
"('Cascade')",
"('Cedar Grove')",
"('Elkhart Lake')",
"('Glenbeulah')",
"('Howards Grove')",
"('Kohler')",
"('Oostburg')",
"('Plymouth')",
"('Random Lake')",
"('Sheboygan')",
"('Sheboygan Falls')",
"('Waldo')",
"('Other')");
var TaylorArray = new Array("('Select city','',true,true)",
"('Gilman')",
"('Lublin')",
"('Medford')",
"('Rib Lake')",
"('Stetsonville')",
"('Other')");
var TrempealeauArray = new Array("('Select city','',true,true)",
"('Arcadia')",
"('Blair')",
"('Eleva')",
"('Ettrick')",
"('Galesville')",
"('Independence')",
"('Osseo')",
"('Pigeon Falls')",
"('Strum')",
"('Trempealeau')",
"('Whitehall')",
"('Other')");
var VernonArray = new Array("('Select city','',true,true)",
"('Chaseburg')",
"('Coon Valley')",
"('De Soto')",
"('Genoa')",
"('Hillsboro')",
"('La Farge')",
"('Ontario')",
"('Readstown')",
"('Stoddard')",
"('Viola')",
"('Viroqua')",
"('Westby')",
"('Other')");
var VilasArray = new Array("('Select city','',true,true)",
"('Eagle River')",
"('Other')");
var WalworthArray = new Array("('Select city','',true,true)",
"('Burlington')",
"('Darien')",
"('Delavan')",
"('East Troy')",
"('Elkhorn')",
"('Fontana')",
"('Genoa City')",
"('Lake Geneva')",
"('Mukwonago')",
"('Sharon')",
"('Walworth')",
"('Whitewater')",
"('Williams Bay')",
"('Other')");
var WashburnArray = new Array("('Select city','',true,true)",
"('Birchwood')",
"('Minong')",
"('Shell Lake')",
"('Spooner')",
"('Other')");
var WashingtonArray = new Array("('Select city','',true,true)",
"('Germantown')",
"('Hartford')",
"('Jackson')",
"('Kewaskum')",
"('Milwaukee')",
"('Newburg')",
"('Slinger')",
"('West Bend')",
"('Other')");
var WaukeshaArray = new Array("('Select city','',true,true)",
"('Big Bend')",
"('Brookfield')",
"('Butler')",
"('Chenequa')",
"('Delafield')",
"('Dousman')",
"('Eagle')",
"('Elm Grove')",
"('Hartland')",
"('Lac la Belle')",
"('Lannon')",
"('Menomonee Falls')",
"('Merton')",
"('Milwaukee')",
"('Mukwonago')",
"('Muskego')",
"('Nashotah')",
"('New Berlin')",
"('North Prairie')",
"('Oconomowoc')",
"('Oconomowoc Lake')",
"('Pewaukee')",
"('Sussex')",
"('Wales')",
"('Waukesha')",
"('Other')");
var WaupacaArray = new Array("('Select city','',true,true)",
"('Big Falls')",
"('Clintonville')",
"('Embarrass')",
"('Fremont')",
"('Iola')",
"('Manawa')",
"('Marion')",
"('New London')",
"('Ogdensburg')",
"('Scandinavia')",
"('Waupaca')",
"('Weyauwega')",
"('Other')");
var WausharaArray = new Array("('Select city','',true,true)",
"('Berlin')",
"('Coloma')",
"('Hancock')",
"('Lohrville')",
"('Plainfield')",
"('Redgranite')",
"('Wautoma')",
"('Wild Rose')",
"('Other')");
var WinnebagoArray = new Array("('Select city','',true,true)",
"('Appleton')",
"('Menasha')",
"('Neenah')",
"('Omro')",
"('Oshkosh')",
"('Winneconne')",
"('Other')");
var WoodArray = new Array("('Select city','',true,true)",
"('Arpin')",
"('Auburndale')",
"('Biron')",
"('Hewitt')",
"('Marshfield')",
"('Milladore')",
"('Nekoosa')",
"('Pittsville')",
"('Port Edwards')",
"('Rudolph')",
"('Vesper')",
"('Wisconsin Rapids')",
"('Other')");
var MenomineeArray = new Array("('Select city','',true,true)",
"('Menominee')");
var OtherArray = new Array("('Select city','',true,true)",
"('Other')");


function populateCity(inForm,selected, reload) {
if(selected != ""){
selected = selected.replace("St. Croix","StCroix");
selected = selected.replace(" ","");
selected = selected.replace(" ","");
var selectedArray = eval(selected + "Array");
var temp;

otherOption(inForm.co.options[document.form1.co.selectedIndex], document.form1.co, 'county');

while (selectedArray.length < inForm.ci.options.length) {
inForm.ci.options[(inForm.ci.options.length - 1)] = null;
}

for (var i=0; i < selectedArray.length; i++) {
eval("inForm.ci.options[i]=" + "new Option" + selectedArray[i]);
//if (i>0){	
	//temp = selectedArray[i].replace("')",""); 
	//temp = temp.replace("('","");
	//inForm.ci.options[i].value = temp;
//}//end if
}//end for

if (inForm.co.options[0].value == '') {
	inForm.co.options[0].text = '';
}
if ( navigator.appName == 'Netscape' && reload != 0) {
if (parseInt(navigator.appVersion) < 4) {
window.history.go(0);
}
else {   	
if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
window.history.go(0);
}}//end if else
}//end if ( navigator.appName == 'Netscape')
}//if(selected != "")
}//end function

//function to select all items in multiple select lists
function selectItem(list, str, list2, str2){
	var flag;
	for(var i=0;i < list.length;i++){
		if(list.options[i].text == str){
			list.options[i].selected = true;
			flag = "found";
		}
	}
	if(flag != "found"){
		list.options[(list.options.length)]=new Option(str, str,true,true);
		list.options[(list.options.length-1)].selected = true;
		if(str2 != ""){
		list2.options[(list2.options.length)]=new Option(str2, str2,true,true);
		list2.options[(list2.options.length)]=new Option('Other', 'Other',true,true);
		list2.options[(list2.options.length-2)].selected = true;
		}
		return false;
	}
	else
		return true;
}

function otherOption(selected, selectlist, dataType){
	if(selected.text == "Other"){
		newValue = "";
		while (newValue == ""){
		if(dataType == "newspaper")
			newValue = prompt ("Please enter the new newspaper name.", "");
		else if(dataType == "city")
			newValue =  prompt ("Please enter city name.","");
		else if(dataType == "county")
			newValue =  prompt ("Please enter county name.","");
		}//end while
		
		if (newValue != null) {
		selectlist.options[(selectlist.options.length-1)]=new Option(newValue, newValue,true,true);
		//selectlist.options[selectlist.options.length]=new Option('Other','Other');
		}
	}
}

function openWin(URL){
		aWindow=window.open(URL,"helpWindow","toolbar=yes,width=550,height=400,status=no,scrollbars=yes,resize=no,menubar=no");
		
}