var prop_type = document.getElementsByName("prop_type")[0];
var prop_rooms = document.getElementsByName("prop_rooms")[0];
var prop_location =  document.getElementsByName("prop_location")[0];
var prop_sub_location =  document.getElementsByName("prop_sub_location")[0];

prop_type.onchange = function(){
	if(this.value == 0){
		prop_rooms.removeAttribute("disabled","");
	}else{
		prop_rooms.setAttribute("disabled","");
	}
}

prop_location.onchange = function(){
	if(this.value == 0){
		prop_sub_location.removeAttribute("disabled","");
	}else{
		prop_sub_location.setAttribute("disabled","");
	}
}

