<!--
var strCriteria=""
function notNull(str) {
	if (str.length == 0 )
		return false
	else 
		return true
}

function notBlank(str) {
	for (i = 0; i < str.length; i++) {
		if (str.charAt(i) != " ")
			return true
	}
	return false
}

function validateString(myField1,myField2,s,strErrMsg){
	if (notNull(myField1.value) && notBlank(myField1.value))
		if (notNull(myField2.value) && notBlank(myField2.value))
			return true
		else {
			alert("The search criteria for the " + s + " selection were left blank.  Please choose a " + s + ".")
			return false
		}
	else {
		alert("The search criteria for the " + s + " selection were left blank.  Please choose a " + s + ".")
		return false
	}
}

function checkform(form, strSelection){
	switch(strSelection){
		case 'City':
			return validateString(form.City,form.FilterBlank,"City")
		case 'Type':
			return validateString(form.Type,form.FilterBlank,"Property Type")
		case 'Range':
			return validateString(form.Price1,form.Price2,"Price Range")
		case 'PriceLT':
			return validateString(form.PriceLT,form.FilterBlank,"'Less Than' Price")
		case 'PriceGT':
			return validateString(form.PriceGT,form.FilterBlank,"'More Than' Price")
		case 'ViewAll':
			return true
		default: //nothing selected
			alert("Please choose a search filter by clicking one of the filter choices or 'View All Properties'.")
			return false
	}
}
//-->