	var AKArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Anchorage')"
		);
	var ALArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Birmingham')",
		"('Huntsville')",
		"('Mobile')",
		"('Montgomery')"
		);
	var ARArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Little Rock')",
		"('Rogers')"
		);
	var AZArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Phoenix')",
		"('Scottsdale')",
		"('Tempe')",
		"('Tucson')"
		);
	var CAArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Bakersfield')",
		"('Burbank')",
		"('Campbell-Los Gatos')",
		"('Carlsbad')",
		"('Cerritos')",
		"('Chico-Butte County')",
		"('Concord')",
		"('Culver City')",
		"('Cupertino')",
		"('Cypress')",
		"('Dublin')",
		"('El Segundo')",
		"('Fremont')",
		"('Fresno')",
		"('Glendale')",
		"('Hayward')",
		"('Huntington Beach')",
		"('Irvine')",
		"('Long Beach')",
		"('Los Altos')",
		"('Los Angeles')",
		"('Marina Del Rey')",
		"('Milpitas')",
		"('Morgan Hill-Gilroy')",
		"('Newport Beach')",
		"('Oakland')",
		"('Ontario-Upland-Rancho Cucamonga')",
		"('Orange County')",
		"('Palo Alto')",
		"('Pasadena')",
		"('Pleasanton')",
		"('Rancho Santa Margarita')",
		"('Riverside')",
		"('Roseville-Rocklin')",
		"('Sacramento')",
		"('San Bruno')",
		"('San Diego')",
		"('San Fernando Valley')",
		"('San Francisco')",
		"('San Gabriel Valley')",
		"('San Jose')",
		"('San Mateo County')",
		"('San Rafael')",
		"('San Ramon')",
		"('Santa Barbara')",
		"('Santa Clara')",
		"('Santa Clarita')",
		"('Santa Cruz')",
		"('Santa Monica')",
		"('Santa Rosa')",
		"('Saratoga')",
		"('Stockton')",
		"('Sunnyvale')",
		"('Tahoe Basin')",
		"('Torrance')",
		"('Valencia')",
		"('Ventura')",
		"('Walnut Creek')",
		"('Woodland Hills')"
		);
	var COArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Boulder-Longmont')",
		"('Colorado Springs')",
		"('Denver')",
		"('Fort Collins')",
		"('Grand Junction')"
		);
	var CTArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Cheshire')",
		"('Danbury')",
		"('Greenwich')",
		"('Hartford')",
		"('Middletown')",
		"('New Haven-Meriden')",
		"('New London-Groton')",
		"('Shelton-Fairfield')",
		"('Stamford-Norwalk')",
		"('Waterbury')"
		);
	var DEArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Wilmington')"
		);

	var FLArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Aventura')",
		"('Boca Raton')",
		"('Clearwater')",
		"('Florida Keys')",
		"('Fort Lauderdale')",
		"('Fort Myers')",
		"('Gainesville')",
		"('Hollywood')",
		"('Jacksonville')",
		"('Lake Mary')",
		"('Lakeland-Winter Haven')",
		"('Melbourne-Titusville-Palm Bay')",
		"('Miami')",
		"('Miramar')",
		"('Naples')",
		"('Orlando')",
		"('Pembroke Pines')",
		"('Plant City')",
		"('Plantation')",
		"('Pompano Beach')",
		"('Sarasota')",
		"('St. Petersburg')",
		"('Stuart - Eastern Florida')",
		"('Tampa')",
		"('West Palm Beach')"
		);
	var GAArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Alpharetta')",
		"('Atlanta')",
		"('Buford-Sugar Hill')",
		"('Canton')",
		"('Dunwoody-Perimeter-Buckhead')",
		"('Kennesaw')",
		"('Lawrenceville')",
		"('Macon')",
		"('Marietta')",
		"('Norcross-Doraville')",
		"('Woodstock')"
		);
	var HIArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Honolulu')",
		"('Maui')"
		);
	var IAArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Bettendorf')",
		"('Cedar Rapids')",
		"('Davenport-Quad Cities')",
		"('Des Moines')"
		);
	var IDArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Boise')"
		);
	var ILArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Burr Ridge')",
		"('Chicago')",
		"('Moline-Quad Cities')",
		"('Northbrook')",
		"('Oak Brook')",
		"('Schaumburg')",
		"('Southern Illinois')",
		"('Warrenville')"
		);
	var INArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Carmel')",
		"('Elkhart')",
		"('Fort Wayne')",
		"('Greenwood')",
		"('Indianapolis')",
		"('Lafayette')",
		"('Mishawaka')",
		"('South Bend')"
		);
	var KSArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Lawrence')",
		"('Leawood')",
		"('Overland Park')",
		"('Wichita')"
		);
	var KYArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Erlanger')",
		"('Lexington')",
		"('Louisville')"
		);
	var LAArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Baton Rouge')",
		"('Metairie')",
		"('New Orleans')",
		"('Shreveport-Bossier City')"
		);
	var MAArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Andover')",
		"('Boston')",
		"('Brockton')",
		"('Burlington')",
		"('Cambridge')",
		"('Framingham-Natick')",
		"('Natick-Wellesley')",
		"('Newton')",
		"('Springfield')",
		"('Worcester')"
		);
	var MDArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Annapolis-Bowie')",
		"('Baltimore')",
		"('Belair-Harford')",
		"('Bethesda')",
		"('Chevy Chase')",
		"('Columbia')",
		"('Frederick')",
		"('Gaithersburg')",
		"('Germantown')",
		"('Hunt Valley')",
		"('Laurel')",
		"('Linthicum')",
		"('Prince Georges County')",
		"('Rockville')",
		"('Saint Mary s County')",
		"('Silver Spring')",
		"('Timonium-Towson')",
		"('Washington')"
		);
	var MIArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Ann Arbor')",
		"('Bloomfield Hills')",
		"('Detroit')",
		"('Flint')",
		"('Grand Rapids-Muskegon-Holland')",
		"('Lansing')",
		"('Livonia')",
		"('Novi')",
		"('Southeast Michigan')",
		"('Southfield')",
		"('Southwest Michiga')",
		"('Troy')"
		);
	var MNArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Bloomington')",
		"('Minneapolis')",
		"('Moorhead')",
		"('St. Paul')"
		);
	var MOArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Kansas City')",
		"('St. Louis')"
		);
	var MSArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Gulfport')",
		"('Jackson')"
		);
	var NCArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Cary')",
		"('Charlotte')",
		"('Durham-Chapel Hill')",
		"('Greensboro')",
		"('Huntersville-Cornelius')",
		"('Raleigh')",
		"('Research Triangle')"
		);
	var NDArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Fargo')"
		);
	var NEArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Omaha')"
		);
	var NHArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Manchester')",
		"('Nashua')"
		);
	var NJArray =  new Array("('-- Choose a City --','0',true,true)",
		"('All Cities in New Jersey')"
		);
	var NMArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Albuquerque')",
		"('Las Cruces')",
		"('Santa Fe')"
		);
	var NVArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Henderson')",
		"('Las Vegas')",
		"('Reno')"
		);
	var NYArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Albany')",
		"('Binghamton')",
		"('Brooklyn')",
		"('Buffalo')",
		"('Long Island')",
		"('Nassau County')",
		"('New York')",
		"('Queens')",
		"('Rochester')",
		"('Rockland County')",
		"('Suffolk')",
		"('Syracuse')"
		);
	var OHArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Akron')",
		"('Canton-Massillon')",
		"('Cincinnati')",
		"('Cleveland')",
		"('Columbus')",
		"('Dayton-Springfield')",
		"('Dublin-Worthington')",
		"('Elyria')",
		"('Hamilton-Middletown')",
		"('Hilliard')",
		"('Lorain')",
		"('Polaris')",
		"('Toledo')",
		"('Westerville to Gahanna')"
		);
	var OKArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Oklahoma City')",
		"('Tulsa')"
		);
	var ORArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Beaverton')",
		"('Eugene')",
		"('Hillsboro')",
		"('Lake Oswego')",
		"('Portland')",
		"('Salem')"
		);
	var PAArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Allentown')",
		"('Delaware County')",
		"('Erie')",
		"('Harrisburg')",
		"('Malvern')",
		"('Philadelphia')",
		"('Pittsburgh')",
		"('Wilkes-Barre')",
		"('York')"
		);
	var PRArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Puerto Rico')"
		);
	var RIArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Providence-Fall River-Warwick')"
		);
	var SCArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Charleston')",
		"('Columbia')",
		"('Greenville')"
		);
	var SDArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Sioux Falls')"
		);
	var TNArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Chattanooga')",
		"('Knoxville')",
		"('Memphis')",
		"('Nashville')"
		);
	var TXArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Addison')",
		"('Arlington')",
		"('Austin')",
		"('Carrollton')",
		"('Dallas')",
		"('El Paso')",
		"('Fort Worth')",
		"('Frisco')",
		"('Galveston-Texas City')",
		"('Houston')",
		"('Irving')",
		"('League City')",
		"('Plano')",
		"('Richardson')",
		"('San Antonio')",
		"('Sugar Land')"
		);
	var UTArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Ogden')",
		"('Park City')",
		"('Provo')",
		"('Salt Lake City')"
		);
	var VAArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Alexandria')",
		"('Annandale')",
		"('Chesapeake')",
		"('Dulles Corner')",
		"('Fairfax')",
		"('Falls Church')",
		"('Fredericksburg')",
		"('Gainesville')",
		"('Glen Allen')",
		"('Herndon')",
		"('McLean')",
		"('Norfolk')",
		"('Reston')",
		"('Richmond-Petersburg')",
		"('Roanokeo')",
		"('Spotsylvania')",
		"('Stafford County')",
		"('Tysons Corner')",
		"('Vienna')",
		"('Virginia Beach')",
		"('Woodbridge-Manassas')"
		);
	var VTArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Burlington-Chittenden County')"
		);
	var WAArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Auburn')",
		"('Bellevue')",
		"('Bellingham')",
		"('Edmonds-Mountlake Terrace')",
		"('Everett')",
		"('Federal Way')",
		"('Gig Harbor')",
		"('Issaquah')",
		"('Kent')",
		"('Kirkland')",
		"('Kitsap and Olympic Peninsula')",
		"('Lynnwood-Bothell')",
		"('Olympia')",
		"('Redmond')",
		"('Renton')",
		"('Sammamish')",
		"('Seattle')",
		"('Spokane')",
		"('Tacoma')",
		"('Tukwila')",
		"('Vancouver')"
		);
	var WIArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Appleton')",
		"('Brookfield')",
		"('Green Bay-Fox Cities')",
		"('Kenosha')",
		"('Madison')",
		"('Mayfair')",
		"('Milwaukee')"
		);
	var WYArray =  new Array("('-- Choose a City --','0',true,true)",
		"('Casper')",
		"('Cheyenne')"
		);

