function switchImage(imageName, imageState) 
{
	if(document.images && (flag == true)){
		document.images[imageName].src = eval(imageName + "_" + imageState + ".src");
	}
}

function toggleFeature(featureName, imageObject){
	var targetElement;
	
	targetElement = eval("document.all." + featureName + "Table")
	if (targetElement.style.display == "none") {
		targetElement.style.display = "";
		imageObject.src = "images/contract.gif";
	}
	else {
		targetElement.style.display = "none";
		imageObject.src = "images/expand.gif";
		for(var i = 0; i < document.forms("propertyDetailsForm").length; i++){
			if(document.forms("propertyDetailsForm").item(i).name == featureName){
				document.forms("propertyDetailsForm").item(i).checked = false
			}
		}
	}
}

function selectPropertyTypeTab(tabName){	
	document.all.propertyTypeForm.propertyType.value = tabName;
	document.all.propertyTypeForm.submit();
}
