function changeLayoutSelection(floor_plan, floor_level) {
/*
	This function is accessed in the Prices.php subpage.  It sets the 'FloorPlan' and 'FloorLevel' and 'BulletPoints'
	variables in the 'PricesForm' form which is then posted back to the same page.  The image corresponding to the
	'FloorPlan'_'FloorLevel' is then rendered.  The text in 'BulletPoints' is also rendered.
*/

	document.getElementById('FloorPlan').value = floor_plan;
	document.getElementById('FloorLevel').value = floor_level;
	
	switch(floor_plan) {
	case 'flat':
		document.getElementById('BulletPoints').value = "&bull; cool urban flat<br />&bull; garage + laundry down<br />&bull; great living spaces up<br />&bull; one bed, one bath<br />&bull; 667 sf";
		break;
	case 'cottage':
		document.getElementById('BulletPoints').value = "&bull; open living spaces<br />&bull; lower and upper masters<br />&bull; lofty study<br />&bull; detached garage<br />&bull; 1231 sf";
		break;
	case 'bungalow':
		document.getElementById('BulletPoints').value = "&bull; flexible lower plan<br />&bull; bedrooms up + down<br />&bull; huge upstairs living room<br />&bull; detached garage<br />&bull; 1392 sf";
		break;
	case 'townhouse':
		document.getElementById('BulletPoints').value = "&bull; great entertaining spaces<br />&bull; 2 beds with big closets<br />&bull; bonus upstairs living<br />&bull; detached garage<br />&bull; 1394 sf";
		break;
	case 'xltownhouse':
		document.getElementById('BulletPoints').value = "&bull; open lower living spaces<br />&bull; cozy study<br />&bull; three beds, 2.5 baths<br />&bull; detached garage<br />&bull; 1341 sf";
		break;
	}
	
	document.PricesForm.submit();
}


function changeNeighborhoodSelection(map) {
/*
	This function is accessed in the Neighborhood.php subpage.  It sets the 'map'
	variable in the 'NeighborhoodForm' form which is then posted back to the same page.  The image corresponding to the
	Neighborhood_'map' is then rendered.
*/

	document.getElementById('map').value = map;
	document.NeighborhoodForm.submit();
}