function populateCity(inForm,selected)
{
	var selectedArray = eval(selected + "Array");

	while (selectedArray.length < inForm.spaceRequirement_preferredArea.options.length)
	{
		inForm.spaceRequirement_preferredArea.options[(inForm.spaceRequirement_preferredArea.options.length - 1)] = null;
	}

	for (var i=0; i < selectedArray.length; i++)
	{
		eval("inForm.spaceRequirement_preferredArea.options[i]=" + "new Option" + selectedArray[i]);
	}

}

function ValidateForm(thisform)
{
	var cLB = "\n"; // creates a line break;
	var thisFormName = thisform;
	var cFirst_Name = "";
	var cLast_Name = "";
	var cEmail_Address = "";
	var cPhone_Number = "";
	var cProperty_Type = "";
	var cSquare_Feet = "";
	var cCity = "";
	var cState = "";

	if (document.forms[thisFormName].spaceRequirement_firstName.value.length == 0) cFirst_Name= "First Name" + cLB;
	if (document.forms[thisFormName].spaceRequirement_lastName.value.length == 0) cLast_Name = "Last Name" + cLB;
	if (document.forms[thisFormName].spaceRequirement_email.value.length == 0) cEmail_Address = "E-Mail Address" + cLB;
	if (document.forms[thisFormName].spaceRequirement_phone.value.length == 0) cPhone_Number = "Phone Number" + cLB;
	if (document.forms[thisFormName].spaceRequirement_preferredState.value.length == 0) cState = "State" + cLB;
	if (document.forms[thisFormName].spaceRequirement_preferredArea.value.length == 0) cCity = "City" + cLB;
	if (document.forms[thisFormName].spaceRequirement_squareFeet.value.length == 0) cSquare_Feet = "Square Feet" + cLB;

	// Build string for alert:
	cBase = cState + cCity + cFirst_Name + cLast_Name + cEmail_Address + cPhone_Number + cProperty_Type + cSquare_Feet;

	// Display an alert if any of the input is missing:
	if (cBase.length > 0)
	{
		alert("Please fill out your:" + cLB + cLB + cBase);
		return false;
	}
	else
		return true;
}

function populate(inForm)
{
	var temp=0;
	var today= new Date();
	//var day= today.getDate();
	var month= today.getMonth();
	var year= today.getFullYear();
	t2= 4

	for (var i=0,j=year; i <t2 ; i++, j++)
	{
		var y= String(j);
		space_requirements_form.spaceRequirement_moveInYear.options[i] = new Option(y,y);
	}

	for(var i=0;i<12;i++)
	{
		if(i=month)
		{
			space_requirements_form.spaceRequirement_moveInMonth.options[i].selected=true;
			break;
		}
	}

}
