function selectCriteriaSet() {
	var theForm1 = document.apply;
	var theForm2 = document.selectCriteria
	if (theForm1.AptName.selectedIndex >= 0) {
		theForm2.AptId.value = theForm1.AptName[theForm1.AptName.selectedIndex].value;
	}
	/* var aryPropBeds = new Array();
	aryPropBeds[1] = 3; // Lakeview
	aryPropBeds[2] = 2; // Pecan Ridge
	aryPropBeds[3] = 2; // Rivercrest
	aryPropBeds[4] = 2; // Woodhollow
	*/
	if (aryPropBeds[theForm2.AptId.value] > 2) {
		theForm1.AptIdentity[2].disabled = false;
		theForm1.AptIdentity[0].checked = true;
		if (document.getElementById) { /* Check if the getElementById method is available */
			document.getElementById('3BR').style.color = '000';
		}
	} else {
		theForm1.AptIdentity[2].disabled = true;
		theForm1.AptIdentity[0].checked = true;
		if (document.getElementById) { /* Check if the getElementById method is available */
			document.getElementById('3BR').style.color = 'aaa';
		}
	}
}

function selectCriteriaSubmit() {
	var theForm  = document.selectCriteria;
	var theCheck = theForm.AptId;
	launchRemote('/index.cfm?page=app&todo=');
	if (theCheck.value.length > 0) {
		theForm.submit();
	} else {
		alert('It did not launch the pop-up!');
	}
}